Page Layoutglossaries | Style for List of Acronyms

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
efrenlopes
Posts: 4
Joined: Thu Feb 25, 2010 6:46 pm

glossaries | Style for List of Acronyms

Post by efrenlopes »

Hello!

I am using the glossaries package to make a list of acronyms. But I'm not liking the format that is being generated. I have to generate a format like this?
ListOfAcronyms.jpg
ListOfAcronyms.jpg (60.92 KiB) Viewed 8163 times
This format I generated using the acronym package, but I want to do this with the glossaries package.

There is another more complete package than these two?

Thank you!
Last edited by efrenlopes on Fri Dec 16, 2011 6:18 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

glossaries | Style for List of Acronyms

Post by nlct »

You can define a new glossary style similar to the listdotted style:

Code: Select all

\documentclass{article}

\usepackage{glossaries}

\makeglossaries

\newglossarystyle{dottedlocations}{%
  \glossarystyle{list}%
  \renewcommand*{\glossaryentryfield}[5]{%
    \item[\glsentryitem{##1}\glstarget{##1}{##2}] \emph{##3}%
      \unskip\leaders\hbox to 2.9mm{\hss.}\hfill##5}%
  \renewcommand*{\glsgroupskip}{}%
}

\glossarystyle{dottedlocations}

\newacronym{manet}{MANET}{Mobile Ad hoc NETwork}
\newacronym{rwp}{RWP}{Random WayPoint}
\newacronym{rw}{RW}{Random Walk}

\glsaddall

\begin{document}

\printglossaries

\end{document}
Regards
Nicola Talbot
efrenlopes
Posts: 4
Joined: Thu Feb 25, 2010 6:46 pm

glossaries | Style for List of Acronyms

Post by efrenlopes »

I tried to run this example, but I got the following error:

Code: Select all

(./Exemplo.aux) (./Exemplo.gls
! Undefined control sequence.
<argument> \glsentryitem 
                         {manet}\glstarget {manet}{\glsnamefont {MANET}}
l.5 		\setentrycounter{page}\glsnumberformat{1}}}
                                                 \glsgroupskip
! Undefined control sequence.
<argument> \glsentryitem 
                         {rw}\glstarget {rw}{\glsnamefont {RW}}
l.8 		\setentrycounter{page}\glsnumberformat{1}}}
                                                 %
! Undefined control sequence.
<argument> \glsentryitem 
                         {rwp}\glstarget {rwp}{\glsnamefont {RWP}}
l.10 		\setentrycounter{page}\glsnumberformat{1}}}
                                                  %
) [1] (./Exemplo.aux) )
(see the transcript file for additional information)
Output written on Exemplo.dvi (1 page, 1156 bytes).
Transcript written on Exemplo.log.
What can be?

Thanks!!
efrenlopes
Posts: 4
Joined: Thu Feb 25, 2010 6:46 pm

glossaries | Style for List of Acronyms

Post by efrenlopes »

I got! Just leave it at that:

Code: Select all

\newglossarystyle{dottedlocations}{%
  \glossarystyle{list}%
  \renewcommand*{\glossaryentryfield}[5]{%
    \item[\glstarget{##1}{##2}]\emph{##3}%
      \unskip\leaders\hbox to 2.9mm{\hss.}\hfill##5}%
  \renewcommand*{\glsgroupskip}{}%
}
It was perfect:)
Thank you.
User avatar
nlct
Posts: 276
Joined: Thu Nov 06, 2008 11:15 am

glossaries | Style for List of Acronyms

Post by nlct »

efrenlopes wrote:

Code: Select all

! Undefined control sequence.
<argument> \glsentryitem 
You are using an old version of glossaries. I recommend you update it.

Regards
Nicola Talbot
Post Reply