39 Comments

    • tom

      Do you do this:

      \printglossaries

      Please provide a minimal working example and I’ll see what I can do…

      • Marco

        Hi! I have copied the example above about Acronyms but even using \printglossaries the list doesn’t appear

      • tom

        Hi Marco,

        Thanks for your comment. Did you run makeglossaries in the command line as explained towards the end of the article?

        Best, Tom

  1. joe

    Hi, great entry, really helped me!
    On addition for people with similar problems;
    in Texmaker you can’t define the three commands for makeindex in the makeindex-field.
    You have to either specify it as custom command or enter it manually into your compile-line like this:

    latex... | bibtex ... | makeindex -s %.ist -t %.alg -o %.acr %.acn | makeindex -s %.ist -t %.glg -o %.gls %.glo | latex | latex | pdf

    With this your acronyms and glossary will shop up correctly.

    • Arslane Hamza Cherif

      Thank you very much, I was stuck and your solution worked like a charm. However, I have just one more question: “Am i obliged to execute all these commands each time I update my list of acronyms ?

      Thanks,

      Best Regards,
      Arslane

      • Hi there,

        That’s right. If you update the list of acronyms, you would have to rerun the command. What I usually do is write a shell/batch script that contains all the commands (latex, bibtex, glossaries, etc.) and then just run the script or use latexmk.

        Best, Tom

  2. Tester

    Thanks for this post. How can I add some space between the Abbreviation and its full form. They are very close to each other, I need some space between them.

    • tom

      Hi,

      You can add more space between the abbreviation and the full name by redefining \glsnamefont:

      \renewcommand{\glsnamefont}[1]{\textbf{#1}\hspace{20pt}}
  3. Dim.

    Hello,

    Thanks for the post.

    There is an issue when the acronym is firstly defined in plural: No gap between the expanded version and the acronym in parenthesis

      • Dim.

        Yes I am using this package. The problem I am having it the following:
        Assume I have the acronym ACR. Then if the expanded version appears in text for the first time in plural, I get ”…Acronyms(ACRs)…”

        Currently I have identified the following problem in the filename.glsdefs file:
        firstplural={Acrpnyms(ACNs)},%

        To solve it, I manually enter a gap in the file.

        Perhaps there is a smarter way to solve the issue.

        Cheers,
        Dim.

      • tom

        According to the bug tracker here, moving the definition of the acronym to the preamble solves the issue.

        Personally, I have all acronyms in a file called ‘acronyms.tex’. I load the file in the preamble using:

        \input{abbreviations}

        HTH, Tom

    • tom

      Hi there, thanks for telling me. I’m working on the issue. It should be fixed for this particular article now. Best, Tom.

  4. audric

    And about the first methode, i have these messages :

    audric-jan:~ audricjan$ makeglossaries rapport
    makeglossaries version 2.14 (2014-03-06)
    Auxiliary file ‘rapport.aux’ doesn’t exist. Have you run LaTeX?

    or

    audric-jan:~ audricjan$ makeglossaries /Users/audricjan/Desktop/rapport\ tex/rapport.aux
    makeglossaries version 2.14 (2014-03-06)
    added glossary type ‘main’ (glg,gls,glo)
    added glossary type ‘acronym’ (alg,acr,acn)
    The file extension ‘aux’ doesn’t correspond to any
    known glossary extension. Try running makeglossaries
    without an extension, e.g. makeglossaries “/Users/audricjan/Desktop/rapport tex/rapport”.

    • tom

      Hi Audric,

      The second methods should work if you do what it says in the last line. Try running makeglossaries without an extension (remove .aux).

      Let me know if you run into more issues.

      Tom

  5. audric

    Sorry, i made a mistek in my precedent message, you can forget it..

    The message i have is :

    audric-jan:~ audricjan$ makeglossaries /Users/audricjan/Desktop/rapport\ tex/rapport
    makeglossaries version 2.14 (2014-03-06)
    added glossary type ‘main’ (glg,gls,glo)
    makeindex -s “rapport.ist” -t “/Users/audricjan/Desktop/rapport tex/rapport.glg” -o “/Users/audricjan/Desktop/rapport tex/rapport.gls” “/Users/audricjan/Desktop/rapport tex/rapport.glo”
    Index style file rapport.ist not found.
    Usage: makeindex [-ilqrcgLT] [-s sty] [-o ind] [-t log] [-p num] [idx0 idx1 …]

    ***Call to makeindex failed***

    Possible cause of problem:

    Style name indicates makeindex, but may be in xindy format.
    Remember to use \setStyleFile to specify the name
    of the style file rather than redefining \istfilename
    explicitly.

    Check ‘/Users/audricjan/Desktop/rapport tex/rapport.glg’ for details
    audric-jan:~ audricjan$

    • tom

      Hi Audric,

      Please remove the white space in your document folder, e.g. rename “rapport tex” to “rapport_tex”. Then delete meta files such as .aux, .glg, .gls, .glo, .ist and rerun LaTeX and makeglossaries. If that doesn’t help, post a minimal example here. That is, a LaTeX document with just one glossary entry and no or little content. I will then run it on my computer and try to advise.

      Cheers, Tom

      • audric

        Thank you for your help. I tried with deleting the space, but it still doesn’t work and i have the same message..

        Here is my program :

        \documentclass[a4paper,12pt,oneside] {report}
        \usepackage[latin1]{inputenc}
        \usepackage[T1]{fontenc}
        \usepackage[francais]{babel}
        \usepackage{glossaries}
        \makeglossaries
        
        \begin{document}
        \newglossaryentry{chu}{name=CHU, description={Centre Hospitalier Universitaire}}
        \pagenumbering{roman}
        
        \clearpage
        \chapter*{Abréviations}
        \printglossaries
        
        \clearpage
        \setcounter{page}{1}
        \pagenumbering{arabic}
        
        \chapter{Introduction}
        \section{Présentation de l'établissement}
        Le \gls{chu} de Rennes est à la fois un établissement de soins, de recherche et d'enseignement, implanté sur cinq sites de la ville :\\
        
        \end{document}
      • tom

        Hi Audric,

        Your code is absolutely fine. All you have to do is change directory and run makeglossaries from within the project folder, rather than using the path to the file.

        cd ~/Desktop/rapport\ tex/
        makeglossaries rapport

        Also, to change the heading use the following line rather than \chapter:

        \printglossary[type=\acronymtype, title={Abréviations}]
      • audric

        hi! it’s ok now! shame on me..i didn’t know i have to write “sudo” before “makeglossaries”….

      • audric

        It’s strange, all it’s ok for me, only chen “sudo”.. maybe it’s better that i let it like this! In all the cases, thank you very much for you time tom!

        Just a last question, do you know how i can delete the number page that is written after each word in the glossary?

  6. Thanks. I was using ‘makeglossaries’ with the name of my glossaries file and couldn’t for the life of me figure out why it wasn’t working! Thanks for pointing me in the right direction

  7. Bobie

    Please help !!! I didn’t understand this error even though I have already installed perl

    ” makeglossaries : The script interpreter could not be found.

    makeglossaries: Data: scriptInterpreter=”perl.exe”

    Process exited with error(s) ”

    thnks 🙂

    • tom

      Hi Bobie,

      As I won’t be able to reproduce the problem, I can’t offer you any specific help. What comes to my mind is that either Perl was not properly installed or makeglossaries cannot find the software. You can find some suggestions on the former here and on the latter here. Alternatively, you could try to generate the glossaries using makeindex (see here).

      Best wishes,
      Tom

  8. Sien Van Loo

    Hi

    I’m using Papeeria to create an Latex-file. I like to create a list of acronyms but I don’t have Perl on my computer. Now I have followed to procedure with makeindex but it still doesn’t work. So I wondered if it was possible to perhaps give me a extensive example or are there other methods to create a list of acronyms?

    Kind regards

    • tom

      Hi there,

      The alternative would be to use the acronym package, but there is no difference. You would still have to use makeindex.

      I’m not familiar with Papeeria, but maybe they can help you. If you’d like to run it on your computer, you’ll have to open the command line, navigate to the project directory and then use the makeindex command to create a list of acronyms. You might have to first typeset the document using (pdf)latex.

      I might be able to help if you send me the error you get from makeindex or describe the problem.

      Best, Tom

  9. Marco Pizzolato

    Hi,

    thank you very much for this helpful guide!!

    I have a quaestion: when I use tableofcontents the Glossary section (which is correctly generated) is not taken into account in the table of content..

    Can you help me?

    Thanks in advance,

    Marco

    • tom

      Hi Marco,

      Thanks for your question. Try loading the package with these options:

      \usepackage[toc,section=section]{glossaries}

      Let me know if it worked.

      Best, Tom

  10. Sheela

    I have used the following code to for list of abbreviations. abbreviations are creating but i am not able to generate the list. please anybody help me to print the list after table of contents

    \documentclass{article}
    \usepackage[acronym]{glossaries}
    \makeglossaries
    \begin{document}
    \newacronym{des}{DES}{Data Encryption Standard}
    
    \printglossaries
    \end{document}
    • tom

      Hi Sheela,

      You’ll have to create the list using makeglossaries or makeindex, either in your editor or in the terminal/commandline. This is explained towards the end of the article. Let me know if you have further questions.

      Best,
      Tom

Leave a Reply