diff --git a/4-conclusion/acronyms.tex b/4-conclusion/acronyms.tex index b0cddfd..f9c0154 100644 --- a/4-conclusion/acronyms.tex +++ b/4-conclusion/acronyms.tex @@ -1,6 +1,9 @@ \chapterstartoc{List of Acronyms} \label{ch:acronyms} +\renewcommand{\glossarysection}[2][]{} % Remove the title of the glossary +\printnoidxglossary + \begin{description}[font=\normalfont\bfseries] \item[AR] Augmented Reality \item[hAR] Haptic Augmented Reality diff --git a/README.md b/README.md index a6e7c03..5e60708 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,5 @@ Compile `main.tex` using either `pdflatex` with `biblatex` or `lualatex` (recomm You may need to install the following packages: ```bash -tlmgr install adjustbox babel babel-english biber biblatex bookmark booktabs caption changes csquotes emptypage enumitem etoc etoolbox fancyhdr fontaxes fontenc graphicx hyperref iftex import inconsolata libertinus libertinus-fonts libertinus-otf libertinus-type1 makecell mathtools microtype multirow nextpage pdflscape pdfpages setspace siunitx subfig tabularx textcomp titlesec truncate todonotes ulem upquote xcolor xstring +tlmgr install adjustbox babel babel-english biber biblatex bookmark booktabs caption changes csquotes emptypage enumitem etoc etoolbox fancyhdr fontaxes fontenc glossaries glossaries-english graphicx hyperref iftex import inconsolata libertinus libertinus-fonts libertinus-otf libertinus-type1 makecell mathtools microtype multirow nextpage pdflscape pdfpages setspace siunitx subfig tabularx textcomp titlesec truncate todonotes ulem upquote xcolor xstring ``` diff --git a/config/acronyms.tex b/config/acronyms.tex new file mode 100644 index 0000000..aada1fa --- /dev/null +++ b/config/acronyms.tex @@ -0,0 +1,29 @@ +\usepackage[% + indexonlyfirst% Show only the first use page on the list of acronyms +]{glossaries} + +% Set the list of acronyms style +\newglossarystyle{dots}{% From https://tex.stackexchange.com/a/327513 + \setglossarystyle{list}% Base style + % + \renewcommand*{\glossentry}[2]{% + \item[% + \upshape\bfseries% Upright and bold + \glsentryitem{##1}\glstarget{##1}{\glossentryname{##1}}% The acronym + ]% + \glossentrydesc{##1}% The description + \unskip\leaders\hbox to 2.9mm{\hss.}\hfill##2}% The pages + % + \renewcommand*{\glsgroupskip}{}% No gap between groups +} +\setglossarystyle{dots} + +\makenoidxglossaries % Prepare the list of acronyms + +% Define the acronyms +\newcommand{\acronym}[2]{% #1 = acronym, #2 = full name + \newacronym{#1}{#1}{#2}% + \expandafter\newcommand\csname #1\endcsname{% Create a command named after the acronym (call \#1) + \gls{#1}% + }% +} diff --git a/config/content.tex b/config/content.tex index 2a0a882..9369303 100644 --- a/config/content.tex +++ b/config/content.tex @@ -21,7 +21,6 @@ colorlinks = true, % Color links allcolors = Black, % Color of all links citecolor = OliveGreen, % Color of citations - linkcolor = MidnightBlue, % Color of internal links allbordercolors = White, % No borders around links } diff --git a/main.tex b/main.tex index 68e05d4..988f697 100644 --- a/main.tex +++ b/main.tex @@ -21,6 +21,8 @@ pdfkeywords = {}, } +\input{config/acronyms} + % Custom commands \input{utils/commands} \input{config/thesis_commands}