\documentclass[12pt,twoside,a4paper,openright]{report}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead, headheight=15.8pt]{geometry}
\usepackage{mathtools}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\label{equacao_silica}
\binom{\text{Quantidade}}{\text{Sílica (\% (w/w))}}
= 100 - \left[\binom{\text{Perda de Massa}}{\text{(580\degree C-900\degree C)}
\times \frac{100,1}{44}} - \binom{\text{Perda de Massa}}{\text{(30\degree C-200\degree C)}}
- \binom{\text{\% Resíduos}}{\text{GCC}} \right]\\
\end{equation}
\end{document}
我怎样才能在这个等式中引入换行符?
答案1
例如(-
行尾是否存在取决于您所在国家/地区的印刷规则):
\documentclass[12pt,twoside,a4paper,openright]{report}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage{siunits} % added - PS
\usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead, headheight=15.8pt]{geometry}
\usepackage{mathtools}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\label{equacao_silica}
\begin{aligned}
&\binom{\text{Quantidade}}{\text{Sílica (\% (w/w))}}
= 100 - {}\\
&\qquad{} - \left[\binom{\text{Perda de Massa}}{\text{(580\degree C-900\degree C)}
\times \frac{100,1}{44}} - \binom{\text{Perda de Massa}}{\text{(30\degree C-200\degree C)}}
- \binom{\text{\% Resíduos}}{\text{GCC}} \right]\\
\end{aligned}
\end{equation}
\end{document}
可能其他一些环境,例如gathered
,可能更合适;aligned
仅仅是一个例子。
答案2
引入换行符有很多种方法。关键步骤是不是使用\left
并\right
调整方括号的大小,因为不能在\left
-\right
对之间换行。
这里有两种可能的解决方案,一种是使用multline
环境,另一种是split
使用嵌套在equation
环境中的环境。
\documentclass[12pt,twoside,a4paper,openright]{report}
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage[inner=3cm,outer=2cm,tmargin=2.0cm,bmargin=2.0cm, includefoot, includehead, headheight=15.8pt]{geometry}
\usepackage{mathtools}
%\usepackage{amsmath} % is loaded automatically by 'mathtools'
\newcommand\degree{\ensuremath{^{\circ}}} %% correct this if necessary
\begin{document}
\begin{multline}
\label{equacao_silica}
\binom{\text{Quantidade}}{\text{Sílica (\% (w/w))}}
= 100 - \biggl\{\binom{\text{Perda de Massa}}{\text{(580\degree C--900\degree C)}
\times \frac{100,1}{44}} \\
- \binom{\text{Perda de Massa}}{\text{(30\degree C--200\degree C)}}
- \binom{\text{\% Resíduos}}{\text{GCC}} \biggr\}
\end{multline}
\begin{equation}\begin{split}
\label{equacao_silica}
\binom{\text{Quantidade}}{\text{Sílica (\% (w/w))}}
&= 100 - \biggl\{\binom{\text{Perda de Massa}}{\text{(580\degree C--900\degree C)}
\times \frac{100,1}{44}} \\
&\quad{}- \binom{\text{Perda de Massa}}{\text{(30\degree C--200\degree C)}}
- \binom{\text{\% Resíduos}}{\text{GCC}} \biggr\}
\end{split}\end{equation}
\end{document}
顺便说一句,我认为--
应该使用短破折号 ( ) 而不是单破折号来表示温度范围。