位置ずれしたタブ文字 &

位置ずれしたタブ文字 &

\listofnomenclature{ll} Thesis.clsファイルで定義されているように使用するとエラーが発生します

 }
\newcommand\listnomenclature{Symbols}
\usepackage{longtable}
\newcommand\listofnomenclature[2]{
\btypeout{\listnomenclature}
\addtotoc{\listnomenclature}
\chapter*{\listnomenclature
  \@mkboth{
      \MakeUppercase\listnomenclature}    {\MakeUppercase\listnomenclature}}
\begin{longtable}[c]{#1}#2\end{longtable}\par
\cleardoublepage
}

使用事例:

\listofnomenclature{ll}

{

\textbf{AC} & \textbf{A}lternating \textbf{C}urrent\\
}

最小限の例はここにあります:https://www.dropbox.com/sh/crwqkoiqr8crldj/AACGzMkXZEOViP0pnO1zhTs1a?dl=0

以前のプロジェクトでこれを使用しましたが、問題なく動作しました。

答え1

どういうわけか、スペースを削除すると機能します。

\listofnomenclature{ll}
{\textbf{AC} & \textbf{A}lternating \textbf{C}urrent\\}

興味深いことに、 を使用している場合でも、テキスト出力は常に中央に配置されます\raggedright。なぜ常に中央に配置されるのでしょうか?

関連情報