lingmacros 对齐导致编译失败

lingmacros 对齐导致编译失败

无需&对齐,它就能完美运行。

\documentclass[11pt]{article}
\usepackage{lingmacros}

\begin{document}

\enumsentence{\shortex{3}
  {Taroo$_i$-ga Yo$_j$-o zibun$_{i/*j}$-no shinshitsu-ni okutta.}
  {Taro-NOM Yo-ACC self-GEN bedroom-DAT sent}
  {`Taro$_i$ sent Yo$_j$ to his$_{i/*j}$ bedroom.'}
}

\end{document}

但当我添加&

\documentclass[11pt]{article}
\usepackage{lingmacros}

\begin{document}

\enumsentence{\shortex{3}
  {Taroo$_i$-ga & Yo$_j$-o & zibun$_{i/*j}$-no & shinshitsu-ni & okutta.}
  {Taro-NOM & Yo-ACC & self-GEN & bedroom-DAT & sent}
  {`Taro$_i$ sent Yo$_j$ to his$_{i/*j}$ bedroom.'}
}

\end{document}

我明白了

! Extra alignment tab has been changed to \cr.
<template> \unskip \hfil }\ \endtemplate 

l.10 }

答案1

您需要为注释指定正确的列数。由于注释行有 5 个元素,因此您需要指定 5 列。

\documentclass[11pt]{article}
\usepackage{lingmacros}

\begin{document}

\enumsentence{\shortex{5}
  {Taroo$_i$-ga & Yo$_j$-o & zibun$_{i/*j}$-no & shinshitsu-ni & okutta.}
  {Taro-NOM & Yo-ACC & self-GEN & bedroom-DAT & sent}
  {`Taro$_i$ sent Yo$_j$ to his$_{i/*j}$ bedroom.'}
}

\end{document}

相关内容