From 704db26798bc87844f28a9209017fd6d01e3a7aa Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 25 Mar 2024 09:50:38 +0100 Subject: [PATCH] providing compliance with PDF/A instead of a tagged pdf --- latex/document/Makefile | 4 ++-- latex/document/document.tex | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/latex/document/Makefile b/latex/document/Makefile index 19fc9c8..749f5d8 100644 --- a/latex/document/Makefile +++ b/latex/document/Makefile @@ -11,6 +11,6 @@ all: $(PDF) $(PDF): %.pdf: %.tex $(TEXMK) $< -EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc +EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc xmpdata clean: - rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) pdfa.xmpi diff --git a/latex/document/document.tex b/latex/document/document.tex index 76c8e46..b4617fc 100644 --- a/latex/document/document.tex +++ b/latex/document/document.tex @@ -1,4 +1,14 @@ -\DocumentMetadata{testphase = {phase-III,math}} +\newcommand{\settitle}{TITLE} +\newcommand{\setauthor}{YOU} +\newcommand{\setsubject}{SUBJECT} +\newcommand{\setlocation}{LOCATION} +\newcommand{\setmail}{mailto:place@holder.com} + +\begin{filecontents*}{\jobname.xmpdata} + \Title{\settitle} + \Author{\setauthor} + \Subject{\setsubject} +\end{filecontents*} \documentclass{article} \usepackage[T1]{fontenc} % encoding @@ -16,18 +26,8 @@ % \usepackage{minted} % code integration % \usemintedstyle{emacs} -\newcommand{\settitle}{TITLE} -\newcommand{\setauthor}{YOU} -\newcommand{\setsubject}{SUBJECT} -\newcommand{\setlocation}{LOCATION} -\newcommand{\setmail}{mailto:place@holder.com} - -\usepackage[ - pdfauthor={\setauthor}, % author metadata - pdftitle={\settitle}, % title metadata - pdfsubject={\setsubject}, % subject metadata - hidelinks, % clickable links in table of contents -]{hyperref} +\usepackage[a-3u]{pdfx} +\hypersetup{hidelinks} % clickable links in table of contents \title{\settitle} \author{\href{\setmail}{\setauthor}\\\setsubject~$\cdot$ \setlocation}