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;
|
||||
$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
|
||||
\usepackage{biblatex}
|
||||
|
||||
% Glossary / Acronyms
|
||||
\usepackage[acronym]{glossaries}
|
||||
\makeglossaries
|
||||
|
@ -1,13 +1,18 @@
|
||||
\nonstopmode
|
||||
\documentclass{scrbook}
|
||||
|
||||
\title{A Modern Architecture for High-Level Constraint Modelling Languages}
|
||||
\author{Jip J. Dekker}
|
||||
|
||||
\input{assets/packages.tex}
|
||||
|
||||
% Bibliography preamble
|
||||
\addbibresource{assets/bibliography/references.bib}
|
||||
\addbibresource[label=ownpubs]{assets/bibliography/dekker_publications.bib}
|
||||
|
||||
\title{A Modern Architecture for High-Level Constraint Modelling Languages}
|
||||
\author{Jip J. Dekker}
|
||||
% Glossary / Acronym preamble
|
||||
\input{assets/glossary.tex}
|
||||
\input{assets/acronyms.tex}
|
||||
|
||||
\begin{document}
|
||||
|
||||
@ -25,7 +30,7 @@ Publications arising from this thesis include:
|
||||
\printbibliography[heading=none]
|
||||
\end{refsection}
|
||||
|
||||
\mainmatter
|
||||
\mainmatter{}
|
||||
\include{chapters/1_introduction}
|
||||
\include{chapters/2_background}
|
||||
\include{chapters/3_paradigms}
|
||||
@ -33,8 +38,11 @@ Publications arising from this thesis include:
|
||||
\include{chapters/5_half_reif}
|
||||
\include{chapters/6_incremental}
|
||||
|
||||
\backmatter
|
||||
\backmatter{}
|
||||
|
||||
\printbibliography
|
||||
\printbibliography{}
|
||||
|
||||
\printglossary[type=\acronymtype]{}
|
||||
\printglossary{}
|
||||
|
||||
\end{document}
|
||||
|
Reference in New Issue
Block a user