錯位的對齊製表符 &

錯位的對齊製表符 &

當我使用它時出現該錯誤\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

相關內容