% \setlength\headheight{0mm}
% \let\openright=\cleardoublepage
+%% Vytváříme PDF/A-2u
\usepackage[a-2u]{pdfx}
-% Přepneme na českou sazbu
+%% Přepneme na českou sazbu a fonty Latin Modern
\usepackage[czech]{babel}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
+export TEXINPUTS=../tex//:
+
all: thesis.pdf
# LaTeX must be run multiple times to get references right
-thesis.pdf: thesis.tex $(wildcard *.tex) bibliography.bib
+thesis.pdf: thesis.tex $(wildcard *.tex) bibliography.bib thesis.xmpdata
pdflatex $<
bibtex thesis
pdflatex $<
pdflatex $<
clean:
- rm -f *.log *.dvi *.aux *.toc *.lof *.lot *.out *.bbl *.blg
+ rm -f *.log *.dvi *.aux *.toc *.lof *.lot *.out *.bbl *.blg *.xmpi
rm -f thesis.pdf
% \setlength\headheight{0mm}
% \let\openright=\cleardoublepage
+%% Generate PDF/A-2u
+\usepackage[a-2u]{pdfx}
+
%% Character encoding: usually latin2, cp1250 or utf8:
\usepackage[utf8]{inputenc}
+%% Prefer Latin Modern fonts
+\usepackage{lmodern}
+
%% Further useful packages (included in most LaTeX distributions)
\usepackage{amsmath} % extensions for typesetting of math
\usepackage{amsfonts} % math fonts
%% The hyperref package for clickable links in PDF and also for storing
%% metadata to PDF (including the table of contents).
-\usepackage[pdftex,unicode]{hyperref} % Must follow all other packages
+%% Most settings are pre-set by the pdfx package.
+\hypersetup{unicode}
\hypersetup{breaklinks=true}
-\hypersetup{pdftitle={\ThesisTitle}}
-\hypersetup{pdfauthor={\ThesisAuthor}}
-\hypersetup{pdfkeywords=\Keywords}
-\hypersetup{urlcolor=blue}
% Definitions of macros (see description inside)
\include{macros}
--- /dev/null
+% Metadata to be stored in PDF, see documentation of the pdfx package for more details.
+
+\Author{Name Surname}
+\Title{Thesis title}
+\Keywords{keywords\sep more such\sep yet another}
+\Subject{Abstract of thesis}
+\Publisher{Charles University}