5

I get several errors on trying to add "\exists !" to the nomenclature.

Does someone can help?

Here my MWE (sorry for the makeindex, I don't want to change my build-command and without changing it, it completely fails)

\documentclass{article}
\usepackage{makeidx}
\usepackage{nomencl}

\makeindex

\makenomenclature

\begin{document}
dummy
\nomenclature{$\exists$}{exists}
%\nomenclature{$\exists !$}{exists exactly one} %error
%\nomenclature{$\exists!$}{exists exactly one} %error
\nomenclature{$\exists$!}{exists exactly one} %no effect

\printnomenclature
\end{document}

Solution:

\nomenclature{$\exists"!$}{exists exactly one}
5
  • What happens if you make $\exists\; !$?
    – juanuni
    Commented Aug 13, 2016 at 3:26
  • 2
    Try \nomenclature{$\exists"!$}{...} The character ! Is special for makeindex and has to be quoted
    – egreg
    Commented Aug 13, 2016 at 5:33
  • @juanuni doesn't work
    – user1
    Commented Aug 13, 2016 at 16:13
  • @egreg thanks. I added your solution to the question
    – user1
    Commented Aug 13, 2016 at 16:17
  • @Ben I'm on the road now. I'll add an answer later, if none comes along.
    – egreg
    Commented Aug 13, 2016 at 16:35

1 Answer 1

6

Some characters are special for MakeIndex:

! @ | ( ) "

and they should be quoted when in an index entry; it doesn't matter whether it is \nomenclature, because it uses the same framework as \index. Quoting is obtained by prefixing the special character with ". Thus

\nomenclature{$\exists"!$}{exists exactly one}

should do.

1
  • Quoting | doesn't help for me. Using \vert is an alternative
    – user1
    Commented Apr 24, 2019 at 8:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .