やはりAmsLaTeXのバグだったのか [TeX]
mathtoolsのドキュメントを読んでいたら、AmsLaTeXのバグの例が載っていた。
% Sometimes ¥pkg{amsmath} gives you nasty surprises, as here where
% things look seemingly innocent:
% ¥begin{verbatim}
% ¥[
% ¥begin{gathered}
% [p] = 100 ¥¥
% [v] = 200
% ¥end{gathered}
% ¥]
% ¥end{verbatim}
% Without ¥pkg{mathtools} this will result in this output:
% ¥[
% ¥begin{gathered}[c]
% = 100 ¥¥
% [v] = 200
% ¥end{gathered}
% ¥]
% Yes, the ¥texttt{[p]} has been gobbled without any warning
% whatsoever.¥footnote{¥pkg{amsmath} thought the ¥texttt[p] was an
% optional argument, checked if it was ¥texttt{t} or ¥texttt{b} and
% when both tests failed, assumed it was a ¥texttt{c}.}
ある出版社のために組版したときに遭遇したものだ。
% Sometimes ¥pkg{amsmath} gives you nasty surprises, as here where
% things look seemingly innocent:
% ¥begin{verbatim}
% ¥[
% ¥begin{gathered}
% [p] = 100 ¥¥
% [v] = 200
% ¥end{gathered}
% ¥]
% ¥end{verbatim}
% Without ¥pkg{mathtools} this will result in this output:
% ¥[
% ¥begin{gathered}[c]
% = 100 ¥¥
% [v] = 200
% ¥end{gathered}
% ¥]
% Yes, the ¥texttt{[p]} has been gobbled without any warning
% whatsoever.¥footnote{¥pkg{amsmath} thought the ¥texttt[p] was an
% optional argument, checked if it was ¥texttt{t} or ¥texttt{b} and
% when both tests failed, assumed it was a ¥texttt{c}.}
ある出版社のために組版したときに遭遇したものだ。
Using LaTeX for Maths (ULFM): Learning by hacking
- 作者: S. Parthasarathy
- 出版社/メーカー: LAP LAMBERT Academic Publishing
- 発売日: 2017/09/05
- メディア: ペーパーバック