1. I think the glossary style isn’t part of the standard TeTeX distribution (At least not on the distribution I’ve running on my Solaris machine).

    This might discourage people to use it.

    If other people are in need of the package, you can find it on the CTAN repositories under tex-archive/macros/latex/contrib/glossary
    There is a manual included, explaining exactly how to get everything set up

  2. Very helpful, and brilliant timing to anticipate my problems. It worked the first time like a dream, but when I tried the second time it says (when running my new makeindex.bat) that it cannot parse output. Should I delete one or more of the files? Which?

  3. tom

    Hi Tony,

    If your glossary entries have changed you may want to restart the procedure again. I would suggest, you remove all the glossary-related files first.


  4. annmucc

    Hi all,

    I am trying to generate a glossray with the above insturctions. However, the .gls and .glg files are not being created. I am using LEd as an interface, if that may be the clue to my problems


  5. Hi Ann,

    I tried it with both, Latex and PDFLatex before using “makeindex” in the command line and it worked? Make sure you have the .glo- and .ist-files. Next you have to change directory in the command line to your document directory. Does “makeindex…” produce any error in the command line?
    Alternatively to the command line procedure, you can define your own command in LEd. Go to the LEd install directory and open the “Batches”-directory. Inside you will find a file “user1.bat”, which you drag-and-drop into LEd. You simply have to replace the line saying: “@echo off” by “makeindex document.glo -s document.ist -t document.glg -o document.gls”, where document has to be replaced by the filename of your tex-file. After saving, you can execute the user command 1 (U1) in the top right corner, if you have the standard LEd layout. If you cannot see it, make sure you have the “Latex Compile – additional”-toolbar. OK?


  6. annmucc

    Hi Tom

    Thanks for the tips. I managed to get the glossary 🙂 However, I am also getting the page number written at the end of the glossray enry (as it shows in the default). Does anyone know how this can be removed in an easy way?


  7. annmucc

    Hey Ok – just figured out how to do it with some help from google and brother (THis is my first time using Latex, and my IT skills are nothing special, but I am enjoying it)

    You have to write [number=none] between \usepackage and {glossary}

  8. Thanks for your usefull howto, but in my distribution (ubuntu) the makeindex command doesn’t work. Arguments order must be changed:

    makeindex -s document.ist -t document.glg -o document.gls document.glo
  9. Victor

    A tip for Kile users:
    Go to “Configure Kile” in settings, under Tools, select Build, “New Tool”
    Name: Glossary (or as you want)
    Command: makeindex
    Options: %S.glo -s %S.ist -t %S.glg -o %S.gls

    Then you can add this in the QuickBuild configuration so that the glossary is automatically generated at each build


  10. glosName


    i can’t find how to rename glossary. I want it says somthing else then glossary on top of the list.

    Thank you

    • Hi,
      You can rename the glossary name using the following command:

      \renewcommand{\glossaryname}{Your Glossary}

      Make sure you add the command before \printglossary, but inside the document.


  11. John

    I am a relatively new user to LaTeX and am trying to help one of my students format a masters thesis. We have everything formatted but the glossary and the running header. I believe I’ve followed the instructions for making a glossary, but I don’t understand how to access the .glo file. The sample.tex and the other files seem to work, and I get a sample.glo file. However, when I click on that file is asks me to “choose application”. When I open in it TeXshop, I can see the makeindex pulldown menu, but can’t typeset. This would be easiest if someone did a screencast of the entire process, from downloading the glossary zip file to the entire installation and run. There are so many LaTeX help sites, but I’ve tried about eight so far and can’t seem to get an glossary to show up. Thoughts?

    • Hi John,

      In order to create the glossary, once you see the *.glo file in your folder, you will need to open a terminal-window and navigate to that folder. In there, type the makeindex-command given above, while replacing “document” with your own document name. In the output you should then see something like: Scanning input file document.glo....done (4 entries accepted, 0 rejected).. Go back to TeXShop after that and re-typeset (LaTeX) your document to include the glossary in your document.

      This version of glossary will perfectly do. However, I should mention that there is a newer version called “glossaries“. You can find an introduction here.

      Also, I’m not sure when and how to use the MakeIndex command in TeXShop, but it will definitely not work with “glossary”, at least the way I describe it above.

      Hope this clarifies some of your questions. If not, don’t hesitate to post another comment.

      Thanks, Tom.

  12. Rianda

    Is it possible to put figures in the glossary? For instance, I would explain a notion using a figure.

  13. Hi Tom,
    I have a problem while making my glossary, I follow what you say but I stopped when you say “Next you type the following command in the command-line:
    makeindex document.glo -s document.ist -t document.glg -o document.gls”
    I didn’t know where should I write that command!
    Note that I’m using TeXworks


    • Hi Dalal,

      I wrote that post a while ago. Basically, you would have to use a command-line tool (terminal/console). Luckily, TeXworks has a simpler solution built-in. Select “Typeset -> MakeIndex” and press typeset. You will probably have to typeset the following sequence to get the document (including glossary) right:

      1. LaTeX (or pdfLaTeX)
      2. MakeIndex
      3. LaTeX (or pdfLaTeX)
      4. LaTeX (or pdfLaTeX)

      Let me know if something is unclear. Best, Tom.

  14. Pogas

    Perfecto! Awesome post – worked like a dream. You have saved me hours of trying to figure out how to

  15. suren

    Apparently I am the only person, who cannot get this installed. Well, I am running an ancient suse (9.3) on a virtual machine (due to a specific reason). I created a file /usr/share/texmf/tex/latex/glossary directory and moved the glossary.sty into it. However, I do not have a LaTeX2HTML directory. I can create one, but the question is where? Thanks for any help

    • Hi,

      I’m not sure whether you need a LaTeX2HTML. However, you’ll need to update the package index using the command texhash.

      Since the glossary package is obsolete, I suggest to update to the latest version of tex (Tex Live 2012) and use glossaries which comes with the distribution. Here is the documentation and a starting guide.

      Best, Tom.

  16. aline

    Thank you!!!

    I spent 2 hours messing around with this trying to get the nomenclature package to work, and website after website failed to help me figure out what I was doing wrong.

    Turns out I was missing the “-t document.glg” in <>. (Not stated in any manuals that I came across!) As soon as I added that, it finally compiled correctly.

    Much appreciated advice.


  17. Onezimo

    Just find to do this “makeindex document.glo -s document.ist -t document.glg -o document.gls” here!!! thank you a lot!!!!!

  18. pengcheng

    This is cool, and I just had a quick question, how can I remove the word
    “Glossary” on the top left for every glossary page. I searched around, haven’t found any useful simple command can do this.

  19. ariblogger

    Hi! I’m kind of new to LaTex, and not much of a techno-geek (obviously, I’m saying this in a positive way, haha), so I’m stuck here!
    I want to make a glossary, and I’m using TexMaker for Windows, so I can’t figure it out where should I put the “\glossary{name={entry name}, description={entry description}}” lines. Where are they supposed to go? In another file?
    Thanks and sorry for the dumb question!

    • Sorry for the late reply.
      Everything goes into the main tex file. The only non-standard thing you’ll have to do is run makeindex. There is probably a way to do that from within TeXMaker.


  20. hale

    Hi Tom, thank you very much for this post, it is very useful. However I have a little problem in the output. Glossary entries are placed in the center whereas I would like them to be left-aligned. Could I fix it?
    Also, another problem is that there are some inhomogeneous spaces between some of the entries. Any idea why? ( I use the same format and placing for each entry.)
    It is kind of urgent…

    • Hi Hale,

      Please send a minimal working example to illustrate your problem and I will see what I can do.

      Thanks, Tom

  21. Michael

    nice article, but it would be useful to mention the it has been replaced by “glossaries”:
    “The pack­age [glossaries] su­per­sedes the au­thor‘s glos­sary pack­age (which is now ob­so­lete), and a con­ver­sion tool is pro­vided.”

    • Hi Michael,

      Thanks for bringing this issue up. I have been thinking about updating the post, but haven’t found the time to do so yet. Will do my best to update the old text or add another post on glossaries…

      Thanks again,

Leave a Reply to Victor Cancel reply