LaTeX forum ⇒ MakeIndex, Nomenclature, Glossaries and AcronymsAcronym list not displayed

Information and discussion about MakeIndex - the tool to generate subject indices for LaTeX documents.
bjunior
Posts: 2
Joined: Wed Jun 19, 2019 7:23 pm

Acronym list not displayed

Postby bjunior » Wed Jun 19, 2019 7:38 pm

Good afternoon. I'm a new user of Overleaf. I am trying to add an acronym list, but even though the acronyms in the middle of the text work fine, the list is always displayed as an empty page.

I am using a template that my university developed, so I'm not sure what is messing with this list.

Starting .tex file:

  1. \documentclass[11pt, a4paper, openright, twoside]{report}
  2.  
  3. \usepackage[margins]{trackchanges}
  4. \usepackage[utf8]{inputenc}
  5. \usepackage[T1]{fontenc}
  6.  
  7. \usepackage[english]{babel}
  8. \usepackage{feupteses}
  9. \usepackage{smartdiagram}
  10. \RequirePackage{mathptmx} % font times
  11. \usepackage{setspace}
  12. \usepackage{wrapfig}
  13. \usepackage{mathtools}
  14. \usepackage{adjustbox}
  15. \usepackage{amsmath}
  16. \usepackage{hyperref}
  17. \usepackage{amssymb}
  18. \usepackage{tabulary}
  19. \usepackage{booktabs}
  20. \usepackage[listings]{tcolorbox}
  21. \usepackage[official]{eurosym}
  22. \usepackage{mwe}
  23. \usepackage{subfig}
  24. \usepackage[]{algorithm2e}
  25. \usepackage{subfig}
  26. \usepackage{graphicx}
  27. \usepackage{lscape}
  28. \usepackage{rotating}
  29. \usepackage{epstopdf}
  30. \usepackage{framed}
  31. \usepackage{array}
  32. \usepackage{tikz}
  33. \usetikzlibrary{calc}
  34. \usepackage{ifthen}
  35. \usepackage[inline]{enumitem}
  36. \usepackage{pdflscape}[2016/05/14]
  37. \usepackage{array, caption, floatrow, tabularx, makecell, booktabs, siunitx,longtable}
  38. \usepackage{rotating}
  39. \usepackage{textcomp}
  40. \usepackage{floatrow}
  41. \floatsetup[table]{capposition=top}
  42.  
  43.  
  44. \newenvironment{myitemize}
  45. { \begin{enumerate}
  46. \setlength{\itemsep}{0pt}
  47. \setlength{\parskip}{0pt}
  48. \setlength{\parsep}{0pt} }
  49. { \end{enumerate}}
  50.  
  51. \graphicspath{{Figures/}}
  52.  
  53. %%%%
  54. \usepackage[acronym]{glossaries}
  55.  
  56. \makeglossaries
  57.  
  58. \newacronym{ev}{EV}{Electric Vehicles}
  59. %%%%
  60.  
  61. \begin{document}
  62. \setcounter{secnumdepth}{3}
  63. \include{mymacros}
  64.  
  65.  
  66.  
  67. %---------------Cover----------------%
  68.  
  69. \newpage
  70. \begin{framed}
  71. \vspace*{75mm}
  72. \begin{center}
  73. \huge \textbf{M}
  74. \end{center}
  75. \vspace*{3mm}
  76. \begin{center}
  77. \Large \textit{John}
  78. \end{center}
  79. \vspace*{6mm}
  80. \begin{center}
  81. \large \textbf{M} \\ \vspace*{2mm}
  82. Supervisor:M\\
  83.  
  84. \vspace*{10mm}
  85. % \begin{figure}[!ht] \center
  86. \includegraphics[scale=0.45]{something.pdf}
  87. % \end{figure}
  88.  
  89. \Large \textbf{M}\\
  90. \vspace*{5mm}
  91. \large 2019-06-DD
  92. \vspace*{5mm}
  93. \end{center}
  94. \end{framed}
  95. \newpage
  96. %-------------Preliminary------------%
  97. \pagestyle{plain}
  98. %\StartPrelim
  99. \begin{singlespace}
  100.  
  101. \pagenumbering{roman}
  102. \include{0_abstract} % the abstract
  103. \include{0_acknows} % the acknowledgments
  104. \include{0_quote} % initial quotation if desired
  105. \cleardoublepage
  106. \begin{spacing}{0.98}
  107. \pdfbookmark[0]{Contents}{contents}
  108. \tableofcontents
  109. \end{spacing}
  110. \include{0_abbrevs} % the list of abbreviations used %HERE IS WHERE I WANT TO ADD MY LIST
  111. \cleardoublepage
  112. \pdfbookmark[0]{List of Figures}{figures}
  113. \listoffigures
  114. \cleardoublepage
  115. \pdfbookmark[0]{List of Tables}{tables}
  116. \listoftables
  117. \cleardoublepage
  118. \end{singlespace}
  119.  
  120. %-------------Chapters---------------%
  121. %\StartBody
  122. \pagenumbering{arabic}
  123.  
  124. \include{1_intro}
  125. \include{2_lreview}
  126. \include{3_description}
  127. \include{4_method}
  128. \include{5_results}
  129. \include{6_discussion}
  130.  
  131. %------------Bibliography------------%
  132. \begin{singlespace}
  133. \bibliographystyle{apalike}
  134. \bibliography{7_bibliography}
  135. \end{singlespace}
  136. %------------------------------------%
  137.  
  138. %---------Appendices-----------------%
  139. \begin{singlespace}
  140. \appendix
  141. \include{A_Appendix1}
  142. \include{A_Appendix2}
  143. \end{singlespace}
  144. %----------Appendices----------------%
  145.  
  146. \end{document}


The .tex file where i want to add my list:

  1. \chapter*{Acronyms and Symbols}
  2. \chaptermark{Acronyms and Symbols}
  3.  
  4. \printglossary[type=\acronymtype]




Thank you in advance!
Last edited by Stefan Kottwitz on Wed Jun 19, 2019 8:27 pm, edited 1 time in total.
Reason: code marked

User avatar
Stefan Kottwitz
Site Admin
Posts: 9406
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Wed Jun 19, 2019 8:26 pm

Welcome to the forum!

Try adding the automake option in the line where you load the glossaries package:

\usepackage[acronym,automake]{glossaries}

Stefan
Site admin

bjunior
Posts: 2
Joined: Wed Jun 19, 2019 7:23 pm

Postby bjunior » Wed Jun 19, 2019 10:27 pm

Thank you for your help! I tried that, but it is still not working..


Return to “MakeIndex, Nomenclature, Glossaries and Acronyms”

Who is online

Users browsing this forum: No registered users and 1 guest