Add printout version (BW links, citations)
This commit is contained in:
parent
ac1d941f05
commit
322f85d9bf
3 changed files with 27 additions and 5 deletions
|
@ -1,8 +1,11 @@
|
||||||
# Latexmk is configured in .latexmkrc
|
# Latexmk is configured in .latexmkrc
|
||||||
BUILD_DIR=build
|
BUILD_DIR=build
|
||||||
AUX_DIR=$(BUILD_DIR)/aux
|
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
|
MAIN_PDF=$(BUILD_DIR)/main.pdf
|
||||||
|
PRINTOUT_PDF=$(BUILD_DIR)/main-printout.pdf
|
||||||
ALL=$(CLEANED_PDF)
|
ALL=$(CLEANED_PDF)
|
||||||
REV_FILE=$(BUILD_DIR)/version
|
REV_FILE=$(BUILD_DIR)/version
|
||||||
|
|
||||||
|
@ -15,7 +18,10 @@ _setup:
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
$(CLEANED_PDF): $(MAIN_PDF)
|
$(CLEANED_MAIN): $(MAIN_PDF)
|
||||||
|
$(CLEANED_PRINTOUT): $(PRINTOUT_PDF)
|
||||||
|
|
||||||
|
$(CLEANED_PDFS):
|
||||||
qpdf "$<" --linearize "$@"
|
qpdf "$<" --linearize "$@"
|
||||||
exiftool -all:all= \
|
exiftool -all:all= \
|
||||||
-Version="$(shell bin/version.sh)" \
|
-Version="$(shell bin/version.sh)" \
|
||||||
|
@ -30,6 +36,10 @@ $(CLEANED_PDF): $(MAIN_PDF)
|
||||||
$(MAIN_PDF): assets $(REV_FILE)
|
$(MAIN_PDF): assets $(REV_FILE)
|
||||||
latexmk $($(notdir $@):.pdf=.tex)
|
latexmk $($(notdir $@):.pdf=.tex)
|
||||||
|
|
||||||
|
.PHONY: $(PRINTOUT_PDF)
|
||||||
|
$(PRINTOUT_PDF): assets $(REV_FILE)
|
||||||
|
latexmk $($(notdir $@):.pdf=.tex)
|
||||||
|
|
||||||
.PHONY: assets
|
.PHONY: assets
|
||||||
assets:
|
assets:
|
||||||
$(MAKE) -C "$@"
|
$(MAKE) -C "$@"
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
\usepackage[noEnd=true]{algpseudocodex}
|
\usepackage[noEnd=true]{algpseudocodex}
|
||||||
\usepackage[bottom]{footmisc} % footnotes are below floats
|
\usepackage[bottom]{footmisc} % footnotes are below floats
|
||||||
\usepackage[final]{microtype}
|
\usepackage[final]{microtype}
|
||||||
|
\usepackage{ifthen}
|
||||||
|
|
||||||
\usetikzlibrary{positioning}
|
\usetikzlibrary{positioning}
|
||||||
\usetikzlibrary{fit}
|
\usetikzlibrary{fit}
|
||||||
|
@ -62,7 +63,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
% Hyperlinks
|
% 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{
|
\hypersetup{
|
||||||
% bookmarks=true, % show bookmarks bar?
|
% bookmarks=true, % show bookmarks bar?
|
||||||
% unicode=false, % non-Latin characters in Acrobat’s bookmarks
|
% unicode=false, % non-Latin characters in Acrobat’s bookmarks
|
||||||
|
@ -79,8 +89,8 @@
|
||||||
% pdfnewwindow=true, % links in new PDF window
|
% pdfnewwindow=true, % links in new PDF window
|
||||||
colorlinks=true, % false: boxed links; true: colored links
|
colorlinks=true, % false: boxed links; true: colored links
|
||||||
linkcolor=link_blue, % color of internal links (change box color with linkbordercolor)
|
linkcolor=link_blue, % color of internal links (change box color with linkbordercolor)
|
||||||
citecolor=ForestGreen, % color of links to bibliography
|
citecolor=cite_color, % color of links to bibliography
|
||||||
filecolor=magenta, % color of file links
|
filecolor=file_color, % color of file links
|
||||||
urlcolor=link_blue % color of external links
|
urlcolor=link_blue % color of external links
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
2
manuscrit/main-printout.tex
Normal file
2
manuscrit/main-printout.tex
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
\def\isprintout{1}
|
||||||
|
\input{main.tex}
|
Loading…
Reference in a new issue