
나는 그 부분에서 그것을 알아차렸다.답변여기서 는 \pod
를 사용하여 재정의되고 ... ... \mathchoice
문은 의 처음 두 옵션에 사용됩니다 . 나는 궁금했습니다: 무엇을 의미하며, 언제 그 진술을 사용하는 것이 필요한(또는 권장되는) ... ... ?\if@display
\else
\fi
\mathchoice
@display
\if@display
\else
\fi
답변1
\if@display
단일 토큰이 아니라 \if
@display
amsmath에서 다음과 같이 정의 및 문서화되어 있습니다.
% The straightforward \cs{ifinner} test to see if the current math
% context is non-display, fails if, for instance, we are typesetting
% a multiline display within an \cs{halign}, with the pieces going
% into constructions like
% \begin{verbatim}
% $\displaystyle...$
% \end{verbatim}
% So we need a better test to find out if we are `in a display'. We
% therefore create \cs{if@display}.
%
% \begin{macrocode}
\newif\if@display
\everydisplay\@xp{\the\everydisplay \@displaytrue}
% \end{macrocode}
기본적으로 이는 amsmath의 내부 구조로, 다른 곳에서 사용하기 위한 것이 아닙니다. 하지만 때로는 일반적인 구조의 대안으로 주의해서 사용할 수도 있습니다 \mathchoice
.