Featured Book

LaTeX Beginners Guide

Who is online

In total there are 16 users online :: 0 registered, 0 hidden and 16 guests (based on users active over the past 5 minutes)
Most users ever online was 1327 on Tue Nov 05, 2013 7:11 pm

Users browsing this forum: No registered users and 16 guests

Partner Sites

TeXwelt - Fragen und Antworten goLaTeX
TeXblog
TeXnicCenter
TeXample

Glossaries package, two-column glossary Topic is solved

Add tags LaTeX specific issues not fitting into one of the other forums of this category.

Glossaries package, two-column glossary

Postby Ailicec on Thu Apr 12th, 2012

I am using the Glossaries package for generating an acronyms list. It is working well, but I would like to format the output. At the moment I have the acronym written, a space and the 'definition' next to it. However I would like to have all the 'definitions' to be all under each other rather than separated by just a space to the acronym.

i.e. rather than having

UFO Unidentified flying object
AFAIK As far as I know


I would like

UFO    Unidentified flying object
AFAIK As far as I know


Does anyone know how to do this?

Thank you
Last edited by Stefan_K on Fri Apr 13th, 2012, edited 2 times in total.
Reason: output text formatted
Ailicec
 
Posts: 18
Joined: Wed Jan 18th, 2012

Re: Glossaries Package

Postby Stefan_K on Fri Apr 13th, 2012

Hi,

you could use a two-column glossary style, such as one of the available longtable styles. See Glossary styles in the manual.

A style can by choosen by an optional argument to \printglossary or by \glossarystyle, such as

Code: Select all  •  Open in writeLaTeX
\glossarystyle{long}


Stefan
LaTeX Community Administrator
User avatar
Stefan_K
Site Admin
 
Posts: 6512
Joined: Mon Mar 10th, 2008
Location: Hamburg, Germany

Re: Glossaries package, two-column glossary

Postby Ailicec on Fri Apr 13th, 2012

Thank you for this. Now I have a separate problem. I have a list of definitions and a list of acronyms. I want to have the list of definitions to remain as is, but the list of acronyms to use the \glossarystyle{long} version.

Is it possible to achieve this?

I have tried doing \printglossary{type=acronyms, long} as is suggested for numbered lists [http://theoval.cmp.uea.ac.uk/~nlct/latex/packages/faq/glossariesfaq.html#numberedmix]


This is what I have:


\usepackage[toc,nonumberlist]{glossaries}
\renewcommand{\glossaryname}{List of Definitions}
\newglossary[alg]{acronym}{acr}{acn}{\acronymname}
\renewcommand{\acronymname}{List of Symbols and Abbreviations}
\makeglossaries

Then:

\input{acronymsanddefinitions.tex}
\printglossaries
Ailicec
 
Posts: 18
Joined: Wed Jan 18th, 2012

Re: Glossaries package, two-column glossary  Topic is solved

Postby nlct on Mon Apr 23rd, 2012

I have tried doing \printglossary{type=acronyms, long}

You need to use style=long rather than long

Try this
Code: Select all  •  Open in writeLaTeX
\documentclass{article}

\usepackage[acronym]{glossaries}

\makeglossaries

\newglossaryentry{sample}{name={sample},
description={a sample entry}}

\newacronym{aca}{aca}{a contrived acronym}

\begin{document}
\printglossary
\printglossary[type=acronym,style=long]

\section{Sample}
A \gls{sample} entry and \gls{aca}.

\end{document
}

Regards
Nicola Talbot
User avatar
nlct
 
Posts: 256
Joined: Thu Nov 6th, 2008

Re: Glossaries package, two-column glossary

Postby Ailicec on Mon Apr 23rd, 2012

Thank you

That is perfect. I have now managed to get it exactly how I wanted it to be shown, as it was the missing link.

Thanks again
Ailicec
 
Posts: 18
Joined: Wed Jan 18th, 2012


Return to General

Who is online

Users browsing this forum: No registered users and 16 guests