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.

I want to achieve the following. I have an acronym in English like LED and want to display in the text the German name

Blabbla bla Licht emittierende Diode (LED) bla bla blabla.,

and in the glossary the English

LED engl. Light-emitting diode.

There is the possibility to define a long and short form acronym with the acronym package:

\acro{<acronym>}[<short name>]{<full name>}

Can I use this to print only the short name (engl. Light-emitting diode) in the glossary and using \acf{<acronym>} in the text to print the full name?

share|improve this question
    
No, the short name is LED. The acro package allows you to add extra information to the list of acronyms. –  cgnieder Jan 30 '13 at 7:40
    
So is it preferable to use the acro package instead of the acronym package? –  Reza Jan 30 '13 at 8:17
    
I wouldn't say that in general. Depends on what you need. You should have a look at the documentation and then decide for yourself. –  cgnieder Jan 30 '13 at 8:19
add comment

1 Answer 1

up vote 1 down vote accepted

One option could be the package glossaries.

MWE

\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage[acronym]{glossaries}
\makeglossaries
\newglossaryentry{led}{type=\acronymtype, 
name={LED}, 
description={Light-emitting diode}, 
first={Licht emittierende Diode (LED)}}
\begin{document}
Blabbla bla  \gls{led}  bla bla blabla. \\
Again blabbla bla  \gls{led}  bla bla blabla.
\printglossary[type=acronym]
\end{document}

Note that you will need compile this with

pdflatex file.tex
makeglossaries file
pdflatex file.tex
share|improve this answer
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.