Hello, I have one question.
Is there a way how to make the list of abbreviations clickable? I mean, if I use \usepackage[refpage]{nomencl} \usepackage{hyperref} I would like to have the list of nomenclatures to contain the clickable references to the pages. Everything else is clickable, but list produced by nomencl package is not. (list of indexes is also; i.e. hyperref works).
Also, if I use some abbreviation/nomenclature (\nomenclature{Abbr}{Something}) twice, or several times in the document, nomencl produces a list (\printnomenclature} that contains duplicate entries. Is there a way how to make it the same way as index is produced (one entry - several pages; or only the first page of occuring).
Thank you.
MakeIndex, Nomenclature, Glossaries and Acronyms ⇒ Nomencl + hyperref / remove duplicates from the list
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: Nomencl + hyperref / remove duplicates from the list
I made a macro that works almost as I wanted:
\newcommand{\abbr}[2]{\label{abbr:#1}\nomenclature{#1}{\label{abbr:#1b}#2, \pageref{abbr:#1}}\hyperref[abbr:#1b]{#1}}
Now when you write \abbr{Abbr}{Abbreviation}, it will put Abbr in the text and in the list of abbreviations. You can also click back and forth. The problem is, that the link is only to the first page of abbreviations and not actually to the abbreviation. So in case when you have long list of abbreviations, on several pages, and you click on the abbreviation it will just link you on the first page. Which is not completely ok.
If someone has a better solution, please post it.
\newcommand{\abbr}[2]{\label{abbr:#1}\nomenclature{#1}{\label{abbr:#1b}#2, \pageref{abbr:#1}}\hyperref[abbr:#1b]{#1}}
Now when you write \abbr{Abbr}{Abbreviation}, it will put Abbr in the text and in the list of abbreviations. You can also click back and forth. The problem is, that the link is only to the first page of abbreviations and not actually to the abbreviation. So in case when you have long list of abbreviations, on several pages, and you click on the abbreviation it will just link you on the first page. Which is not completely ok.
If someone has a better solution, please post it.
Nomencl + hyperref / remove duplicates from the list
I found the solution using phantomsection:
Since there is a big chance, that some abbreviation ends on "b", I had to change the label to abbr:Abbrbbbb.
Code: Select all
\newcommand{\abbr}[2]{\phantomsection\label{abbr:#1}\nomenclature{#1}{#2, \pageref{abbr:#1}\phantomsection\label{abbr:#1bbbb}}\hyperref[abbr:#1bbbb]{#1}}
\newcommand{\abref}[1]{\hyperref[abbr:#1bbbb]{#1}}
Last edited by pisoir on Sat Dec 05, 2009 4:54 pm, edited 1 time in total.
Re: Nomencl + hyperref / remove duplicates from the list
Nice macro! Unfortunately, this doesn't seem to work with math symbols like $\vec{x}$. Could you provide a solution to this?
Best regards,
tommes42
Best regards,
tommes42