From: Mart Lubbers Date: Wed, 24 Apr 2019 12:46:09 +0000 (+0200) Subject: titlepage error with hyperref X-Git-Url: https://git.martlubbers.net/?a=commitdiff_plain;h=1cc06809d16492ea3cd21d1c8480fb8dc265995a;p=thesis-skel.git titlepage error with hyperref --- diff --git a/Makefile b/Makefile index 7867780..d6fade3 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,28 @@ -DOCUMENT:=thesis - -LATEX?=pdflatex --no-shell-escape -file-line-error -halt-on-error +DOCUMENTS:=$(patsubst %.tex,%,$(shell grep -Fl documentclass *.tex)) +LATEX?=pdflatex +LATEXFLAGS?=--no-shell-escape -file-line-error -halt-on-error BIBTEX?=bibtex MAKEGLOSSARIES?=makeglossaries MAKEINDEX?=makeindex -all: $(DOCUMENT).pdf +.PHONY: clean clobber all + +all: $(addsuffix .pdf,$(DOCUMENTS)) %.pdf: %.tex $(wildcard *.tex) - $(LATEX) $* - grep -q '^\\bibdata{' $*.aux && $(BIBTEX) $* || true - grep -q '\@istfilename' $*.aux && $(MAKEGLOSSARIES) $* || true - [ -f $*.idx ] && $(MAKEINDEX) $* || true - $(LATEX) $* - $(LATEX) $* + $(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) -clean: - $(RM) $(addprefix $(DOCUMENT).,acn acr alg aux bbl blg fmt glg glo gls idx ilg ind ist loa lof log lol lot nav out pdf snm tdo toc vrb) +clobber: clean + $(RM) -i *.pdf diff --git a/titlepage.tex b/titlepage.tex index 2a8b21e..a44ef6b 100644 --- a/titlepage.tex +++ b/titlepage.tex @@ -1 +1,5 @@ -\maketitle +\hypersetup{pageanchor=false} +\begin{titlepage} + \maketitle +\end{titlepage} +\hypersetup{pageanchor=true}