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)




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



\nomenclature{$\exists"!$}{exists exactly one}
  • What happens if you make $\exists\; !$?
    – juanuni
    Aug 13 '16 at 3:26
  • 2
    Try \nomenclature{$\exists"!$}{...} The character ! Is special for makeindex and has to be quoted
    – egreg
    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.
    – egreg
    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

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.