# Adding "\exists !" to the nomenclature

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}

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

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.

• Quoting | doesn't help for me. Using \vert is an alternative
– Ben
Apr 24 '19 at 8:13