diff --git a/example/.gitignore b/example/.gitignore index b464a428628a1231f8133a9e1c088a5a6bfdc9bb..8a3a76b6a50af2d4f4000e895a6e92372ac230de 100644 --- a/example/.gitignore +++ b/example/.gitignore @@ -1,4 +1,6 @@ example.aux +example.glo +example.ist example.log example.out example.pdf diff --git a/example/Makefile b/example/Makefile index 150e90a39695759a910a32f22130956e25b14aee..88c63c87991fd2b420ade0159fdaf0fda7d5bd7f 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,3 +1,4 @@ +DOCNAME=example export TEXMFHOME ?= ../texmf GITVERSION := $(shell git log -1 --date=short --pretty=%h) @@ -7,9 +8,10 @@ ifneq "$(GITSTATUS)" "" GITDIRTY = -dirty endif -example.pdf: example.tex meta.tex - xelatex example - xelatex example +$(DOCNAME).pdf: $(DOCNAME).tex meta.tex + xelatex $(DOCNAME) + makeglossaries $(DOCNAME) + xelatex $(DOCNAME) .FORCE: diff --git a/example/example.tex b/example/example.tex index 1abccfa97a3995f022a1468626d0310bc0c39041..6a13ec39d860d06838c8af5f548fd3d04d2ada6c 100644 --- a/example/example.tex +++ b/example/example.tex @@ -10,6 +10,7 @@ \setDocChangeRecord{ \addChangeRecord{1.0}{2020-11-15}{Initial release} + \addChangeRecord{2.0}{2020-11-18}{Add list of abbreviations} } \setDocAuthors{ @@ -30,9 +31,20 @@ \addPerson{A person}{An institute}{A date} } +\input{astron-abbreviations} +\makeglossaries + \begin{document} \maketitle +\setglossarystyle{altlist} +\printglossary[title=List of abbreviations] +\clearpage + +Check that abbreviations are working properly: \gls{SDC}, \gls{SKA}. + +\section{First section} + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque bibendum metus tortor, sit amet lobortis mi semper et. Aenean in leo at nisi scelerisque feugiat. @@ -42,7 +54,6 @@ Proin aliquam ante nec sem ullamcorper sollicitudin. Ut accumsan efficitur ante, eget laoreet nisl pellentesque quis. Nunc ac ornare sem. -\section{First section} Sed enim libero, mattis nec ex vel, consectetur auctor magna. Integer venenatis blandit mi quis auctor. diff --git a/texmf/tex/latex/astron/astron.cls b/texmf/tex/latex/astron/astron.cls index 84f533eeb5af24b2cba90ce6fb3aebda506ed29d..9f90d046e112f729c9f415845a585a84a76d0082 100644 --- a/texmf/tex/latex/astron/astron.cls +++ b/texmf/tex/latex/astron/astron.cls @@ -17,6 +17,7 @@ \RequirePackage[absolute]{textpos} \RequirePackage{fancyhdr} \RequirePackage{geometry} +\RequirePackage[nonumberlist,nogroupskip]{glossaries} \RequirePackage{graphicx} \RequirePackage{lastpage} \RequirePackage{microtype}