Banner

Donate

You find LaTeX Community useful? Please donate! Learn why!

Amount:

Partner Sites

goLaTeX
TeXblog
TeXnicCenter

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Tue Jun 08, 2010 3:33 pm

Users browsing this forum: No registered users and 5 guests

[Glossaries] Making acronym entries link to glossary entries

Information and discussion about specific document classes and how to create your own document classes.

[Glossaries] Making acronym entries link to glossary entries

Postby robbiie on Wed Nov 05, 2008 4:35 pm

Hi all,

since a few days I busy myself in trying to find a solution to the following problem:

I'm using the glossaries package for creating a glossary and a list of acronyms in my document.
Code: Select all
\usepackage[style=altlist,
nonumberlist,
numberedsection,
acronym,
toc]
{glossaries}


I defined an acronym, e.g.
Code: Select all
\newacronym{POS}{POS}{Part Of Speech}

and a separate glossary entry, e.g.
Code: Select all
\newglossaryentry{pos}{name=Part Of Speech,description={"`Part of speech"' Description}}


Now, what I would like to have, is the following:

When I reference an acronym in my text using
Code: Select all
\gls{pos}

I would like it to be added in the list of acronyms stating that pos stands for "PART OF SPEECH", which is no problem. But, at the same time, I would like the "PART OF SPEECH" description to link to the glossary entry of "pos".

I don't find any clue on how to do this - neither in the documentation, nor in the FAQs of glossaries.

Can anyone help, please?
Thanks,
Robbiie
robbiie
 
Posts: 3
Joined: Wed Nov 05, 2008 4:22 pm

Re: [Glossaries] Making acronym entries link to glossary entries

Postby nlct on Thu Nov 06, 2008 10:30 am

Hi,

Try

\newacronym{POS}{POS\glsadd{pos}}{Part Of Speech}

Regards
Nicola Talbot
nlct
 
Posts: 116
Joined: Thu Nov 06, 2008 10:15 am

Re: [Glossaries] Making acronym entries link to glossary entries

Postby robbiie on Thu Nov 06, 2008 11:56 am

Hi Nicola,

very nice of you to answer yourself. Thanks :)

If I understand your documentation correcty, \glsadd means just to statically add an entry to the glossary without any hyper links. Unfortunately that's not what I want. I'd rather have the following:

Code: Select all
\newacronym{POS}{POS}{\glslink{pos}{Part of Speech}}

or
Code: Select all
\newacronym{POS}{\glslink{pos}{POS}}{Part of Speech}


so that I can follow a link from the table of acronyms to the according glossary entry. Trying both statements results in compile errors, since - i guess - it's not possible to nest \glslink in any other command.

Regards,
Robbiie
robbiie
 
Posts: 3
Joined: Wed Nov 05, 2008 4:22 pm

Re: [Glossaries] Making acronym entries link to glossary entries

Postby nlct on Fri Nov 07, 2008 10:31 am

Hi,

sorry I misunderstood. Is the following what you want?

Code: Select all
\documentclass{article}

\usepackage[colorlinks]{hyperref}
\usepackage[style=altlist,
nonumberlist,
numberedsection,
acronym,
toc]
{glossaries}

\makeglossaries

\newglossaryentry{pos}{name=\glslink{POS}{Part Of Speech},text=Part of Speech,description={``Part of Speech''
Description}}
\newacronym[description={\glslink{pos}{Part of Speech}}]{POS}{POS}{Part Of
Speech}

\begin{document}

\gls{POS}

\printglossaries

\end{document}


Note that for the above example you will need to do:

pdflatex filename
makeglossaries filename
pdflatex filename
makeglossaries filename
pdflatex filename

to get the completed document. (This is because pos isn't referenced in the main body of the document, so it won't be referenced until the list of acronyms is present.)

Regards
Nicola Talbot
nlct
 
Posts: 116
Joined: Thu Nov 06, 2008 10:15 am

Re: [Glossaries] Making acronym entries link to glossary entries

Postby robbiie on Fri Nov 07, 2008 11:04 am

Hi Nicola,

that's exactly what I wanted! Thanks a lot!!!! :D
robbiie
 
Posts: 3
Joined: Wed Nov 05, 2008 4:22 pm

Re: [Glossaries] Making acronym entries link to glossary entries

Postby amarradi on Sat Sep 19, 2009 9:51 am

Hallo together,

thats a cool board, Thanks. I need help.
I use this tutorial and it runs very well. How can i sort my glossary, tike the Acronym-List?

Many greeting from germany

Bye amarradi
amarradi
 
Posts: 1
Joined: Sat Sep 19, 2009 9:48 am

Re: [Glossaries] Making acronym entries link to glossary entries

Postby nlct on Wed Sep 23, 2009 10:46 am

amarradi wrote:How can i sort my glossary, tike the Acronym-List?


You need to use an external indexing application to sort the glossary. You can either use makeindex or xindy. If you have Perl installed, you can just run the makeglossaries script with the name of your document without the .tex extension.

Regards
Nicola Talbot
nlct
 
Posts: 116
Joined: Thu Nov 06, 2008 10:15 am


Return to Document Classes

Who is online

Users browsing this forum: No registered users and 5 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group