I'm writing a technical book, which will be printed (no PDF). I'm in the need of a separate glossary chapter, and took a look at the glossaries package. The output from \printglossaries does match what I want visually, but the package seems to require you to define the glossary entries in the preamble, and this is something I do not want. I want to keep my preamble clean, short, and to the point, without bloating it with loads of glossary entries.

All my chapters are separate files, which I include using \include{chapterXXX} in the preamble. This is what I want to do with the glossaries as well: \include{glossary}, and in glossary.tex I want all the glossary entries. I have no interest in referencing them with hyperref, or similiar.

Question: Is it possible to use the glossaries using the above scenario? That is, without polluting preamble with entries.

  • 3
    Why not a separate file for the glossary entries, which you can \input in your preamble? – Bernard Jul 5 at 17:26

As mentioned by Bernard, one can add the glossaries in a seperate file and include them via \input, either by using the relative or absolute path to the file.

%relative path from within the workspace folder

%absolute path either within or outside the workspace folder
%assuming Windows as the OS

  • That seems to work, but what does not seem to work is the xindy program (which is required for Latin-1, where makeindex is at a loss), but there is no Debian package for xindy anywhere. I tried to compile the sourcecode (latest release from 2008!), but that was a dead end. So, me and the glossaries package are really no friends, it seems. – bos Jul 6 at 8:28
  • I will accept your answer, but I will search for another solution, because this tex package causes nothing but frustration for me. It does not work(tm). – bos Jul 6 at 8: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.