I have been trying to make a glossary using the package glossaries, I am clearly doing something wrong as I keep gettin errors when compiling the document.
I have the following:
-
Create a document (
glosario.tex
) with all the definitions, for me most of them are acronyms so I have defined them the following way:\acro{CCTV}{\emph{Close Circuit Television}}
-
Add the following commands to my preamble:
\usepackage[toc]{glossaries} % Load the package with the acronym option \makeglossaries{glosario} % Generate the glossary \printglossary[type=\acronymtype] % prints just the list of acronyms
Despite trying several thing this doesn't seem to work. Anyone know what I am doing wrong and how this can be solved?
Best Answer
You seem to be mixing up packages.
glossaries
doesn't define\acro
.This isn't loading the package with the
acronym
option. It's loading it with thetoc
option.The
\makeglossaries
command doesn't have an argumentYour
glosario.tex
file needs to be loaded using\loadglsentries
. Exampleglossario.tex
:Main document:
Steps to build this document:
latex
,makeglossaries
,latex
(orpdflatex
instead oflatex
). If you can't work out how to runmakeglossaries
, just addautomake
to the package option list:This produces:
Alternatively:
File
glosario.tex
:Main file:
This produces: