providing compliance with PDF/A instead of a tagged pdf
This commit is contained in:
parent
90a1610f25
commit
704db26798
2 changed files with 15 additions and 15 deletions
|
@ -11,6 +11,6 @@ all: $(PDF)
|
||||||
$(PDF): %.pdf: %.tex
|
$(PDF): %.pdf: %.tex
|
||||||
$(TEXMK) $<
|
$(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:
|
clean:
|
||||||
rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext))
|
rm -rf $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) pdfa.xmpi
|
||||||
|
|
|
@ -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}
|
\documentclass{article}
|
||||||
|
|
||||||
\usepackage[T1]{fontenc} % encoding
|
\usepackage[T1]{fontenc} % encoding
|
||||||
|
@ -16,18 +26,8 @@
|
||||||
% \usepackage{minted} % code integration
|
% \usepackage{minted} % code integration
|
||||||
% \usemintedstyle{emacs}
|
% \usemintedstyle{emacs}
|
||||||
|
|
||||||
\newcommand{\settitle}{TITLE}
|
\usepackage[a-3u]{pdfx}
|
||||||
\newcommand{\setauthor}{YOU}
|
\hypersetup{hidelinks} % clickable links in table of contents
|
||||||
\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}
|
|
||||||
|
|
||||||
\title{\settitle}
|
\title{\settitle}
|
||||||
\author{\href{\setmail}{\setauthor}\\\setsubject~$\cdot$ \setlocation}
|
\author{\href{\setmail}{\setauthor}\\\setsubject~$\cdot$ \setlocation}
|
||||||
|
|
Loading…
Reference in a new issue