From: Martin Mares Date: Wed, 21 Feb 2024 19:56:47 +0000 (+0100) Subject: Stand-alone abstract in both Czech and English X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fen;p=diplomky.git Stand-alone abstract in both Czech and English --- 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-en.tex b/abstract-en.tex new file mode 100644 index 0000000..1101b5c --- /dev/null +++ b/abstract-en.tex @@ -0,0 +1,36 @@ +%%% 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} diff --git a/abstract.tex b/abstract.tex deleted file mode 100644 index 3344a40..0000000 --- a/abstract.tex +++ /dev/null @@ -1,36 +0,0 @@ -%%% 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}