]> mj.ucw.cz Git - diplomky.git/commitdiff
Abstract is generated automatically, including its XMP metadata
authorMartin Mares <mj@ucw.cz>
Wed, 21 Feb 2024 12:17:59 +0000 (13:17 +0100)
committerMartin Mares <mj@ucw.cz>
Wed, 21 Feb 2024 18:20:36 +0000 (19:20 +0100)
Makefile
abstract.tex
abstract.xmpdata [deleted file]

index b48a16a41369be8bf04b751f9a5fd908c0be4da5..d661a0fc57596541ed01d01b99f34a9a812125da 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ thesis.pdf: thesis.tex $(wildcard *.tex) bibliography.bib
        pdflatex $<
        pdflatex $<
 
-abstract.pdf: abstract.tex abstract.xmpdata
+abstract.pdf: abstract.tex
        pdflatex $<
 
 clean:
index ad645670fd38eb73e976b9f875f30dc8c1b57641..3344a408059ba8e556461619464a062097bcda4b 100644 (file)
@@ -1,4 +1,14 @@
-%%% A template for a simple PDF/A file like a stand-alone abstract of the thesis.
+%%% 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[T1]{fontenc}
 \usepackage{lmodern}
 \usepackage{textcomp}
+\usepackage{amsmath}
+\usepackage{amsthm}
+\usepackage{amsfonts}
+\usepackage{fancyvrb}
 
-\begin{document}
+\pagestyle{empty}
 
-%% Do not forget to edit abstract.xmpdata.
+% Definitions of macros (see description inside)
+\input macros.tex
+
+\begin{document}
 
-This is an example abstract.
+% By default, we create the abstract from the metadata
+\Abstract
 
 \end{document}
diff --git a/abstract.xmpdata b/abstract.xmpdata
deleted file mode 100644 (file)
index 8c5e01f..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-% Metadata to be stored in PDF, see documentation of the pdfx package for more details.
-
-\Author{Name Surname}
-\Title{Thesis title}
-\Publisher{Charles University}