2

I'm currently unable to get Glossaries to work.

The documents builds fine. No errors whatsoever. But it's not printing the glossary even tho it creates a hyperref at the \glo{computer} which leads to the very first page of the document (invalid hyperref)

Here's a minmal working example:

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

\usepackage[utf8]{inputenc}
\usepackage[german]{babel}
\usepackage[T1]{fontenc}
\usepackage{amsmath, amsfonts, amssymb, graphicx, wrapfig, lmodern, fancyhdr, microtype}
\usepackage[perpage]{footmisc}
\usepackage[hidelinks]{hyperref}


\usepackage[xindy,
            toc,
            section,
            acronym]{glossaries}

\newglossary[slg]{symbolslist}{syi}{syg}{Symbolverzeichnis}
\newacronym{cd}{CD}{compact disk}

\newglossaryentry{computer}
{
  name=computer,
  description={is a programmable machine that receives input,
               stores and manipulates data, and provides
               output in a useful format}
}


\makeglossaries 

%Damit ich 1.5 Zeilenabstände habe
\usepackage[onehalfspacing]{setspace}

%Der Seitenrand
\usepackage[left=2.5cm,
            right=5.5cm,
            top=2.5cm,
            bottom=2.5cm]
            {geometry}

\begin{document}

\section{Some Chapter}

You can install \gls{computer}-software using a \gls{cd}


\printglossaries

\end{document}

It contains all the packages I'm using even when they're not needed in the MWE (In case that some of them are incompatible)

=== Image ===

Also: I'm currently using no .glo file. Is there any external program like JabRef where I can edit my glossary the way I do it with BibTeX?

I hope you guys can help me. I would really appreciate it

3

You don't mention makeindex in your question, are you running the makeindex command? From the manual:

Run makeindex with the .glo file as the input file and the .ist file as the style so that it creates an output file with the extension .gls. If you have access to a terminal or a command prompt (for example, the MSDOS command prompt for Windows users or the bash console for Unix-like users) then you need to run the command: makeindex -s myDoc.ist -o myDoc.gls myDoc.glo

For a quick, easy solution, change \makeglossaries to \makenoidxglossaries and \printglossariesto \printnoidxglossaries.

This is a bit slower than the usual commands without noidx, but it's no problem unless you have a huge glossary.

  • It's working! whohoo! Thank you very much :) – BlueWizard Jun 11 '15 at 6:39
  • 1
    Great :) I've had my fair share of glossary problems as well, still don't quite understand how it works.. – Grimler Jun 11 '15 at 6:42
  • Do you know any sort of program I can edit .glo files with? Because it would be pretty spamming when i would put all this into my tex file preamble. Just like what JabRef does with .bib files – BlueWizard Jun 11 '15 at 6:45
  • I don't know of anyone, sorry. I usually put all my entries in a .tex file which I then \input{} (this way I don't need to see it in the preamble at least) – Grimler Jun 11 '15 at 6:56
  • 1
    The reason for that error is due to your entries \newglossaryentry{System} and \newglossaryentry{Betriebssystem} not having a } after the description={.... Apart from this, you have the exact same file structure as me. – Grimler Jun 11 '15 at 7:31

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.