I have a question regarding Nomenclature entries. I'm using the default LyX option to add entries ("Insert -> Nomenclature entry").
My entries are words all in roman letters with some occasional numbers. The default option of LyX gives a "Sort As" field and I would like to sort it in three categories : Chimique, Biologique, and Tampon (literally pardon my french).
When printing the nomenclature in the end, the entries are sorted first using the Bio category, then the chem, then the Temp.
1° What my problem is ?
I would like to have the name of the categories inside the nomenclature. Ie,
Nomenclature
Bio
... bio entries ...
Chem
... chem entries ...
2° What i've managed to find so far.
Using the nomencl package readme (http://tug.ctan.org/tex-archive/macros/ ... omencl.pdf) on page 11 I've found that it's possible to add subgroups.
This would be done by adding something of the nature to the preamble :
Code: Select all
\UsePackage{ifthen}
\renewcommand{\nomgroup}[1]{%
\ifthenelse{\equal{#1}{R}}{\item[\textbf{Variables}
\ifthenelse{\equal{#1}{G}}{\item[\textbf{Constants}
3° Where I'm stuck
I really don't understand how those ifthenelse work and how to use them to do what I want.
I've tried
Code: Select all
\UsePackage{ifthen}
\renewcommand{\nomgroup}
\ifthenelse{Biologique}{\item[\textbf{Biologique}
\ifthenelse{Chimique}}{\item[\textbf{Chimique}
I sense like I'm not using ifthenelse right, but I'm totally new to LyX and reading many different wikis/posts has still not managed to help me yet ...