【问题标题】:Decreasing the size of a matrix in latex (overleaf)减小乳胶中矩阵的大小(背页)
【发布时间】:2022-11-19 21:58:59
【问题描述】:

我在乳胶中有这段代码(准确地说是在背面),它显示了下图。我使用 \footnotesize 来减小尺寸,以便它适合页面的宽度,但是,它并没有减小到足够。如何进一步减小矩阵的大小?谢谢!

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{multicol}
\usepackage{amsmath} 
\usepackage[a4paper, total={6in, 8in}]{geometry}

\title{example stackoverflow}
\author{cristian cotovanu}
\date{November 2022}

\begin{document}

\maketitle

\section{Introduction}
\subsubsection*{3)}
$\frac{1}{h_x^2} = 0.16$, $\frac{2}{h_x^2} = 0.32$, $\frac{1}{h_y^2} = 0.64$, $\frac{2}{h_y^2} = 1.28$. These values will be substitute in the matrix for more clarity.
\begin{equation}
\footnotesize
    \begin{bmatrix}
0.32 + 1.28 & -0.16 & 0 & -0.64 & 0 & 0 & 0 & 0 & 0\\
-0.16 & 0.32 + 1.28 & -0.16 & 0 & -0.64 & 0 & 0 & 0 & 0\\
0 & -0.16 & 0.32 + 1.28 & 0 & 0 & -0.64 & 0 & 0 & 0\\
-0.64 & 0 & 0 & 0.32 + 1.28 & -0.16 & 0 & -0.64 & 0 & 0\\
0 & -0.64 & 0 & -0.16 & 0.32 + 1.28 & -0.16 & 0 & -0.64 & 0\\
0 & 0 & -0.64 & 0 & -0.16 & 0.32 + 1.28 & -0.16 & 0 & -0.64\\
0 & 0 & 0 & -0.64 & 0 & 0 & 0.32 + 1.28 & -0.16 & 0\\
0 & 0 & 0 & 0 & -0.64 & 0 & -0.16 & 0.32 + 1.28 & -0.16\\
0 & 0 & 0 & 0 & 0 & -0.64 & 0 & -0.16 & 0.32 + 1.28\\
    \end{bmatrix}
\\
    \begin{bmatrix}
u_{1, 1}\\
u_{2, 1}\\
u_{3, 1}\\
u_{1, 2}\\
u_{2, 2}\\
u_{3, 2}\\
u_{1, 3}\\
u_{2, 3}\\
u_{3, 3}\\
    \end{bmatrix}
=
    \begin{bmatrix}
f_{1, 1}\\
f_{2, 1}\\
f_{3, 1}\\
f_{1, 2}\\
f_{2, 2}\\
f_{3, 2}\\
f_{1, 3}\\
f_{2, 3}\\
f_{3, 3}\\
    \end{bmatrix}
\end{equation}

\end{document}

【问题讨论】:

  • 您能否制作一个可编译的minimal reproducible example,以便我们可以使用正确的页面几何形状重现您的问题?
  • 我正确地编辑了代码。

标签: matrix latex size overleaf


【解决方案1】:

一种可能是使用更小的字体大小,例如 iny。然而,在这种特殊情况下,只有对角线上的长项迫使列相当宽,可能会用负 colsep 逃脱:

documentclass{article}
usepackage[utf8]{inputenc}
usepackage{multicol}
usepackage{amsmath} 
usepackage[a4paper, total={6in, 8in}]{geometry}

	itle{example stackoverflow}
uthor{cristian cotovanu}
date{November 2022}

usepackage{tabularray}
UseTblrLibrary{amsmath}

egin{document}

maketitle

section{Introduction}
subsubsection*{3)}
$rac{1}{h_x^2} = 0.16$, $rac{2}{h_x^2} = 0.32$, $rac{1}{h_y^2} = 0.64$, $rac{2}{h_y^2} = 1.28$. These values will be substitute in the matrix for more clarity.
{
ootnotesize
egin{equation}
    egin{+bmatrix}[
      colspec={@{~}ccccccccc@{~}},
      colsep=-2pt
    ]
0.32 + 1.28 & -0.16 & 0 & -0.64 & 0 & 0 & 0 & 0 & 0\
-0.16 & 0.32 + 1.28 & -0.16 & 0 & -0.64 & 0 & 0 & 0 & 0\
0 & -0.16 & 0.32 + 1.28 & 0 & 0 & -0.64 & 0 & 0 & 0\
-0.64 & 0 & 0 & 0.32 + 1.28 & -0.16 & 0 & -0.64 & 0 & 0\
0 & -0.64 & 0 & -0.16 & 0.32 + 1.28 & -0.16 & 0 & -0.64 & 0\
0 & 0 & -0.64 & 0 & -0.16 & 0.32 + 1.28 & -0.16 & 0 & -0.64\
0 & 0 & 0 & -0.64 & 0 & 0 & 0.32 + 1.28 & -0.16 & 0\
0 & 0 & 0 & 0 & -0.64 & 0 & -0.16 & 0.32 + 1.28 & -0.16\
0 & 0 & 0 & 0 & 0 & -0.64 & 0 & -0.16 & 0.32 + 1.28\
    end{+bmatrix}
    egin{+bmatrix}
u_{1, 1}\
u_{2, 1}\
u_{3, 1}\
u_{1, 2}\
u_{2, 2}\
u_{3, 2}\
u_{1, 3}\
u_{2, 3}\
u_{3, 3}\
    end{+bmatrix}
=
    egin{+bmatrix}
f_{1, 1}\
f_{2, 1}\
f_{3, 1}\
f_{1, 2}\
f_{2, 2}\
f_{3, 2}\
f_{1, 3}\
f_{2, 3}\
f_{3, 3}\
    end{+bmatrix}
end{equation}

end{document}

【讨论】:

    猜你喜欢
    • 2021-12-21
    • 1970-01-01
    • 2012-08-15
    • 1970-01-01
    • 1970-01-01
    • 2011-01-12
    • 2022-07-31
    • 2010-09-12
    • 1970-01-01
    相关资源
    最近更新 更多