Latex Glossaries with TeXnicCenter


Well, sometimes Latex can be annoying. How to create a glossary?

The package glossaries seems to be state of the art. I set it up as the following on my Windows machine with TeXnicCenter:

% in the preamble
\usepackage{glossaries}
\makeglossaries

Define a new output profile: Copy one of the existing profiles (e.g. “LaTeX > PDF”) and add the following entries to the postprocessing tab:

    • makeglossaries #1
      Application: {full path to}/makeindex.exe
      Arguments: -s "%bm".ist -t "%bm".glg -o "%bm".gls "%bm".glo
      • makeacronyms #1
        Application: {full path to}/makeindex.exe
        Arguments: -s "%bm".ist -t "%bm".alg -o "%bm".acr "%bm".acn
      • pdflatex #2
        copy from (La)Tex tab
      • makeglossaries #2
        Application: {full path to}/makeindex.exe
        Arguments: -s "%bm".ist -t "%bm".glg -o "%bm".gls "%bm".glo
      • makeacronyms #1
        Application: {full path to}/makeindex.exe
        Arguments: -s "%bm".ist -t "%bm".alg -o "%bm".acr "%bm".acn
      • pdflatex #3
        copy from (La)Tex tab

This procedure avoids to use of makeglossaries.exe which requires that you have Perl installed. The iterative calls are described in the Latex Wikibook and it seems to work well this way. You can import my output profile:

https://gist.github.com/panzerfahrer/f40d42d42c33e9e440d5551e368ff213

Mind, that if you use the hyperref package, to load this before the glossaries package. This way glossary entries will be automatically linked in the PDF output.


Reading Tip

[random_content separator=”,”]
[naaa asin=“3642238157”],[naaa asin=“1847199860”],[naaa asin=“1784395145”], [/random_content]

If you buy something from the seller via the link above, I get a commission from your purchase. For you the price remains unchanged.