EloyAnguianoRey / tfgtfmthesisuam

1 stars 0 forks source link

Acronyms not listed #1

Open DStrelak opened 2 years ago

DStrelak commented 2 years ago

Acronyms are not listed.

Minimal example:

\documentclass[epsbased]{tfgtfmthesisuam}

\newacronym{svm}{SVM}{Support Vector Machine}
\newacronym{wasn}{WASN}{Wireless Sensor Networks}
\newacronym{ieee}{IEEE}{Institute of Electrical and Electronics Engineers}
\begin{document}
\printglossaries

\chapter{chapter}
using \acrfull{svm} blah blah \acrshort{wasn}blah blah.....\acrshortpl{svm}asdf

\appendix

\end{document}

Expected behavior: list of acronyms is shown somewhere in the document

Actual behavior: list of acronyms is not present in the document

What have I tried: adding 'automake' from 'glossaries' in the '.cls' file: \@ifpackageloaded{glossaries}{\PassOptionsToPackage{acronyms,nogroupskip,nonumberlist,shortcuts,toc,automake}{glossaries}}{\RequirePackage[acronyms,nogroupskip,nonumberlist,shortcuts,toc,automake]{glossaries}}

Minimal example proving that it should in principle work:

\documentclass{report}
\usepackage[acronyms, automake]{glossaries}
\makeglossaries

\newacronym{svm}{SVM}{Support Vector Machine}
\newacronym{wasn}{WASN}{Wireless Sensor Networks}
\newacronym{ieee}{IEEE}{Institute of Electrical and Electronics Engineers}
\begin{document}
\printglossaries

\chapter{chapter}
using \acrfull{svm} blah blah \acrshort{wasn}blah blah.....\acrshortpl{svm}asdf
\end{document}
DStrelak commented 2 years ago

For completeness, following the manual compilation guide from Chapter 5.2 on Miktex on Windows with Perl, acronyms do appear. However, xindy (required for makeglossaries) is not available on Linux machines, where I try to compile the thesis. I have not been able to reproduce xindy's behavior via makeindex, as suggested elsewhere: makeindex -s disertation.ist -t disertation.glg -o disertation.gls disertation.glo results in Scanning input file disertation.glo...done (0 entries accepted, 0 rejected).

DStrelak commented 2 years ago

I managed to make it work also under Miktex / TeXworks. Steps:

  1. add new Processing tool Edit -> Preferences -> Typesetting -> Processing tools (+) with Name: makeglossaries Program: makeglossaries Arguments: $basename

  2. try to run it from TeXworks, I got an error message xindy.pl: not a symlink as required for TeX Live at /home/david/.miktex/texmfs/install/scripts/xindy/xindy.pl line 418.

  3. I commented out the offending line: #die "$cmd: not a symlink as required for TeX Live" unless -l $0;

  4. got another error: xindy.pl: Cannot locate /home/david/.miktex/texmfs/install/scripts/xindy/xindy.mem at /home/david/.miktex/texmfs/install/scripts/xindy/xindy.pl line 527.

  5. $ locate xindy.mem
    /usr/lib/xindy/xindy.mem

    Could be that one has to install xindy (sudo apt install xindy)

  6. replace $mem_file declaration on line 510: $mem_file = "/usr/lib/xindy/xindy.mem"

  7. makeglossaries your_tex_file_without_extension should now work

To compile the pdf, one has to (in TeXworks):

pdflatex
makeglossaries
pdfLaTeX+MakeIndex+BibTeX