1

Get that error when i use \listofnomenclature{ll} it is defined as so in the Thesis.cls file

 }
\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
}

use case:

\listofnomenclature{ll}

{

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

A minimal example can be found here: https://www.dropbox.com/sh/crwqkoiqr8crldj/AACGzMkXZEOViP0pnO1zhTs1a?dl=0

i have used this in a previous project and it worked fine..

  • 1
    Please do not use external links for MWE. External links can break. Always add a MWE as code into the question. – Schweinebacke Jul 9 '17 at 9:42
  • 1
    The error message raises if you declare less columns for a tabular (either tabular, longtable, tabularx or similar environments) than you are using or if you try to add an ampersand not using \& but the alignment token &. – Schweinebacke Jul 9 '17 at 9:45
  • 1
    @Schweinebacke but 2 columns were declared and 2 columns were used ,as seen in the code above.. The ampersand here indicates an alignment token, not the actual ampersand symbol. – Drak Jul 9 '17 at 10:18
  • 1
    The code snippet at the question does not show any valid usage of \listofnomenclature. The \listofnomenclature{ll} of the first sentence of your question is not complete (second argument missing). I cannot access the dropbox code currently (and won't if I could). So currently I cannot say anything more than I've done in the comments. Otherwise I would have add an answer instead of a comment. However: Here and now it is to hot, to do any more support. I'm well done. – Schweinebacke Jul 9 '17 at 10:25
  • 1
    @Schweinebacke "i'm well done", i hope that was a pun, considering your username :P i edited the post and added a use case. I cant not add all the code in the question (for example the thesis class is in excess of 300 lines). nonetheless, thanks for your comments (y) – Drak Jul 9 '17 at 11:15
0

for some weird reason, it works by removing the spaces.

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

interesting though, the text output is always centered, even when using \raggedright..why is it always centered?

  • Don't use answers for questions. If you have a question ask a question (with MWE). – Schweinebacke Jul 12 '17 at 10:40
  • its a followup question derived from the answer..MWE is that of the original post. – Drak Jul 12 '17 at 10:52
  • Follup questions have to be ask as questions not as answers! Put a link into the new question if this question or this answer is relevant for the new question. And: There is still no MWE in the original post. There is only a link to something external, that could be or become a MWE. – Schweinebacke Jul 12 '17 at 11:37
  • if anyone is interested, change the [c] (for center) to [l] (for left) in the following line in the Thesis.cls \begin{longtable}[c]{#1}#2\end{longtable}\par – Drak Jul 12 '17 at 13:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.