GeneralGlossary entry error

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
marbocam
Posts: 38
Joined: Thu Dec 19, 2024 11:14 am

Glossary entry error

Post by marbocam »

So... I'm having an issue with TexWorks with my glossary. It seems as if my file is not compiling..

I'm using this code in my preamble:
\usepackage[acronym, nonumberlist, style=super]{glossaries}
\newcommand{\capitalizefirst}[1]{\xmakefirstuc{#1}}
\renewcommand{\glsnamefont}[1]{\textbf{#1}}

and then within the document:
\printglossary[type=\acronymtype]

My acronyms are defined as (file not compiling):
\newacronym[description={\capitalizefirst{low frequency}}]{LF}{LF}{low frequency}
\newacronym[description={\capitalizefirst{high frequency}}]{HF}{HF}{high frequency}

Then within each chapter I just call \gls{}. But Texworks it's telling me the acronyms are not defined.. Anybody knows what's going on?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
marbocam
Posts: 38
Joined: Thu Dec 19, 2024 11:14 am

Re: Glossary entry error

Post by marbocam »

So I added to the preamble \makeglossaries

\usepackage[acronym, nonumberlist, style=super]{glossaries}
\newcommand{\capitalizefirst}[1]{\xmakefirstuc{#1}}
\renewcommand{\glsnamefont}[1]{\textbf{#1}}
\makeglossaries

and then to the main document:

\input{acronyms.tex}
\printglossary[type=\acronymtype]

Right now, TeXworks does not complain about \gls{} but it's also not printing the acronyms...
marbocam
Posts: 38
Joined: Thu Dec 19, 2024 11:14 am

Re: Glossary entry error

Post by marbocam »

Went to comand prompt and did this:
pdflatex myDoc
makeglossaries myDoc
pdflatex myDoc
pdflatex myDoc

after moving \input{acronyms.tex} to my preamble. The glossary is now working, but the references are missing. In which order should I cmd everything?
marbocam
Posts: 38
Joined: Thu Dec 19, 2024 11:14 am

Re: Glossary entry error

Post by marbocam »

Right, so I tried running it from TeXworks and everything is fine now.

I also tried to cmd everything and this order works for me:
pdfLatex main
makeglossaries main
bibtex main
pdflatex main
pdflatex main
Last edited by marbocam on Fri Jan 17, 2025 5:09 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10281
Joined: Mon Mar 10, 2008 9:44 pm

Re: Glossary entry error

Post by Stefan Kottwitz »

Good to see that it works!

Stefan
LaTeX.org admin
Post Reply