diff --git a/manuscrit/Makefile b/manuscrit/Makefile index 474803d..8c00a5c 100644 --- a/manuscrit/Makefile +++ b/manuscrit/Makefile @@ -1,8 +1,11 @@ # Latexmk is configured in .latexmkrc BUILD_DIR=build AUX_DIR=$(BUILD_DIR)/aux -CLEANED_PDF=$(BUILD_DIR)/these.pdf +CLEANED_MAIN=$(BUILD_DIR)/these.pdf +CLEANED_PRINTOUT=$(BUILD_DIR)/these-printout.pdf +CLEANED_PDFS=$(CLEANED_MAIN) $(CLEANED_PRINTOUT) MAIN_PDF=$(BUILD_DIR)/main.pdf +PRINTOUT_PDF=$(BUILD_DIR)/main-printout.pdf ALL=$(CLEANED_PDF) REV_FILE=$(BUILD_DIR)/version @@ -15,7 +18,10 @@ _setup: done -$(CLEANED_PDF): $(MAIN_PDF) +$(CLEANED_MAIN): $(MAIN_PDF) +$(CLEANED_PRINTOUT): $(PRINTOUT_PDF) + +$(CLEANED_PDFS): qpdf "$<" --linearize "$@" exiftool -all:all= \ -Version="$(shell bin/version.sh)" \ @@ -30,6 +36,10 @@ $(CLEANED_PDF): $(MAIN_PDF) $(MAIN_PDF): assets $(REV_FILE) latexmk $($(notdir $@):.pdf=.tex) +.PHONY: $(PRINTOUT_PDF) +$(PRINTOUT_PDF): assets $(REV_FILE) + latexmk $($(notdir $@):.pdf=.tex) + .PHONY: assets assets: $(MAKE) -C "$@" diff --git a/manuscrit/include/packages.tex b/manuscrit/include/packages.tex index 7c0245f..3dc1fb1 100644 --- a/manuscrit/include/packages.tex +++ b/manuscrit/include/packages.tex @@ -31,6 +31,7 @@ \usepackage[noEnd=true]{algpseudocodex} \usepackage[bottom]{footmisc} % footnotes are below floats \usepackage[final]{microtype} +\usepackage{ifthen} \usetikzlibrary{positioning} \usetikzlibrary{fit} @@ -62,7 +63,16 @@ } % Hyperlinks -\definecolor{link_blue}{RGB}{0,0,97} +\ifdefined\isprintout + \definecolor{link_blue}{gray}{0} + \definecolor{cite_color}{gray}{0} + \definecolor{file_color}{gray}{0} +\else + \definecolor{link_blue}{RGB}{0,0,97} + \definecolor{cite_color}{HTML}{009a55} + \definecolor{file_color}{cmyk}{0,1,0,0} +\fi + \hypersetup{ % bookmarks=true, % show bookmarks bar? % unicode=false, % non-Latin characters in Acrobat’s bookmarks @@ -79,8 +89,8 @@ % pdfnewwindow=true, % links in new PDF window colorlinks=true, % false: boxed links; true: colored links linkcolor=link_blue, % color of internal links (change box color with linkbordercolor) - citecolor=ForestGreen, % color of links to bibliography - filecolor=magenta, % color of file links + citecolor=cite_color, % color of links to bibliography + filecolor=file_color, % color of file links urlcolor=link_blue % color of external links } diff --git a/manuscrit/main-printout.tex b/manuscrit/main-printout.tex new file mode 100644 index 0000000..bb3eb67 --- /dev/null +++ b/manuscrit/main-printout.tex @@ -0,0 +1,2 @@ +\def\isprintout{1} +\input{main.tex}