1

I'm honestly sorry for my stupid question but i just cannot get glossaries to function. I'm constantly reading that I should execute some sort of pearl script where i need a pearl processor or something.

I'm currently on a Windows 7 Computer with a pretty new and intact MikTeX installation using TeXmaker as Client.

I tried multiple times creating new .tex files and copy & pasting minimal examples but I just cant get it to work

Here's a MWE:

\documentclass[
 fontsize=11pt,
 a4paper,
 pdflatex
 ]{article}

\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}

\usepackage{Blindtext}              

\usepackage{glossaries}
\makeglossaries         

\begin{document}

\section{Story of an Apple}
\Blindtext

\section{Story of a Pear}
\Blindtext


\newglossaryentry{apple}{ name=apple, description={it's used as an example fruit}}
\newglossaryentry{pear}{ name=pear, description={it's used as an example fruit}}
\glsaddall


\end{document}

It's sadly not working. Would be really cool if you guys could help me

Also the compiler tells me this:

! LaTeX Error: File `tracklang.sty' not found.

(click here for full log)

I already doublechecked. The File is installed. Also my MikTeX installation isn't older than a month.

Thanks for all your help. I really appreciate it.

1 Answers1

1

So I ran your MWE (well done, by the way), and you're just missing one line: put it before \end{document}.

\printglossaries

Make sure you're compiling your .tex file; then compiling your glossary with makeglossaries on your .glo file; then compiling our .tex file again. With this process, adding the above line to your MWE printed the glossary just fine. (I also replaced Blindtext with lipsum, because I have the latter and the not the former.)

\documentclass[
 fontsize=11pt,
 a4paper,
 pdflatex
 ]{article}
\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage{lipsum}              
\usepackage{glossaries}
\makeglossaries         
\begin{document}
\section{Story of an Apple}
\lipsum
\section{Story of a Pear}
\lipsum
\newglossaryentry{apple}{ name=apple, description={it's used as an example fruit}}
\newglossaryentry{pear}{ name=pear, description={it's used as an example fruit}}
\glsaddall
\printglossaries
\end{document}
dgoodmaniii
  • 4,270
  • 1
  • 19
  • 36