Page LayoutAlphabetical Nomenclature

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
archeryguru2000
Posts: 4
Joined: Thu Jan 13, 2011 7:56 pm

Alphabetical Nomenclature

Post by archeryguru2000 »

Hello all,
I'm having a bit of a struggle with correctly displaying my list of symbols for a paper I'm trying to publish. I'm using the nomencl package and it appears to be attempting an alphabetical approach... but if I include []'s or {}'s then my order is rearranged. I assume the package is trying to use some sort of ASCII (or other) way of ordering the entries (somebody can correct me here). However, I would prefer an alphabetic ordering, such as for the Greek alphabet. For example, \theta comes before \omega in Greek but not in ASCII. Also, I would prefer A to come before [A]. But the ASCII code, again, reverses this. Does anybody have a possible work around for this.

Thanks,
~~archery~~
Last edited by archeryguru2000 on Tue Jan 25, 2011 10:00 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

archeryguru2000
Posts: 4
Joined: Thu Jan 13, 2011 7:56 pm

Alphabetical Nomenclature

Post by archeryguru2000 »

Yeah! I think I've figured it out. Here's my code:

Code: Select all

\RequirePackage{ifthen}
\renewcommand{\nomgroup}[1]{%
	\ifthenelse{\equal{#1}{A}}{\item[\textbf{Roman}]}{%
		\ifthenelse{\equal{#1}{G}}{\item[\textbf{Greek}]}}}

...

\nomenclature[gto]{$\tau_0$}{Greek letter}%
\nomenclature[gtc]{$\{\tau\}$}{Greek letter with braces}%
\nomenclature[gtco]{$\{\tau_0\}$}{Greek letter with subscript}%
\nomenclature[aN]{$N$}{Roman letter}%
\nomenclature[aNb]{$[N]$}{Roman letter with brackets}%
\nomenclature[gl]{$\lambda$}{another greek letter}
...
With these "shortcuts" (the []'s immediately following \nomenclature command), I am able to display the Greek alphabet in the correct order. Honestly I feel this should be fixed upstream to allow for other languages WITHIN a given language, i.e. LaTeX will somehow know the symbol is Roman, Greek, etc. without having to explicitly state it within an ifthen statement. But hopefully this post can help somebody else who's having a similar issue.

~~archery~~
Post Reply