From 264c1225335af22ce90b708a09449650b17a73c6 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 26 Jan 2017 21:27:19 +0100 Subject: [PATCH] PDF/A: English version --- cs/prace.tex | 3 ++- en/Makefile | 6 ++++-- en/thesis.tex | 13 ++++++++----- en/thesis.xmpdata | 7 +++++++ tex/README | 2 ++ 5 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 en/thesis.xmpdata diff --git a/cs/prace.tex b/cs/prace.tex index 844da16..cd03ac8 100644 --- a/cs/prace.tex +++ b/cs/prace.tex @@ -25,9 +25,10 @@ % \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} diff --git a/en/Makefile b/en/Makefile index 1752a27..9f8e7df 100644 --- a/en/Makefile +++ b/en/Makefile @@ -1,12 +1,14 @@ +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 diff --git a/en/thesis.tex b/en/thesis.tex index 94e058c..3ec45e1 100644 --- a/en/thesis.tex +++ b/en/thesis.tex @@ -25,9 +25,15 @@ % \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 @@ -100,12 +106,9 @@ Abstract. \X{Recommended length around 80--200 words. This is not a~copy of your %% 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} diff --git a/en/thesis.xmpdata b/en/thesis.xmpdata new file mode 100644 index 0000000..c9babd8 --- /dev/null +++ b/en/thesis.xmpdata @@ -0,0 +1,7 @@ +% 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} diff --git a/tex/README b/tex/README index 56bee33..400ee75 100644 --- a/tex/README +++ b/tex/README @@ -1 +1,3 @@ Do tohoto adresáře můžete uložit další soubory s TeXovými makry. + +This directory can be used for further TeX macro files. -- 2.39.2