]> mj.ucw.cz Git - diplomky.git/commitdiff
Stand-alone abstract in both Czech and English en
authorMartin Mares <mj@ucw.cz>
Wed, 21 Feb 2024 19:56:47 +0000 (20:56 +0100)
committerMartin Mares <mj@ucw.cz>
Wed, 21 Feb 2024 19:56:47 +0000 (20:56 +0100)
Makefile
abstract-cs.tex [new file with mode: 0644]
abstract-en.tex [new file with mode: 0644]
abstract.tex [deleted file]

index 3570b96686ce390f30bf8da0753146427d7e17ad..9ef7e01f91c1509cc78c2dceee8f629534f9b1ff 100644 (file)
--- 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 (file)
index 0000000..d45efbf
--- /dev/null
@@ -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 (file)
index 0000000..1101b5c
--- /dev/null
@@ -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 (file)
index 3344a40..0000000
+++ /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}