我怎样才能将括号在纸张上对齐,并在垂直方向上留出更大的间距,以便老师阅读?(我需要纸张上有更美观的外观,因为后面有很多括号)
\documentclass{article}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{amstext}
\usepackage[brazil]{babel}
\begin{document}
$$\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle \frac{259\times e_1}{4100}+\frac{4,1\times e_1}{4100}+
\frac{0,41\times e_1}{4100}=0,01+1\times10^{-3}+\frac{941}{1640}\\
\addlinespace\displaystyle 4705-517\times e_1=e_2\end{array} \right.
\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle \frac{263,51\times e_1}{4100}=\frac{2997}{5125}\\
\addlinespace
\displaystyle 4705-517\times e_1=e_2\end{array}\right.\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle e_1=\frac{\frac{2997}{5125}}{\frac{263,51}{4100}}\\ \addlinespace
\displaystyle 4705-517\times e_1=e_2\end{array}\right.$$
$$\Leftrightarrow\left\{\begin{array}{ll}
\displaystyle e_1=\frac{12287700}{1350488,75}=
\frac{239760}{26351}\, (dividiu-se\,por\,5125)\\ \addlinespace
\displaystyle e_2=4705-517\times \frac{239760}{26351}=
\frac{123981455}{26351}-\frac{123955920}{26351}
\end{array}\right.$$
$$\Leftrightarrow\left\{\begin{array}{ll}
\displaystyle e_1=\frac{12287700}{1350488,75}\\
\addlinespace
\displaystyle e_2=4705-517\times\frac{239760}{26351}=1
-\frac{123955920}{26351}
\end{array}\right.$$
\end{document}
答案1
这是你想要的吗?我简化了你的代码,并使用来自的\num
命令改进了它的外观\siunitx
,用于日志编号。请注意,你永远不应该使用普通的 TeX$$ … $$
环境,而应该使用 LaTeX \[ … \]
,对于多行显示,可以使用来自的align
、gather
或multline
环境之一amsmath
。在这里我使用了amsmath 定义的align*
和dcases
(显示样式案例),这是非常有用的扩展mathtools
:
\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{mathtools}
\usepackage{siunitx}
\sisetup{output-decimal-marker ={,}}
\usepackage[brazil]{babel}
\begin{document}
\begin{align*}
&\iff
\begin{dcases}
\frac{259\times e_1}{4100}+\frac{4,1\times e_1}{4100}+
\frac{0,41\times e_1}{4100}=0,01+1\times10^{-3}+\frac{941}{1640}\\
4705-517\times e_1=e_2
\end{dcases} \\[1ex]
&\iff
\begin{dcases}
\frac{263,51\times e_1}{4100}=\frac{2997}{5125}\\
4705-517\times e_1=e_2
\end{dcases}
\iff
\begin{dcases}
e_1=\frac{\frac{2997}{5125}}{\frac{263,51}{4100}}\\
4705-517\times e_1=e_2
\end{dcases}\\[1ex]
&\iff
\begin{dcases}
e_1=\frac{\num{12287700}}{\num{1350488,75}}=
\frac{239760}{26351}\quad \text{(dividiu-se\,por\,5125)}\\
e_2=4705-517\times \frac{\num{239760}}{\num{26351}}=
\frac{\num{123981455}}{\num{26351}}-\frac{\num{123955920}}{\num{26351}}
\end{dcases}\\[1ex]
&\iff
\begin{dcases}
e_1=\frac{\num{12287700}}{\num{1350488,75}}\\
e_2=4705-517\times\frac{\num{239760}}{\num{26351}}=1
-\frac{\num{123955920}}{\num{26351}}
\end{dcases}
\end{align*}
\end{document}
答案2
初步考虑:
\addlinespace
除非我先加载了包,否则我不会使用booktabs
。- 用于
\text
括号内的注释。 - 您的数组太大,您应该考虑每行只放一个(正如我下面做的那样)。
- 您不应该显示多个数学表达式,而应该将
amsmath
所有内容加载并放置在amsmath
能够对齐的环境中。 - 您可以通过修改来增加数组内的垂直间距
arraystretch
,并且在启用对齐的环境中,您可以通过在\\
换行符标记后指定选项在行之间插入额外的垂直间距。
您应该研究amsmath
文档并考虑将数组的元素封闭在其自己对齐的环境中,但也许以下内容会让您走上一条好的道路:
\documentclass{article}
\usepackage[top=2cm, bottom=2cm, left=2cm, right=2cm]{geometry}
\usepackage{amsmath}
\usepackage{amstext}
\usepackage[brazil]{babel}
\renewcommand{\arraystretch}{3.0}
\begin{document}
\begin{align*}
&\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle \frac{259\times e_1}{4100}+\frac{4,1\times e_1}{4100}+
\frac{0,41\times e_1}{4100}=0,01+1\times10^{-3}+\frac{941}{1640}\\
\displaystyle 4705-517\times e_1=e_2%
\end{array}\right. \\[0.5cm]
&\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle \frac{263,51\times e_1}{4100}=\frac{2997}{5125}\\
\displaystyle 4705-517\times e_1=e_2
\end{array}\right.\\[0.5cm]
&\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle e_1=\frac{\frac{2997}{5125}}{\frac{263,51}{4100}}\\
\displaystyle 4705-517\times e_1=e_2
\end{array}\right. \\[0.5cm]
&\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle e_1=\frac{12287700}{1350488,75}=
\frac{239760}{26351}\, \text{(dividiu-se\,por\,5125)}\\
\displaystyle e_2=4705-517\times \frac{239760}{26351}=
\frac{123981455}{26351}-\frac{123955920}{26351}
\end{array}\right. \\[0.5cm]
&\Leftrightarrow
\left\{\begin{array}{ll}
\displaystyle e_1=\frac{12287700}{1350488,75}\\
\displaystyle e_2=4705-517\times\frac{239760}{26351}=1
-\frac{123955920}{26351}
\end{array}\right.
\end{align*}
\end{document}