我对 LaTeX 还很陌生,所以请原谅我的问题很简单。我正在写一篇文章,我使用以下代码指定了 1.5 英寸的边距:
\usepackage[margin=1.5in]{geometry}
然而,这会导致诸如矩阵(见图)之类的东西出现不必要的偏移,无法在水平方向上精确居中:
有什么方法可以将边距仅应用于文本或保持矩阵居中?
这是矩阵:
$$
\begin{bmatrix}
1.000000000000000e+00 & 0.000000000000000e+00 & 0.000000000000000e+00 & 0.000000000000000e+00 \\
6.400000000000002e-02 & 2.880000000000000e-01 & 4.320000000000001e-01 & 2.160000000000000e-01 \\
-1.250000000000000e-01 & 1.125000000000000e+00 & -3.375000000000000e+00 & 3.375000000000000e+00 \\
-3.429999999999999e-01 & 2.499000000000000e+00 & -6.068999999999998e+00 & 4.912999999999999e+00 \\
-7.289999999999998e-01 & 4.616999999999998e+00 & -9.747000000000000e+00 & 6.858999999999999e+00 \\
-1.331000000000000e+00 & 7.623000000000002e+00 & -1.455300000000000e+01 & 9.261000000000001e+00 \\
-2.196999999999999e+00 & 1.166100000000000e+01 & -2.063099999999999e+01 & 1.216700000000000e+01 \\
-4.096000000000001e+00 & 1.996800000000001e+01 & -3.244800000000000e+01 & 1.757600000000000e+01 \\
-5.831999999999998e+00 & 2.721599999999999e+01 & -4.233599999999999e+01 & 2.195199999999999e+01 \\
-8.000000000000000e+00 & 3.600000000000000e+01 & -5.400000000000000e+01 & 2.700000000000000e+01 \\
-1.757600000000000e+01 & 7.300800000000001e+01 & -1.010880000000000e+02 & 4.665600000000001e+01 \\
-5.065300000000001e+01 & 1.930290000000000e+02 & -2.451990000000000e+02 & 1.038230000000000e+02 \\
-7.408800000000001e+01 & 2.751840000000000e+02 & -3.407040000000000e+02 & 1.406080000000000e+02 \\
-1.038230000000000e+02 & 3.777390000000001e+02 & -4.581090000000000e+02 & 1.851930000000000e+02 \\
-1.105920000000000e+02 & 4.008960000000000e+02 & -4.844160000000000e+02 & 1.951120000000000e+02 \\
-1.250000000000000e+02 & 4.500000000000000e+02 & -5.400000000000000e+02 & 2.160000000000000e+02 \\
-1.574640000000000e+02 & 5.598720000000002e+02 & -6.635520000000001e+02 & 2.621440000000001e+02 \\
-2.053790000000000e+02 & 7.205670000000001e+02 & -8.426970000000001e+02 & 3.285090000000001e+02 \\
-2.874960000000000e+02 & 9.931679999999998e+02 & -1.143648000000000e+03 & 4.389759999999999e+02 \\
-3.430000000000000e+02 & 1.176000000000000e+03 & -1.344000000000000e+03 & 5.120000000000000e+02 \\\end{bmatrix}
$$
答案1
对于如此巨大的矩阵,有两种可能性:要么局部放大文本区域,结合\medmath
来自的命令nccmath
(约 80% \displaystyle
),要么使用bsmallmatrix(*)
提供的环境mathtools
(几乎无法读取)。
\documentclass{article}
\usepackage[margin=1.5in]{geometry}
\usepackage{mathtools, amssymb, nccmath}
\usepackage{bigstrut, changepage, lipsum}
\begin{document}
\lipsum[11]
\begin{adjustwidth}{-2em}{-2em}
\[ \medmath{\begin{bmatrix*}[r]
1.000000000000000\,e+00 & 0.000000000000000\,e+00 & 0.000000000000000\,e+00 & 0.000000000000000\,e+00 \bigstrut[t]\\
6.400000000000002\,e-02 & 2.880000000000000\,e-01 & 4.320000000000001\,e-01 & 2.160000000000000\,e-01 \\
-1.250000000000000\,e-01 & 1.125000000000000\,e+00 & -3.375000000000000\,e+00 & 3.375000000000000\,e+00 \\
-3.429999999999999\,e-01 & 2.499000000000000\,e+00 & -6.068999999999998\,e+00 & 4.912999999999999\,e+00 \\
-7.289999999999998\,e-01 & 4.616999999999998\,e+00 & -9.747000000000000\,e+00 & 6.858999999999999\,e+00 \\
-1.331000000000000\,e+00 & 7.623000000000002\,e+00 & -1.455300000000000\,e+01 & 9.261000000000001\,e+00 \\
-2.196999999999999\,e+00 & 1.166100000000000\,e+01 & -2.063099999999999\,e+01 & 1.216700000000000\,e+01 \\
-4.096000000000001\,e+00 & 1.996800000000001\,e+01 & -3.244800000000000\,e+01 & 1.757600000000000\,e+01 \\
-5.831999999999998\,e+00 & 2.721599999999999\,e+01 & -4.233599999999999\,e+01 & 2.195199999999999\,e+01 \\
-8.000000000000000\,e+00 & 3.600000000000000\,e+01 & -5.400000000000000\,e+01 & 2.700000000000000\,e+01 \\
-1.757600000000000\,e+01 & 7.300800000000001\,e+01 & -1.010880000000000\,e+02 & 4.665600000000001\,e+01 \\
-5.065300000000001\,e+01 & 1.930290000000000\,e+02 & -2.451990000000000\,e+02 & 1.038230000000000\,e+02 \\
-7.408800000000001\,e+01 & 2.751840000000000\,e+02 & -3.407040000000000\,e+02 & 1.406080000000000\,e+02 \\
-1.038230000000000\,e+02 & 3.777390000000001\,e+02 & -4.581090000000000\,e+02 & 1.851930000000000\,e+02 \\
-1.105920000000000\,e+02 & 4.008960000000000\,e+02 & -4.844160000000000\,e+02 & 1.951120000000000\,e+02 \\
-1.250000000000000\,e+02 & 4.500000000000000\,e+02 & -5.400000000000000\,e+02 & 2.160000000000000\,e+02 \\
-1.574640000000000\,e+02 & 5.598720000000002\,e+02 & -6.635520000000001\,e+02 & 2.621440000000001\,e+02 \\
-2.053790000000000\,e+02 & 7.205670000000001\,e+02 & -8.426970000000001\,e+02 & 3.285090000000001\,e+02 \\
-2.874960000000000\,e+02 & 9.931679999999998\,e+02 & -1.143648000000000\,e+03 & 4.389759999999999\,e+02 \\
-3.430000000000000\,e+02 & 1.176000000000000\,e+03 & -1.344000000000000\,e+03 & 5.120000000000000\,e+02 \bigstrut[b]
\end{bmatrix*}} \]%
\end{adjustwidth}
\[\medmath{\begin{bsmallmatrix*}[r]
1.000000000000000\,e+00 & 0.000000000000000\,e+00 & 0.000000000000000\,e+00 & 0.000000000000000\,e+00{ \bigstrutjot =2ex\bigstrut[t]}\\
6.400000000000002\,e-02 & 2.880000000000000\,e-01 & 4.320000000000001\,e-01 & 2.160000000000000\,e-01 \\
-1.250000000000000\,e-01 & 1.125000000000000\,e+00 & -3.375000000000000\,e+00 & 3.375000000000000\,e+00 \\
-3.429999999999999\,e-01 & 2.499000000000000\,e+00 & -6.068999999999998\,e+00 & 4.912999999999999\,e+00 \\
-7.289999999999998\,e-01 & 4.616999999999998\,e+00 & -9.747000000000000\,e+00 & 6.858999999999999\,e+00 \\
-1.331000000000000\,e+00 & 7.623000000000002\,e+00 & -1.455300000000000\,e+01 & 9.261000000000001\,e+00 \\
-2.196999999999999\,e+00 & 1.166100000000000\,e+01 & -2.063099999999999\,e+01 & 1.216700000000000\,e+01 \\
-4.096000000000001\,e+00 & 1.996800000000001\,e+01 & -3.244800000000000\,e+01 & 1.757600000000000\,e+01 \\
-5.831999999999998\,e+00 & 2.721599999999999\,e+01 & -4.233599999999999\,e+01 & 2.195199999999999\,e+01 \\
-8.000000000000000\,e+00 & 3.600000000000000\,e+01 & -5.400000000000000\,e+01 & 2.700000000000000\,e+01 \\
-1.757600000000000\,e+01 & 7.300800000000001\,e+01 & -1.010880000000000\,e+02 & 4.665600000000001\,e+01 \\
-5.065300000000001\,e+01 & 1.930290000000000\,e+02 & -2.451990000000000\,e+02 & 1.038230000000000\,e+02 \\
-7.408800000000001\,e+01 & 2.751840000000000\,e+02 & -3.407040000000000\,e+02 & 1.406080000000000\,e+02 \\
-1.038230000000000\,e+02 & 3.777390000000001\,e+02 & -4.581090000000000\,e+02 & 1.851930000000000\,e+02 \\
-1.105920000000000\,e+02 & 4.008960000000000\,e+02 & -4.844160000000000\,e+02 & 1.951120000000000\,e+02 \\
-1.250000000000000\,e+02 & 4.500000000000000\,e+02 & -5.400000000000000\,e+02 & 2.160000000000000\,e+02 \\
-1.574640000000000\,e+02 & 5.598720000000002\,e+02 & -6.635520000000001\,e+02 & 2.621440000000001\,e+02 \\
-2.053790000000000\,e+02 & 7.205670000000001\,e+02 & -8.426970000000001\,e+02 & 3.285090000000001\,e+02 \\
-2.874960000000000\,e+02 & 9.931679999999998\,e+02 & -1.143648000000000\,e+03 & 4.389759999999999\,e+02 \\
-3.430000000000000\,e+02 & 1.176000000000000\,e+03 & -1.344000000000000\,e+03 & 5.120000000000000\,e+02\bigstrutjot=1.6ex
\bigstrut[b]
\end{bsmallmatrix*}} \]%
\end{document}