GeneralNot working nomenclature with columns and groups

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
RaptorAero
Posts: 3
Joined: Wed Apr 11, 2012 4:43 pm

Not working nomenclature with columns and groups

Post by RaptorAero »

Hi,

I am using a nomenclature in LyX with this preamble, which I learned to do here, in order to make a nomenclature with two columns and several groups. I have the exactly same preamble working in other document (I have attached too), but it isn't working here I don't know why.

Code: Select all

\renewcommand{\nomgroup}[1]{%
\ifthenelse{\equal{#1}{G}}{\item[\textbf{Símbolos griegos}]}{%
\ifthenelse{\equal{#1}{L}}{\item[\textbf{Símbolos latinos}]}{%
\ifthenelse{\equal{#1}{R}}{\item[\textbf{Sistemas de referencia}]}{%
\ifthenelse{\equal{#1}{SUB}}{\item[\textbf{Subíndices}]}{%
\ifthenelse{\equal{#1}{SUP}}{\item[\textbf{Superíndices}]}
{}
}% matches Símbolos griegos
}% matches Símbolos latinos
}% matches Sistemas de referencia
}% matches Subíndices
}% matches Superíndices

\usepackage{multicol}
\renewcommand*\nompreamble{\begin{multicols}{2}}
\renewcommand*\nompostamble{\end{multicols}}
Thank you in advance.
The attachment MWE_nomenclature.lyx is no longer available
Attachments
Working example in pdf
Working example in pdf
Working example preview.JPG (72.93 KiB) Viewed 3083 times
MWE_nomenclature.lyx
(7.42 KiB) Downloaded 195 times
Last edited by Stefan Kottwitz on Thu Apr 12, 2012 9:07 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

RaptorAero
Posts: 3
Joined: Wed Apr 11, 2012 4:43 pm

Not working nomenclature with columns and groups

Post by RaptorAero »

Solved.

I just needed:

Code: Select all

\usepackage{ifthen}
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Not working nomenclature with columns and groups

Post by Stefan Kottwitz »

Ok, so I marked it as solved.

Btw. perhaps we would have seen that too, if you would have posted the error message or the .log file. ;-)

Stefan
LaTeX.org admin
RaptorAero
Posts: 3
Joined: Wed Apr 11, 2012 4:43 pm

Re: Not working nomenclature with columns and groups

Post by RaptorAero »

Ok, thank you. I will do it the next time, I thought it wasn't needed because the same error appears in the MWE.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

Re: Not working nomenclature with columns and groups

Post by Stefan Kottwitz »

Posting an MWE was very good!
I just don't have LyX installed on each of my PCs (Laptop), so I could not test with it.

Btw. with the error message mentioned, people would find your solution (using ifthen) if they come here via google for the same problem or use the forum search, so it's also beneficial anyway.

Stefan
LaTeX.org admin
Post Reply