From f3e9b0f8f9bc9616a6536aea620dcd34a6623486 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 21 Feb 2024 20:56:47 +0100 Subject: [PATCH] Stand-alone abstract in both Czech and English --- Makefile | 9 ++++--- abstract-cs.tex | 45 +++++++++++++++++++++++++++++++++ abstract.tex => abstract-en.tex | 6 ++--- 3 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 abstract-cs.tex rename abstract.tex => abstract-en.tex (81%) diff --git a/Makefile b/Makefile index 3570b96..9ef7e01 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ 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 @@ -9,9 +9,12 @@ 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 diff --git a/abstract-cs.tex b/abstract-cs.tex new file mode 100644 index 0000000..d45efbf --- /dev/null +++ b/abstract-cs.tex @@ -0,0 +1,45 @@ +%%% 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} diff --git a/abstract.tex b/abstract-en.tex similarity index 81% rename from abstract.tex rename to abstract-en.tex index 3344a40..1101b5c 100644 --- a/abstract.tex +++ b/abstract-en.tex @@ -1,11 +1,11 @@ -%%% A template for a simple PDF/A file with a stand-alone abstract of the thesis. +%%% 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 (abstract)} +\def\ThesisTitleXMP{\OrigThesisTitleXMP\space (abstract)} \def\AbstractXMP{} \def\ThesisKeywordsXMP{} \input xmp.tex @@ -23,7 +23,7 @@ \usepackage{amsfonts} \usepackage{fancyvrb} -\pagestyle{empty} +\pagenumbering{gobble} % Definitions of macros (see description inside) \input macros.tex -- 2.39.2