add support for a glossary

This commit is contained in:
Andreas Zweili 2018-09-16 18:44:39 +02:00
parent 58b1776b8d
commit 16f58baa50
4 changed files with 22 additions and 7 deletions

0
general/glossary.tex Normal file
View File

View File

@ -1,6 +1,6 @@
ALL=$(wildcard *.sty *.tex *.org pictures/*.svg pictures/*.eps pictures/*.dot \ ALL=$(wildcard *.sty *.tex *.org pictures/*.svg pictures/*.eps pictures/*.dot \
pictures/*.tex pictures/*.puml) pictures/*.tex pictures/*.puml)
PAPER=projekthandbuch_main.tex PAPER=Projekthandbuch_Andreas_Zweili.tex
SHELL=/bin/bash SHELL=/bin/bash
FIGURES_SVG=$(wildcard pictures/*.svg) FIGURES_SVG=$(wildcard pictures/*.svg)
@ -15,9 +15,9 @@ DOT_PDF=$(FIGURES_DOT:.dot=.pdf)
TEX_PDF=$(FIGURES_TEX:.tex=.pdf) TEX_PDF=$(FIGURES_TEX:.tex=.pdf)
PUML_PDF=$(FIGURES_PUML:.puml=.svg) PUML_PDF=$(FIGURES_PUML:.puml=.svg)
all: projekthandbuch_main.pdf ## Build full thesis (LaTeX + figures) all: Projekthandbuch_Andreas_Zweili.pdf ## Build full thesis (LaTeX + figures)
projekthandbuch_main.pdf: $(SVG_PDF) $(EPS_PDF) $(DOT_PDF) $(TEX_PDF) \ Projekthandbuch_Andreas_Zweili.pdf: $(SVG_PDF) $(EPS_PDF) $(DOT_PDF) $(TEX_PDF) \
$(PUML_PDF) projekthandbuch.tex general/ibzlogo.pdf $(BIBLIOGRAPHY) $(PUML_PDF) projekthandbuch.tex general/ibzlogo.pdf $(BIBLIOGRAPHY)
latexmk -quiet -pdf -pdflatex="pdflatex -interaction=nonstopmode" \ latexmk -quiet -pdf -pdflatex="pdflatex -interaction=nonstopmode" \
-use-make $(PAPER) -use-make $(PAPER)
@ -30,18 +30,23 @@ clean: ## Clean LaTeX and output figure files
rm -f $(PUML_PDF) rm -f $(PUML_PDF)
rm -f general/ibzlogo.pdf rm -f general/ibzlogo.pdf
rm -f *.acn rm -f *.acn
rm -f *.acr
rm -f *.bbl rm -f *.bbl
rm -f *.glo rm -f *.glo
rm -f *.ist rm -f *.ist
rm -f *.alg
rm -f *.glg
rm -f *.gls
rm -f *.lol
rm -f *.run.xml rm -f *.run.xml
rm -f *-blx.bib rm -f *-blx.bib
rm -rf auto/ rm -rf auto/
rm -rf general/auto/ rm -rf general/auto/
rm -rf general/style.aux rm -rf general/*.aux
rm -f projekthandbuch.tex rm -f projekthandbuch.tex
distclean: clean distclean: clean
rm -f projekthandbuch_main.pdf rm -f Projekthandbuch_Andreas_Zweili.pdf
pictures/%.pdf: pictures/%.svg ## Figures for the manuscript pictures/%.pdf: pictures/%.svg ## Figures for the manuscript
inkscape -C -z --file=$< --export-pdf=$@ inkscape -C -z --file=$< --export-pdf=$@

View File

@ -1,7 +1,7 @@
\documentclass[a4paper, 11pt]{article} \documentclass[a4paper, 11pt]{article}
\include{general/style} \include{general/style}
\bibliography{general/bibliography} \bibliography{general/bibliography}
%\include{glossary} \include{general/glossary}
\begin{document} \begin{document}
\include{projekthandbuch_titlepage} \include{projekthandbuch_titlepage}
@ -50,7 +50,7 @@ aufgetretenen Probleme.
\newpage \newpage
%\printglossaries \printglossaries
\end{document} \end{document}

10
projekthandbuch/latexmkrc Normal file
View File

@ -0,0 +1,10 @@
add_cus_dep('glo', 'gls', 0, 'makeglo2gls');
add_cus_dep('acn', 'acr', 0, 'run_makeglossaries');
sub run_makeglossaries {
if ( $silent ) {
system "makeglossaries -q '$_[0]'";
}
else {
system "makeglossaries '$_[0]'";
};
}