Add package to manage glossary and acronyms
This commit is contained in:
parent
c72868f78b
commit
8a747b41fd
17
.latexmkrc
17
.latexmkrc
@ -3,4 +3,19 @@
|
|||||||
$pdf_mode = 5;
|
$pdf_mode = 5;
|
||||||
$bibtex_use = 2;
|
$bibtex_use = 2;
|
||||||
|
|
||||||
$clean_ext = "%R-blx.bib %R-blx.aux";
|
$clean_ext = "run.xml %R-blx.bib %R-blx.aux ist xdy";
|
||||||
|
|
||||||
|
# Rule to generate glossaries
|
||||||
|
add_cus_dep('glo', 'gls', 0, 'run_makeglossaries');
|
||||||
|
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
|
||||||
|
|
||||||
|
sub run_makeglossaries {
|
||||||
|
if ( $silent ) {
|
||||||
|
system "makeglossaries -q '$_[0]'";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
system "makeglossaries '$_[0]'";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
push @generated_exts, 'glo', 'gls', 'glg';
|
||||||
|
push @generated_exts, 'acn', 'acr', 'alg';
|
||||||
|
1
assets/acronyms.tex
Normal file
1
assets/acronyms.tex
Normal file
@ -0,0 +1 @@
|
|||||||
|
% \newacronym[see={[Glossary:]{gls-api}}]{api}{API}{Application Programming Interface\glsadd{gls-api}}
|
10
assets/glossary.tex
Normal file
10
assets/glossary.tex
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
% Note: glossary entries for terms that are acronyms should be prefixed 'gls-'
|
||||||
|
% so the non-prefixed reference is used to refer to the acronym
|
||||||
|
|
||||||
|
% \newglossaryentry{gls-api}{
|
||||||
|
% name={API},
|
||||||
|
% description={An Application Programming Interface (API) is a particular set
|
||||||
|
% of rules and specifications that a software program can follow to access and
|
||||||
|
% make use of the services and resources provided by another particular software
|
||||||
|
% program that implements that API},
|
||||||
|
% }
|
@ -4,3 +4,7 @@
|
|||||||
|
|
||||||
% References
|
% References
|
||||||
\usepackage{biblatex}
|
\usepackage{biblatex}
|
||||||
|
|
||||||
|
% Glossary / Acronyms
|
||||||
|
\usepackage[acronym]{glossaries}
|
||||||
|
\makeglossaries
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
\nonstopmode
|
\nonstopmode
|
||||||
\documentclass{scrbook}
|
\documentclass{scrbook}
|
||||||
|
|
||||||
|
\title{A Modern Architecture for High-Level Constraint Modelling Languages}
|
||||||
|
\author{Jip J. Dekker}
|
||||||
|
|
||||||
\input{assets/packages.tex}
|
\input{assets/packages.tex}
|
||||||
|
|
||||||
|
% Bibliography preamble
|
||||||
\addbibresource{assets/bibliography/references.bib}
|
\addbibresource{assets/bibliography/references.bib}
|
||||||
\addbibresource[label=ownpubs]{assets/bibliography/dekker_publications.bib}
|
\addbibresource[label=ownpubs]{assets/bibliography/dekker_publications.bib}
|
||||||
|
|
||||||
\title{A Modern Architecture for High-Level Constraint Modelling Languages}
|
% Glossary / Acronym preamble
|
||||||
\author{Jip J. Dekker}
|
\input{assets/glossary.tex}
|
||||||
|
\input{assets/acronyms.tex}
|
||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
|
|
||||||
@ -25,7 +30,7 @@ Publications arising from this thesis include:
|
|||||||
\printbibliography[heading=none]
|
\printbibliography[heading=none]
|
||||||
\end{refsection}
|
\end{refsection}
|
||||||
|
|
||||||
\mainmatter
|
\mainmatter{}
|
||||||
\include{chapters/1_introduction}
|
\include{chapters/1_introduction}
|
||||||
\include{chapters/2_background}
|
\include{chapters/2_background}
|
||||||
\include{chapters/3_paradigms}
|
\include{chapters/3_paradigms}
|
||||||
@ -33,8 +38,11 @@ Publications arising from this thesis include:
|
|||||||
\include{chapters/5_half_reif}
|
\include{chapters/5_half_reif}
|
||||||
\include{chapters/6_incremental}
|
\include{chapters/6_incremental}
|
||||||
|
|
||||||
\backmatter
|
\backmatter{}
|
||||||
|
|
||||||
\printbibliography
|
\printbibliography{}
|
||||||
|
|
||||||
|
\printglossary[type=\acronymtype]{}
|
||||||
|
\printglossary{}
|
||||||
|
|
||||||
\end{document}
|
\end{document}
|
||||||
|
Reference in New Issue
Block a user