From 01528eead34944771f27b1c32ab05c5543dbc176 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 21 Feb 2024 13:17:59 +0100 Subject: [PATCH] Abstract is generated automatically, including its XMP metadata --- Makefile | 2 +- abstract.tex | 26 ++++++++++++++++++++++---- abstract.xmpdata | 5 ----- 3 files changed, 23 insertions(+), 10 deletions(-) delete mode 100644 abstract.xmpdata diff --git a/Makefile b/Makefile index b48a16a..d661a0f 100644 --- 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: diff --git a/abstract.tex b/abstract.tex index ad64567..3344a40 100644 --- a/abstract.tex +++ b/abstract.tex @@ -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} @@ -8,11 +18,19 @@ \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 index 8c5e01f..0000000 --- a/abstract.xmpdata +++ /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} -- 2.39.2