2

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

\newglossaryentry{CSPB}{name={CSP\ensuremath{\parallel}B},
  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?

2
  • 1
    Try \protect\parallel. Nov 20, 2012 at 9:52
  • 1
    \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. Nov 20, 2012 at 10:12

2 Answers 2

4

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}.

0

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

1
  • \parallel works for me.
    – lockstep
    Nov 20, 2012 at 9:58

You must log in to answer this question.

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