tex,flake: ensure pdf-a compat using lualatex
This commit is contained in:
parent
f778ff7455
commit
1b60d67d2b
|
@ -52,7 +52,7 @@
|
||||||
mkdir "$out"
|
mkdir "$out"
|
||||||
|
|
||||||
# initial latex compile.
|
# initial latex compile.
|
||||||
pdflatex -synctex=1 -file-line-error \
|
lualatex -synctex=1 -file-line-error \
|
||||||
-interaction=nonstopmode -output-directory=$out thesis.tex
|
-interaction=nonstopmode -output-directory=$out thesis.tex
|
||||||
|
|
||||||
# handle bibliography.
|
# handle bibliography.
|
||||||
|
@ -64,7 +64,7 @@
|
||||||
-pvc \
|
-pvc \
|
||||||
-outdir="$out" \
|
-outdir="$out" \
|
||||||
-pdf \
|
-pdf \
|
||||||
-pdflatex="pdflatex -synctex=1 -file-line-error -interaction=nonstopmode" \
|
-pdflatex="lualatex -synctex=1 -file-line-error -interaction=nonstopmode" \
|
||||||
-use-make thesis.tex
|
-use-make thesis.tex
|
||||||
rm -r "$out"
|
rm -r "$out"
|
||||||
'';
|
'';
|
||||||
|
@ -149,7 +149,7 @@
|
||||||
out=".latexmkout"
|
out=".latexmkout"
|
||||||
mkdir "$out"
|
mkdir "$out"
|
||||||
|
|
||||||
pdflatex -synctex=1 -file-line-error \
|
lualatex -synctex=1 -file-line-error \
|
||||||
-interaction=nonstopmode -output-directory=$out thesis.tex
|
-interaction=nonstopmode -output-directory=$out thesis.tex
|
||||||
|
|
||||||
# handle bibliography.
|
# handle bibliography.
|
||||||
|
@ -160,7 +160,7 @@
|
||||||
-pvc \
|
-pvc \
|
||||||
-outdir="$out" \
|
-outdir="$out" \
|
||||||
-pdf \
|
-pdf \
|
||||||
-pdflatex="pdflatex -synctex=1 -file-line-error -interaction=nonstopmode" \
|
-pdflatex="lualatex -synctex=1 -file-line-error -interaction=nonstopmode" \
|
||||||
-use-make thesis.tex
|
-use-make thesis.tex
|
||||||
|
|
||||||
# clean up
|
# clean up
|
||||||
|
|
40
tex/UTB.tex
40
tex/UTB.tex
|
@ -42,10 +42,13 @@
|
||||||
% TODO(me):
|
% TODO(me):
|
||||||
% have this disabled when building draft documents with Nix - issue with
|
% have this disabled when building draft documents with Nix - issue with
|
||||||
% everyshi version bundled in TexLive `ms` package that Nix bundles.
|
% everyshi version bundled in TexLive `ms` package that Nix bundles.
|
||||||
% \usepackage{hyperxmp} % Pro aplikaci standardu PDF/A
|
\usepackage{hyperxmp}[2020/03/01] % Pro aplikaci standardu PDF/A
|
||||||
\usepackage{pdfpages} % include raw PDF files directly
|
\usepackage{pdfpages} % include raw PDF files directly
|
||||||
\usepackage{makecell} % multiline table cells
|
\usepackage{makecell} % multiline table cells
|
||||||
|
\usepackage{colorprofiles}
|
||||||
|
% \usepackage[a-2b,mathxmp]{pdfx}[2018/12/22]
|
||||||
|
|
||||||
|
% for pdflatex only
|
||||||
%\pdfminorversion=4
|
%\pdfminorversion=4
|
||||||
%\pdfobjcompresslevel=0
|
%\pdfobjcompresslevel=0
|
||||||
|
|
||||||
|
@ -137,7 +140,8 @@
|
||||||
}
|
}
|
||||||
\expandafter\convertDate\pdfcreationdate
|
\expandafter\convertDate\pdfcreationdate
|
||||||
|
|
||||||
\pdfminorversion 4
|
% for pdflatex only
|
||||||
|
% \pdfminorversion 4
|
||||||
|
|
||||||
\immediate\pdfobj stream attr{/N 3} file{graphics/sRGBIEC1966-2.1.icm}
|
\immediate\pdfobj stream attr{/N 3} file{graphics/sRGBIEC1966-2.1.icm}
|
||||||
\pdfcatalog{%
|
\pdfcatalog{%
|
||||||
|
@ -176,8 +180,8 @@
|
||||||
pdfkeywords={\klicovaslovacz},
|
pdfkeywords={\klicovaslovacz},
|
||||||
%pdfproducer={pdfTeX-1.40.20},
|
%pdfproducer={pdfTeX-1.40.20},
|
||||||
pdflang=la,
|
pdflang=la,
|
||||||
% pdfapart=3,
|
pdfapart=3,
|
||||||
% pdfaconformance=B,
|
pdfaconformance=B,
|
||||||
pdflang={cz}
|
pdflang={cz}
|
||||||
% use breaklinks to make have long bibtex urls broken
|
% use breaklinks to make have long bibtex urls broken
|
||||||
% otherwise they go over the margin (known issue)
|
% otherwise they go over the margin (known issue)
|
||||||
|
@ -194,20 +198,28 @@
|
||||||
pdfkeywords={\klicovaslovaen},
|
pdfkeywords={\klicovaslovaen},
|
||||||
%pdfproducer={pdfTeX-1.40.20},
|
%pdfproducer={pdfTeX-1.40.20},
|
||||||
pdflang=la,
|
pdflang=la,
|
||||||
% pdfapart=3,
|
pdfapart=3,
|
||||||
% pdfaconformance=B,
|
pdfaconformance=B,
|
||||||
pdflang={en},
|
pdflang={en-GB},
|
||||||
% use breaklinks to make have long bibtex urls broken
|
% use breaklinks to make have long bibtex urls broken
|
||||||
% otherwise they go over the margin (known issue)
|
% otherwise they go over the margin (known issue)
|
||||||
breaklinks=true
|
breaklinks=true
|
||||||
}
|
}
|
||||||
\fi \fi
|
\fi \fi
|
||||||
|
|
||||||
% TODO(me):
|
% https://tex.stackexchange.com/questions/42641/can-pdflatex-produce-pdf-a?noredirect=1&lq=1
|
||||||
% include in the final (non-draft version of the document)
|
% https://webpages.tuni.fi/latex/pdfa-guide.pdf
|
||||||
% \makeatletter
|
% \begin{filecontents*}[overwrite]{\jobname.xmpdata}
|
||||||
% \includexmp{tex/pdfa-1b}
|
% \Title{\nazeven}
|
||||||
% \makeatother
|
% \Author{\autor}
|
||||||
|
% \Language{en-GB}
|
||||||
|
% \Subject{\abstrakten}
|
||||||
|
% \Keywords{\klicovaslovaen}
|
||||||
|
% \end{filecontents*}
|
||||||
|
%
|
||||||
|
% \makeatletter
|
||||||
|
% \includexmp{tex/pdfa-1b}
|
||||||
|
% \makeatother
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -802,7 +814,7 @@
|
||||||
%\addto\captionsczech{\renewcommand{\tablename}{Tab.}}
|
%\addto\captionsczech{\renewcommand{\tablename}{Tab.}}
|
||||||
\renewcommand{\cftfigpresnum}{Obr. }
|
\renewcommand{\cftfigpresnum}{Obr. }
|
||||||
\else \ifenglish
|
\else \ifenglish
|
||||||
\usepackage[english]{babel}
|
\usepackage[UKenglish]{babel}
|
||||||
% Vlastni definice nazvu
|
% Vlastni definice nazvu
|
||||||
\addto\captionsenglish{\renewcommand{\contentsname}{\MakeTextUppercase{Table of Contents}}}
|
\addto\captionsenglish{\renewcommand{\contentsname}{\MakeTextUppercase{Table of Contents}}}
|
||||||
\addto\captionsenglish{\renewcommand{\refname}{\MakeTextUppercase{References}}}
|
\addto\captionsenglish{\renewcommand{\refname}{\MakeTextUppercase{References}}}
|
||||||
|
|
Reference in New Issue