如何生成如下图所示的方程式(主要是文本):
我正在使用align
环境,但它没有产生预期的结果。任何解决方案都将不胜感激。谢谢。
答案1
如果您使用tabular
或\parbox
设置,则列表可能不会跨页拆分(或可能不会在长项目内拆分)。由于它是一个列表,因此更自然的标记是将其设置为列表:
\documentclass{article}
\usepackage{enumitem}
\begin{document}
\begin{description}[labelwidth=2cm,leftmargin=2cm,align=right,labelsep=0pt]
\item[$\mathit{TA}_{\mathit{it}}={}$]
total accruals (net income from continuing operations ($\mathit{IB}$), minus operating cash flow\dots\\
\item[$A_{\mathit{it}-1}={}$]
total assets for company $i$ at the end of year $t-1$,
\end{description}
\end{document}
答案2
用一个tabular
:
\documentclass{article}
\begin{document}
\begin{tabular}{r@{$\;=\;$}p{9cm}}
$\mathit{TA}_{\mathit{it}}$ & total accruals (net income from continuing operations ($\mathit{IB}$), minus operating cash flow\dots\\
$A_{\mathit{it}-1}$ & total assets for company $i$ at the end of year $t-1$,
\end{tabular}
\end{document}
答案3
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\noindent\rule{\linewidth}{1pt}
\begin{align*}
TA_{it} &= \parbox[t]{0.8\linewidth}{some nonsense text I am using align environment but it's not generating the intended results. Any solution would be appreciated.}\\
A_{it-1} &= \parbox[t]{0.8\linewidth}{some nonsense text I am using align environment \ldots}
\end{align*}
\end{document}
也可以使用tabularx
环境。
\documentclass{article}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{\linewidth}{@{}>{$}r<{$}@{\kern2.8pt}X@{}}
TA_{it} = & total accruals (net income from continuing operations ($IB$), minus operating cash flow\dots\\
A_{it-1}= & total assets for company $i$ at the end of year $t-1$,
\end{tabularx}
\end{document}