export TEXINPUTS=../tex//:
-all: thesis.pdf abstract.pdf
+all: thesis.pdf abstract-cs.pdf abstract-en.pdf
# LaTeX must be run multiple times to get references right
thesis.pdf: thesis.tex $(wildcard *.tex) bibliography.bib
pdflatex $<
pdflatex $<
-abstract.pdf: abstract.tex
+abstract-cs.pdf: abstract-cs.tex metadata.tex macros.tex xmp.tex
+ pdflatex $<
+
+abstract-en.pdf: abstract-en.tex metadata.tex macros.tex xmp.tex
pdflatex $<
clean:
rm -f *.aux *.bbl *.blg *.lof *.log *.lot *.out *.toc *.xmpdata *.xmpi
- rm -f thesis.pdf abstract.pdf
+ rm -f thesis.pdf abstract.pdf abstract-cs.pdf abstract-en.pdf
--- /dev/null
+%%% A template of a stand-alone abstract in Czech
+
+% Meta-data of your thesis (please edit)
+\input metadata.tex
+
+% Generate metadata in XMP format for use by the pdfx package
+\let\OrigThesisTitleXMP=\ThesisTitleXMP
+\def\ThesisTitleXMP{\OrigThesisTitleXMP\space (abstrakt)}
+\def\AbstractXMP{}
+\def\ThesisKeywordsXMP{}
+\input xmp.tex
+
+\documentclass[12pt]{report}
+
+\usepackage[a4paper, hmargin=1in, vmargin=1in]{geometry}
+\usepackage[a-2u]{pdfx}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage{textcomp}
+\usepackage{amsmath}
+\usepackage{amsthm}
+\usepackage{amsfonts}
+\usepackage{fancyvrb}
+
+\pagenumbering{gobble}
+
+% Definitions of macros (see description inside)
+\input macros.tex
+
+\begin{document}
+
+\ifx\StudyLanguage\LangCS
+
+% By default, we create the abstract from the metadata
+\AbstractCS
+
+\else
+
+Students of English study programmes do not submit a~Czech version
+of the abstract.
+
+\fi
+
+\end{document}
--- /dev/null
+%%% A template of a stand-alone abstract in English
+
+% Meta-data of your thesis (please edit)
+\input metadata.tex
+
+% Generate metadata in XMP format for use by the pdfx package
+\let\OrigThesisTitleXMP=\ThesisTitleXMP
+\def\ThesisTitleXMP{\OrigThesisTitleXMP\space (abstract)}
+\def\AbstractXMP{}
+\def\ThesisKeywordsXMP{}
+\input xmp.tex
+
+\documentclass[12pt]{report}
+
+\usepackage[a4paper, hmargin=1in, vmargin=1in]{geometry}
+\usepackage[a-2u]{pdfx}
+\usepackage[utf8]{inputenc}
+\usepackage[T1]{fontenc}
+\usepackage{lmodern}
+\usepackage{textcomp}
+\usepackage{amsmath}
+\usepackage{amsthm}
+\usepackage{amsfonts}
+\usepackage{fancyvrb}
+
+\pagenumbering{gobble}
+
+% Definitions of macros (see description inside)
+\input macros.tex
+
+\begin{document}
+
+% By default, we create the abstract from the metadata
+\Abstract
+
+\end{document}
+++ /dev/null
-%%% A template for a simple PDF/A file with a stand-alone abstract of the thesis.
-
-% Meta-data of your thesis (please edit)
-\input metadata.tex
-
-% Generate metadata in XMP format for use by the pdfx package
-\let\OrigThesisTitleXMP=\ThesisTitleXMP
-\def\ThesisTitleXMP{\OrigThesisTitleXMP (abstract)}
-\def\AbstractXMP{}
-\def\ThesisKeywordsXMP{}
-\input xmp.tex
-
-\documentclass[12pt]{report}
-
-\usepackage[a4paper, hmargin=1in, vmargin=1in]{geometry}
-\usepackage[a-2u]{pdfx}
-\usepackage[utf8]{inputenc}
-\usepackage[T1]{fontenc}
-\usepackage{lmodern}
-\usepackage{textcomp}
-\usepackage{amsmath}
-\usepackage{amsthm}
-\usepackage{amsfonts}
-\usepackage{fancyvrb}
-
-\pagestyle{empty}
-
-% Definitions of macros (see description inside)
-\input macros.tex
-
-\begin{document}
-
-% By default, we create the abstract from the metadata
-\Abstract
-
-\end{document}