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.

  • Do you know the term MWE? It's a pretty nice feature ;-) – user31729 Jun 10 '15 at 19:53
  • minimal working example (MWE) ;-) – user31729 Jun 10 '15 at 19:55
  • 1
    Thanks for uploading the MWE. I just copied and compiled it: It runs out of the box on TeXLive 2014 (freeze state april 2015) and Linux – user31729 Jun 10 '15 at 20:01
  • 1
    Yes, that's the best thing you can do – user31729 Jun 10 '15 at 20:04
  • 2
    Make sure that your package database is up-to-date by using in the package manager (user and admin version) repositories->synchronize. – Ulrike Fischer Jun 10 '15 at 20:14
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}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.