Is there any way around to create glossary entries in separate file? I do prefer to store glossary entries in a separate file.

Thanks for any comment.

  • Welcome to TeX.SX! You can store \newglossaryentry - definitions in a separate file, say, foo.tex and use \input{foo} or \loadglsentries{foo} – user31729 Jan 11 '16 at 12:53
  • I have answered your question -- please accept it. – user31729 Mar 7 '18 at 6:55

The \loadglsentries[type]{file name} command should be used for external definitions, since this allows for selecting specific glossary types (only useful for more than one glossary, however).




\gls{foobar} is a strange animal

\gls{foo} is another strange animal


The foo.tex file contains the glossary definitions:

  description={A strange animal, not to be confused with \gls{foo}}

  description={A strange animal, not to be confused with \gls{foobar}}

enter image description here

  • 1
    Why can't one use \input{fooglossary}? Thanks. – tommy.carstensen Dec 1 '17 at 13:40
  • 1
    @tommy.carstensen: According to the glossaries manual you can use \input .... – user31729 Dec 1 '17 at 15:47
  • Why are there 1s at the end of each glossary definition? How does one remove them? – Pertinax Sep 16 at 9:38

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.