From: Mart Lubbers Date: Wed, 24 Feb 2021 09:11:04 +0000 (+0100) Subject: use latexmk, X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=8e0f47ec8315d175c393ec08ff414c53653b50bd;p=thesis-skel.git use latexmk, --- diff --git a/.chktexrc b/.chktexrc new file mode 100644 index 0000000..e69de29 diff --git a/.gitignore b/.gitignore index 39c2578..6b8c4ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +# intermediate files *.acn *.acr *.alg @@ -5,6 +6,8 @@ *.bbl *.blg *.brf +*.fdb_latexmk +*.fls *.fmt *.glg *.glo @@ -20,8 +23,12 @@ *.lot *.nav *.out -*.pdf *.snm *.tdo +*.tmb *.toc *.vrb + +# documents +*.dvi +*.pdf diff --git a/.latexmkrc b/.latexmkrc new file mode 100644 index 0000000..89ffd60 --- /dev/null +++ b/.latexmkrc @@ -0,0 +1,25 @@ +# Make and clean 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'; + +# Clean hyperref backrefs file +push @generated_exts, 'brf'; + +# Clean thumbs file +push @generated_exts, 'tmb'; + +# Clean bbl file as well +$bibtex_use = 2; + +# Clean mkindex files +$clean_ext .= ' %R.ist %R.xdy'; diff --git a/Makefile b/Makefile deleted file mode 100644 index cffd9a5..0000000 --- a/Makefile +++ /dev/null @@ -1,28 +0,0 @@ -DOCUMENTS:=$(patsubst %.tex,%,$(shell grep -Fl documentclass *.tex)) -LATEX?=pdflatex -LATEXFLAGS?=-shell-escape -file-line-error -halt-on-error -BIBTEX?=bibtex -MAKEGLOSSARIES?=makeglossaries -MAKEINDEX?=makeindex - -.PHONY: clean clobber all - -all: $(addsuffix .pdf,$(DOCUMENTS)) - -%.pdf: %.tex $(wildcard *.tex) - $(RM) -f $*.bcf - $(LATEX) $(LATEXFLAGS) $* - (grep -q '^\\bibdata{' $*.aux || [ -f $*.bcf ]; ) && $(BIBTEX) $(BIBTEXFLAGS) $* || true - grep -q '\@istfilename' $*.aux && $(MAKEGLOSSARIES) $(MAKEGLOSSARIESFLAGS) $* || true - [ -f $*.idx ] && $(MAKEINDEX) $(MAKEINDEXFLAGS) $* || true - $(LATEX) $(LATEXFLAGS) $* - $(LATEX) $(LATEXFLAGS) $* - -clean: $(addprefix clean-,$(DOCUMENTS)) - $(RM) texput.log - -clean-%: - $(RM) $(addprefix $*.,acn acr alg aux bbl bcf blg fmt glg glo gls idx ilg ind ist loa lof log lol lot nav out snm tdo toc vrb run.xml) - -clobber: clean - $(RM) -i *.pdf diff --git a/research_data_management.tex b/research_data_management.tex index edd2a7c..8300588 100644 --- a/research_data_management.tex +++ b/research_data_management.tex @@ -2,7 +2,7 @@ This thesis research has been carried out under the research data management pol The following research datasets have been produced during this PhD research: \begin{itemize} - \item Chapter 1: \ldots. DANS. \href{10.17026/dans-28m-mwht}{https://doi.org/10.17026/dans-28m-mwht} + \item Chapter 1: \ldots. DANS.\ \href{10.17026/dans-28m-mwht}{https://doi.org/10.17026/dans-28m-mwht} \item Chapter 1: Verberne, dr.~S.\ (RU Radboud University); Vries, prof.~dr.~ir.\ A.P. de (RU Radboud University); Kraaij, prof.~dr.~ir.\ W. (RU Radboud University) (2016): Longitudinal navigation log data on the Radboud University web domain. DANS.\ \href{10.17026/dans-28m-mwht}{https://doi.org/10.17026/dans-28m-mwht} \item \ldots \end{itemize} diff --git a/thesis.tex b/thesis.tex index 0a00e89..a80f5ce 100644 --- a/thesis.tex +++ b/thesis.tex @@ -44,12 +44,9 @@ \label{chp:an_appendix} \input{an_appendix} -\chapter{Research Data Management}% -\label{chp:research_data_management} -\input{research_data_management} - \backmatter% -\stopthumb% +\stopthumb% chktex 9 + % Bibliography \phantomsection{}% \label{chp:bibliography} @@ -111,4 +108,4 @@ \label{chp:index} \printindex -\end{document} +\end{document} % chktex 10