]> mj.ucw.cz Git - diplomky.git/commitdiff
PDF/A: English version
authorMartin Mares <mj@ucw.cz>
Thu, 26 Jan 2017 20:27:19 +0000 (21:27 +0100)
committerMartin Mares <mj@ucw.cz>
Thu, 26 Jan 2017 20:27:19 +0000 (21:27 +0100)
cs/prace.tex
en/Makefile
en/thesis.tex
en/thesis.xmpdata [new file with mode: 0644]
tex/README

index 844da16bfed87ca67e67a48695c50a10812cc933..cd03ac89654c7dead75e792bc398cb3527ee1704 100644 (file)
 % \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}
index 1752a27268b3ef963491021743571a2cbe0b8440..9f8e7df81af2854bb5adb6ee97914b95c01929ca 100644 (file)
@@ -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
index 94e058cdcc2b0875d60adbe398ef5bfc565ba24b..3ec45e14d5c1341394b17522922f9fc7936b243f 100644 (file)
 % \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 (file)
index 0000000..c9babd8
--- /dev/null
@@ -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}
index 56bee334e57347c9ff4def922de492d5b625fed8..400ee750eb728c156c66cc4ed1a9175a9f1637ac 100644 (file)
@@ -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.