MakeIndex, Nomenclature, Glossaries and AcronymsNomencl rejects left indices

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

Nomencl rejects left indices

Post by Lucker10 »

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:

Code: Select all

\item yx ${^B\
   \subitem [{${^B\
   	\subsubitem } f_i$}] \begingroup Vector $f$ in \{B\} frame\nomeqref {\relax 4.7}
Any ideas how to fix this?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Nomencl rejects left indices

Post by Johannes_B »

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

Nomencl rejects left indices

Post by Lucker10 »

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: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Nomencl rejects left indices

Post by Johannes_B »

! 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

Nomencl rejects left indices

Post by Lucker10 »

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: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Nomencl rejects left indices

Post by Johannes_B »

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

Nomencl rejects left indices

Post by Lucker10 »

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