I want to generate a glossary at the end of a document automatically, but the following code did not work. In fact no glossary was created. I am using XeLaTeX to compile a tex file in Mac TexLive environment.

Here is the code:

\documentclass[oneside, a4paper,12pt]{book}



He has a \gls{computer}.


The glossary.tex file contains:

  description={is a programmable machine that receives input, and provides output in a useful format}

Thanks in advance for your help.

  • have you tried using input instead of include? These are two diffrent ways of embedding a file as far as I know. Also you need to run \makeglossaries after you created the glossaryentries, thus the glossary.tex
    – BlueWizard
    Jun 12 '15 at 4:41

Try the glossaries package. The documentation is very good. You will have it already but see glossaries for a description. This guide is aimed at beginners and the full user manual explains more advanced usage. As the beginners' guide explains, the command you use to specify the target word depends on how you want it to appear in your text.

  • I tried the above code. It did not work for me. No glossary page is created at the end of the document. Any further help?
    – Masood
    Jan 10 '14 at 11:14
  • Did you run latex (or pdflatex or xelatex or lualatex) -> makeglossaries -> latex (or variant)?
    – cfr
    Jan 10 '14 at 14:59
  • I only run XeLaTeX on TexShop (Version 2.47). I do not run it on terminal. Should I run it on terminal?
    – Masood
    Jan 10 '14 at 15:44
  • No. Running it in TeXShop does the same thing. But did you run makeglossaries?
    – cfr
    Jan 10 '14 at 15:55
  • No. In the list of options to set the type of LaTeX command (BibTex,MakeIndex,LaTeX,XeLaTeX,etc), I did not find a command for "MakeGlosseries". How can I run makeglossaries?
    – Masood
    Jan 10 '14 at 16:11

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.