
을 사용하고 있지만 amsmath[fleqn]
방정식/정렬/수집 환경 외부에서도 방정식을 들여쓰고 싶습니다. 자연스러운 선택은 동일한 길이의 amsmath
사용을 사용하여 들여쓰기하는 것이지만, 어떻게 해야 할지 모르겠습니다. (값을 정의하지 않고) 사용하려고 했지만 \mathindent
"번호 누락" 오류가 발생합니다. 어떻게 해야 하나요? 감사해요
답변1
\mathindent
길이를 유지하므로 "사용"하려면 다음과 같이 수행해야 합니다 \hspace{\mathindent}
. 다음은 관심을 가질만한 예입니다.
\documentclass{article}
\usepackage[fleqn]{amsmath}% http://ctan.org/pkg/amsmath
\begin{document}
Some text before the equation.
\begin{equation}
f(x) = ax^2 + bx + c
\end{equation}
Some text after the equation.
\hspace*{\dimexpr\mathindent-\parindent}$f(x) = ax^2 + bx + c$
Some more text before an equation.
\[
f(x) = ax^2 + bx + c
\]
Some more text after an equation.
\end{document}
수동으로 들여쓰기할 필요 없이 번호가 없는 방정식을 사용할 수 있습니다. 예를 들어 별표 표시된 버전을 사용할 수 있습니다 align
.