GeneralGlossaries compiled but not displayed

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
moodamultani
Posts: 3
Joined: Tue Aug 28, 2012 11:46 am

Glossaries compiled but not displayed

Post by moodamultani »

Hi friends,

I am using the following example for glossaries on the page:
http://www.latex-community.org/know-how ... d-acronyms

But, I am not getting the glossaries list displayed. The pdf only gives the text with relevant text highlighted (with hyperref colour). I am using Windows command line pdflatex and have all packages installed (I think!!)

Please help.

Regards
moodamultani

Code: Select all

\documentclass{article}

% Load hyperref before glossaries
\usepackage[colorlinks]{hyperref}
\usepackage[acronym,toc]{glossaries}

% Define a new glossary type
\newglossary[slg]{symbols}{sym}{sbl}{List of Symbols}

\makeglossaries

% The following definitions will go in the main glossary

\newglossaryentry{culdesac}{name=cul-de-sac,description={passage
or street closed at one end},plural=culs-de-sac}

\newglossaryentry{elite}{name={\'e}lite,description={select
group or class},sort=elite}

\newglossaryentry{elitism}{name={\'e}litism,description={advocacy
of dominance by an \gls{elite}},sort=elitism}

\newglossaryentry{attache}{name=attach\'e,
description={person with special diplomatic responsibilities}}

% The following definitions will go in the list of acronyms

\newacronym{led}{LED}{light-emitting diode}

\newacronym{eeprom}{EEPROM}{electrically erasable programmable
read-only memory}

% The following definitions will go in the list of symbols

\newglossaryentry{ohm}{type=symbols,name=ohm,
symbol={\ensuremath{\Omega}},
description=unit of electrical resistance}

\newglossaryentry{angstrom}{type=symbols,name={\aa}ngstr\"om,
symbol={\AA},sort=angstrom,
description={non-SI unit of length}}

\begin{document}
\tableofcontents

\section{Diplomatic Memoirs}

When I was an \gls{attache}, I lived in a \gls{culdesac}, but
I didn't much care for it as I found there was a fair amount
of \gls{elitism} amongst my neighbours.

\section{Student Memoirs}

When I was a student I often left bits of electronic circuitry
in my pockets, such as \glspl{led} and \glspl{eeprom}, which
often ended up in the washing machine. The \glspl{led} didn't
fair too badly, but the \glspl{eeprom} frequently broke.

\section{Symbols}

The \gls{angstrom} is commonly used in structural biology,
whereas the \gls{ohm} is used in electronics.

\printglossaries

\end{document}

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Re: Glossaries compiled but not displayed

Post by Johannes_B »

Hi, your example compiles fine for me. Did you run the external makeglossaries command? It is also mentioned in the tutorial you linked to.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
moodamultani
Posts: 3
Joined: Tue Aug 28, 2012 11:46 am

Re: Glossaries compiled but not displayed

Post by moodamultani »

Hi Johannes,

Thanks for your reply and I am coming back to check this after a few weeks as I was running my research experiments. Apologies for the delay.

Referring to your reply...I indeed included the \makeglossaries command as given in the sample file given on the tutorial link. By external, do you mean I need to run from command line (it is not a command-line executable)?

If you mean from a file, then yes. I tried it.

But this did not work. Could this be the case where my glossaries style files are located in the wrong folder?

Regards
moodamultani
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Glossaries compiled but not displayed

Post by Johannes_B »

Both, MikTeX and TeX Live include an executable binary file for an application called makeglossaries. You have to run that, either by pressing a button in your editor, or by running it on the commandline on the basename of your tex file. Please refer to the tutorial for more details.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply