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.

  • 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. – Stefan Pinnow Aug 22 '17 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. – user2567806 Aug 22 '17 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 Aug 22 '17 at 20:16
  • Try \usepackage[acronym,automake]{glossaries} and make sure you've used commands like \gls or \glsadd – Nicola Talbot Aug 22 '17 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. – Nicola Talbot Aug 22 '17 at 22:40
0

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}
  • it worked for me with your code finally ! Thank you guys all. – user2567806 Aug 23 '17 at 2:20

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.