Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is it somehow possible to create a nomenclature using the nomencl package in conjunction with the hyperref package, so that whenever a nomenclature entry appears in the main text, it is actually a clickable link to the entry in the nomenclature?

Something like this:

\documentclass{minimal}
\usepackage{nomencl}
\makenomenclature
\usepackage{hyperref}
\begin{document}

Here, I define My Fancy Abbreviation (MFA\nomenclature{MFA}{My fancy abbreviation}).
Later on in the text, I want to use MFA, which should be a link to
the nomenclature entry.

\clearpage{}

\printnomenclature{}
\end{document}
share|improve this question
    
The \nomenclature command does not print anything in the place where it is issued. You are probably looking for a glossary entry, and that can be achieved comfortably with the glossaries package, not the nomencl package. –  mafp Feb 23 '13 at 17:00
add comment

2 Answers

\documentclass{minimal}
\usepackage[refpage]{nomencl}
\renewcommand*{\pagedeclaration}[1]{\unskip, \hyperpage{#1}}
\makenomenclature
\usepackage{hyperref}
\begin{document}

Here, I define My Fancy Abbreviation (\hyperlink{abbr}{MFA}\nomenclature{MFA}{My fancy abbreviation}).
Later on in the text, I want to use \hyperlink{abbr}{MFA}, which should be a link to the nomenclature entry. 

\clearpage{}
\hypertarget{abbr}{\printnomenclature{}}
\end{document}
share|improve this answer
2  
Ideally we would like a little more context, rather than code-only answers. For example, perhaps elaborate on why you use the refpage option of nomencl. And, perhaps, you could even include an image of the output. Even if you don't have enough reputation to post images, remove the ! from the markdown in your post - someone with edit privileges will re-insert the image. –  Werner Feb 26 '12 at 4:42
    
Thanks for your suggestion. My major problem with this solution is, that the link is only to the nomenclature itself. Ideally, I would also have imagined the links to automagickally appear, without me having to type \hyperlink{abbr}{...} every time. –  Florian Rubach Feb 28 '12 at 18:23
    
@FlorianRubach: That isn't possible. You can define a short form but other approach are not possible. –  Marco Daniel Mar 4 '12 at 15:29
add comment

Even if this thread is a bit older, i would like to contribute. I strongly suggest you use the glossaries package. It has the same functionality as the nomencl package and many more features, and its newer - have a look http://www.ctan.org/pkg/glossaries.

share|improve this answer
    
Maybe you can add an example. –  egreg Jun 14 '12 at 15:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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