LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsNomencl rejects left indices Topic is solved

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
Lucker10
Posts: 4
Joined: Thu May 10, 2018 8:39 pm

Nomencl rejects left indices

Postby Lucker10 » Thu May 10, 2018 9:00 pm

Hello, I have the following symbol:
${^B\!}f_i$ which describes a vector in the frame {B}.
I declare the symbol to nomencl with
\nomenclature[yx ]{${^B\!}f_i$}{Vector $f$ in \{B\} frame}.

The problem is that nomencl seems to misinterpret the "\!" (which reduces the space between the index and the symbol) as a subitem or something, as the main.nls shows:
  1. \item yx ${^B\
  2. \subitem [{${^B\
  3. \subsubitem } f_i$}] \begingroup Vector $f$ in \{B\} frame\nomeqref {\relax 4.7}


Any ideas how to fix this?

User avatar
Johannes_B
Site Moderator
Posts: 3828
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu May 10, 2018 10:02 pm

Can you make a compilable example out of this?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Lucker10
Posts: 4
Joined: Thu May 10, 2018 8:39 pm

Postby Lucker10 » Thu May 10, 2018 10:36 pm

I found a workaround which is using \negthinspace instead of \!. So it seems to be a bug within nomencl. I will give an example asap.

User avatar
Johannes_B
Site Moderator
Posts: 3828
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Thu May 10, 2018 10:53 pm

! is special for indexes, meaning a sub-index entry.

So, i don't know how this can be considered a bug?
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Lucker10
Posts: 4
Joined: Thu May 10, 2018 8:39 pm

Postby Lucker10 » Fri May 11, 2018 8:23 am

Well but \! is still a command, or not? So it should recognize it imo and only interpret a single ! as a sub-index entry.

User avatar
Johannes_B
Site Moderator
Posts: 3828
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Sat May 12, 2018 8:29 am

The makeindex program is a different thing, using a different language, meaning a different parser.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Lucker10
Posts: 4
Joined: Thu May 10, 2018 8:39 pm

Postby Lucker10 » Sat May 12, 2018 11:07 am

Well I think you can close this topic as the answer is that makeindex does not allow \! and needs \negthinspace instead.
Thanks!


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 2 guests