GeneralProblems with acronyms

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Monkey D
Posts: 22
Joined: Thu Nov 01, 2007 6:12 pm

Problems with acronyms

Post by Monkey D »

Hi,

I'm trying to add an acronym in my document

Code: Select all

\nomenclature[zcif]{$CIF$}{Cauchy's Integral Formula}
but latex whines about it:

Code: Select all

...
! LaTeX Error: Something's wrong--perhaps a missing \item.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.5   \item [{$CIF$}]
                     \begingroup Cauchy's Integral Formula\nomeqref {2.0}
?
This is my .nls file:

Code: Select all

\begin{thenomenclature} 

 \nomgroup{Z}

  \item [{$CIF$}]\begingroup Cauchy's Integral Formula\nomeqref {2.0}
		\nompageref{6}

\end{thenomenclature}

However it works when using something like this:

Code: Select all

\begin{eqnarray}
CIF: \hspace*{5mm}F_0^j(a) &=& \frac{1}{2\pi \iota} \oint_{\gamma} \frac{F_0^j(z)}{z - a} dz
\end{eqnarray}
\nomenclature[zcif]{$CIF$}{Cauchy's Integral Formula}                  % first letter Z is for Acronyms 
\nomenclature[aF]{$F$}{complex function}                               % first letter A is for Roman symbols
\nomenclature[gp]{$\pi$}{ $\simeq 3.14\ldots$}                         % first letter G is for Greek Symbols
\nomenclature[gi]{$\iota$}{unit imaginary number $\sqrt{-1}$}          % first letter G is for Greek Symbols
\nomenclature[gg]{$\gamma$}{a simply closed curve on a complex plane}  % first letter G is for Greek Symbols
\nomenclature[xi]{$\oint_\gamma$}{integration around a curve $\gamma$} % first letter X is for Other Symbols
\nomenclature[rj]{$j$}{superscript index}                              % first letter R is for superscripts
\nomenclature[s0]{$0$}{subscript index}                                % first letter S is for subscripts
Any ideas?

BTW, I'm using Cambridge's thesis latex template.

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Monkey D
Posts: 22
Joined: Thu Nov 01, 2007 6:12 pm

Problems with acronyms

Post by Monkey D »

OK, I've got things almost working (and I've learnt a bit more about latex... *joy* :roll: )
It's either a bug in latex or in the template I'm using.

The Cambridge template defines nomenclatures this way:

Code: Select all

% Nomenclature
\usepackage{nomencl}
% \makeglossary % replaced by \makenomenclature
\makenomenclature
\renewcommand\nomgroup[1]{%
  \ifthenelse{\equal{#1}{A}}{%
   \item[\textbf{Roman Symbols}] }{%             A - Roman
    \ifthenelse{\equal{#1}{G}}{%
     \item[\textbf{Greek Symbols}]}{%             G - Greek
      \ifthenelse{\equal{#1}{R}}{%
        \item[\textbf{Superscripts}]}{%              R - Superscripts
          \ifthenelse{\equal{#1}{S}}{%
           \item[\textbf{Subscripts}]}{{%             S - Subscripts
	    \ifthenelse{\equal{#1}{X}}{%
	     \item[\textbf{Other Symbols}]}{{%    X - Other Symbols
	    \ifthenelse{\equal{#1}{Z}}{%
	     \item[\textbf{Acronyms}]}%              Z - Acronyms
              			{{}}}}}}}}}}

\ifpdf
I get an error if I have this:

Code: Select all

\nomenclature[zAI]{$AI$}{Artificial Intelligence}
but it works fine if I use this instead:

Code: Select all

\nomenclature[zAI]{$AI$}{Artificial Intelligence}
\nomenclature{$bug$}{this is either a latex bug or a template bug}
So for whatever reason I need to have at least one nomenclature item that doesn't use prefix tips.

Any ideas on what's wrong?
Post Reply