MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Case sensitive sorts with makeindex
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Case sensitive sorts with makeindex
I can get symbols to sort ahead of all other characters, but I can't get capital letters grouped ahead of small ones.
What it looks like now:
\Gamma
\Pi
\pi
A
a
B
b
...
What I'd like:
\Gamma
\Pi
\pi
A
B
...
a
b
...
Any suggestions?
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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Case sensitive sorts with makeindex
Best regards
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
Case sensitive sorts with makeindex
Declare symbols via
Code: Select all
\nomenclature[*C]{$\Gamma$}{blah}
Code: Select all
\nomenclature[+C]{$C$}{blah}
Code: Select all
\nomenclature[-c]{$c$}{blah}
For those that use VIM, the following commands are handy for updating the upper and lower case letters:
Code: Select all
%s/\(nomenclature\[\)\([A-Z]\)/\1+\2/
%s/\(nomenclature\[\)\([a-z]\)/\1-\2/
Working example:
Code: Select all
\nomenclature[-aa]{$a_a$}{asntoehu}%
\nomenclature[*C]{$\Gamma$}{asnteohu}%
\nomenclature[*H]{$\Omega$}{asnteohu}%
\nomenclature[+Aa]{$A_a$}{asontehu}%
\nomenclature[+AA]{$A_A$}{santoehu}%
\nomenclature[+Ba]{$B_a$}{asntoehu}%
\nomenclature[*Y]{$\Psi$}{asnteohu}%
\Gamma
\Omega
\Psi
A_A
A_a
B_a
a_a
This seems to solve the problem adequately.