1

Working on my thesis report using TeXStudio on Ubuntu 16.04. I am using the same code as in this link for acronyms. A trace of my code looks like this :

\documentclass[12pt]{report}
\usepackage[a4paper]{geometry}
\usepackage[myheadings]{fullpage}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{graphicx, wrapfig, subcaption, setspace, booktabs}
\usepackage[T1]{fontenc}
\usepackage[font=small, labelfont=bf]{caption}
\usepackage{fourier}
\usepackage[protrusion=true, expansion=true]{microtype}
\usepackage[english]{babel}
\usepackage{sectsty}
\usepackage[acronym]{glossaries}
\usepackage{url, lipsum}
\usepackage{pbox}
\usepackage{changepage}
\newcommand{\HRule}[1]{\rule{\linewidth}{#1}}
\onehalfspacing
\setcounter{tocdepth}{5}
\setcounter{secnumdepth}{5}

\input{acronyms.tex}
\begin{document}
\maketitle
    \tableofcontents
    \listoffigures
    \listoftables
        
    \clearpage
    \section{Introduction}

    \input{introduction}
    %----------------------------------------------------------------------
        
    \section{State of the art}

    \input{stateofart}
    
    %----------------------------------------------------------------------
    
    \section{Research Challenges}

    \input{challenges}
    \newpage
    \section*{References}
    \input{references}
    \clearpage
    
    \printacronyms
    
\end{document}

When compiling and building the whole file at the end it does not display the list of acronyms. I am wondering if any one have already faced the same issue and how did overcome it.

Will appreciate any help. Thank you.

6
  • 1
    Thank you for posting a working example! At the same time, much of your code does not seem to be relevant to the question you're asking here. Please limit the example to only the code required for your issue to appear. You can have a look at this guide for how to prune your code for this purpose. Commented Aug 22, 2017 at 19:20
  • Thank you for the link @Stefan Pinnow. The thing is that the list of acronyms is not printed. Do you have a suggestion on how to make it work ? I have looked at different similar issues related to acronyms here but I am getting the same issue. Commented Aug 22, 2017 at 19:30
  • 1
    @user2567806: Do you have understood Stefan Pinnow's comment? Please reduce your document to the absolute minimal version that still do have the acronym list printed. There is no information about acronyms.tex and there is no \makeglossaries command at all (unless it is in the unavailable acronyms.tex file). Are you using the makeglossaries script at all?
    – user31729
    Commented Aug 22, 2017 at 20:16
  • Try \usepackage[acronym,automake]{glossaries} and make sure you've used commands like \gls or \glsadd Commented Aug 22, 2017 at 21:11
  • There's a MWE for acronyms mwe-acr.tex provided with the glossaries package. Start with that and see if you can get the list of acronyms to appear. Commented Aug 22, 2017 at 22:40

2 Answers 2

1

I agree with the previous comments, you really need to provide an MWE.

However, lacking an MWE, I think you need to add \printnoidxglossary[type=acronym] just before \printacronyms. You will also need to add \makenoidxglossaries after \usepackage[acronym]{glossaries}. This is described in the glossaries documentation, pp. 69 - 70.

Here's my MWE showing it working:

\documentclass[12pt]{report}
\usepackage[english]{babel}
\usepackage[acronym]{glossaries}
\makenoidxglossaries
\newacronym{GNU}       {GNU}        {GNU's Not Unix}
\begin{document}
    \section{Introduction}
    \gls{GNU} is the BEST!
    \printnoidxglossary[type=acronym]
    \printacronyms
\end{document}
1
  • it worked for me with your code finally ! Thank you guys all. Commented Aug 23, 2017 at 2:20
1

I've followed your instructions and it didn't work at first. Two things that in the end made it work:

  1. put the acronyms or acronym file in the preamble
  2. if, like me, you've started by writing your document and now realize you need to add this list (so you haven't used them in your text), there is a \glsaddall command.

You must log in to answer this question.

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