intertext
命令似乎删除了缩进。有没有办法在数学模式下获得正常缩进?
\documentclass[11pt, a4paper]{IEEEtran}
\usepackage{amsmath}
\usepackage{amssymb, amsfonts}
\begin{document}
The indentation in this paragraph works well without any issues
\begin{align}
y &= a \thinspace x + c
%
\\
\intertext{The indentation in this paragraph has been removed since this is an intertext. How can I force this text to retain the default indentation?}
e &= m \thinspace c^{2}
\end{align}
\end{document}
答案1
您可以手动恢复段落缩进,但我不确定我个人是否愿意这样做。更具体地说,在这种情况下,我会创建两个单独的align
s/ s,只是因为不是为此而设计的。正如 Mico 指出的那样,它旨在在两个对齐的方程之间插入一些短文本。(不过,我确实明白,这样可以确保两个方程的等号对齐,但这也可以通过其他方式实现,例如equation
\intertext
\intertext
这里。
不管怎样,这里是“手动”恢复段落类型缩进。
\documentclass[11pt, a4paper]{IEEEtran}
\usepackage{amsmath}
\usepackage{amssymb, amsfonts}
\begin{document}
The indentation in this paragraph works well without any issues
\begin{align}
y &= a \thinspace x + c
%
\\
\intertext{\indent The indentation in this paragraph has been removed since this is an intertext. How can I force this text to retain the default indentation?}
e &= m \thinspace c^{2}
\end{align}
\end{document}