9

I am writing my thesis in LaTeX. I need to create a list of acronyms (or abbreviations).

I want to have a page like what I have for list of tables and list of figures in which I specify all the acronyms I have used in my thesis.

Is there any way by which I can create such a list?

The class that I have used is:

\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}

I have used following methods which none of them works,

\usepackage[acronym]{glossaries}
% abbreviations:
\newacronym{ny}{NY}{New York}

and the second method is,

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

\newglossary{abbrev}{abs}{abo}{List of Abbreviations}
\newglossaryentry{MS}{
    name        = MS ,
    description = mass spectroscopy ,
    type        = abbrev
}

\makeglossaries
1
  • \printacronyms does not work? ;-)
    – user31729
    Commented Mar 26, 2016 at 8:53

1 Answer 1

8

Either use printacronyms for the regular acronyms or \printglossary[type=abbrev] for the self-defined abbrev glossary.

In order to be on the safe side about all acronyms, use \glsaddall in the document body.

\documentclass[letterpaper,12pt,titlepage,oneside,final]{book}

\usepackage[acronym]{glossaries}
% abbreviations:
\newacronym{ny}{NY}{New York}


\newglossary{abbrev}{abs}{abo}{List of Abbreviations}
\newglossaryentry{MS}{
    name        = MS ,
    description = mass spectroscopy ,
    type        = abbrev
}

\makeglossaries

\begin{document}


\gls{ny}

\gls{MS}

\printacronyms

\printglossary[type=abbrev]

\end{document}

Don't forgot to use the external makeglossaries script (or use \makenoidxglossaries and \printnoidxglossary[type=abbrev].

enter image description here

enter image description here

9
  • I got the same error! it tells me "line 46: File `mfirstuc.sty' not found. \RequirePackage". when I refer to this line it says "\RequirePackage{textcase}". So, it does not work! Do you have any idea on what the problem is?
    – user101587
    Commented Mar 26, 2016 at 19:37
  • @user101587: You apparently have some missing packages, that's the error!
    – user31729
    Commented Mar 26, 2016 at 19:39
  • 1
    I copied the exact code but I didn't get the same result?!
    – F 505
    Commented Apr 19, 2017 at 19:56
  • 2
    @F505: Well, what do you expect me to do then?
    – user31729
    Commented Apr 19, 2017 at 21:46
  • 1
    @DaltonCézane: That doesn't work with glossaries, at least not that way and is not recommended anyway. The \newglossaryentry or \newacronym is the path to pursue, i.e. defining the entries beforehand such that you can reuse it in any other file. In-text-definitions are not really useful.
    – user31729
    Commented Jan 29, 2019 at 18:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .