TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to get the \ensuremath function to work within glossaries for the following:

  description={A hybrid formal language combining CSP and the B-Method},sort=CSPB}

However I get an error message:

! Incomplete \iffalse; all text was ignored after line 120.

If I take the \ensuremath{\parallel} out there is no problem. Any ideas why this isn't working as the manual suggests?

share|improve this question
Try \protect\parallel. – Stephan Lehmke Nov 20 '12 at 9:52
\ensuremath is inappropriate here in any case, you would be better just to use $\parallel$. If you are in text mode this will do the right thing. If for some reason you were already in math mode the CSP would have been set with an inappropriate font and having \ensuremath around the \parallel would not fix that. – David Carlisle Nov 20 '12 at 10:12

You should read the 'sanitize' part of the glossaries manual. The name key gets sanitized by default. You either need to \protect your entry or give the package option sanitize={name=false}.

share|improve this answer

Seems \parallel is not supported - implemented using \mid\mid instead

share|improve this answer
\parallel works for me. – lockstep Nov 20 '12 at 9:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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