6

I'm trying to get my nomenclature to sort alphabetically, including word with accent. Basics! Well, I read all \nomencl documentation and many of your expert answers here... So I tried different things, inserted a prefix and modified my build.bat to run LaTeX, makeindex <filename>.nlo -s nomencl.ist -o <filename>.els, rerun LaTeX, then pdflatex...

\documentclass[11pt,a4paper,twoside]{book}

\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}
\usepackage{lmodern}
\usepackage{titletoc}
\usepackage{tocloft}
\usepackage{nomencl}
\usepackage{makeidx}
\usepackage[frenchb]{babel}

\makenomenclature

\begin{document}

\printnomenclature[7em]

\nomenclature{déc.}{Décision}
\nomenclature[e]{éd.}{édition}
\nomenclature{Gaz. Pal.}{Gazette du palais}

\end{document}

For some reason, it's still not working for me... I'm close to take it personally!

7

There is a default prefix a that is added before the entries without optional argument. Therefore aGaz... is sorted before e.... You can redefine the default prefix to an empty string:

\renewcommand*{\nomprefix}{}
1
  • Works like a charm! No regret, I wouldn't have found it by myself... Thank you very much for your quick and perfect answer! ;-) – Doompa Oct 14 '12 at 11:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.