LoginSignup
1
1

More than 5 years have passed since last update.

`latexdiff`で生成したLaTeXファイルのコンパイルが,`\begin{aligned} \end{aligned}`を含む数式で失敗する場合の対処法

Last updated at Posted at 2015-11-29

latexdiffで生成したLaTeXファイルのコンパイルが,alignedを含む数式で,以下のようなエラーとともに失敗する事があります:

! Limit controls must follow a math operator.
\UL@onmath ...hrest \mathop {\kern \z@ #1}\limits 
                                                  \sb {\UL@leadtype \LA@hski...
l.515     = }
           &

このエラーは,latexdiffが配列環境を探すために使用している正規表現がalignedに対応していないことが原因で発生します.
latexdiff

my $ARRENV='(?:array|[pbvBV]?matrix|smallmatrix|cases|split)';

という行を

my $ARRENV='(?:aligned|array|[pbvBV]?matrix|smallmatrix|cases|split)';

のように書き換えることで,対処できます.

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1