mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-19 11:38:05 +02:00
documents/pdfa-paper: Added example for creating a PDF/A
This commit is contained in:
parent
cb245b4dd9
commit
287768a0d6
6 changed files with 125 additions and 0 deletions
7
documents/pdfa-paper/Makefile
Normal file
7
documents/pdfa-paper/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
|||
DOKUMENT = pdfa-paper
|
||||
make:
|
||||
pdflatex -shell-escape $(DOKUMENT).tex -interaction=batchmode -output-format=pdf
|
||||
pdflatex -shell-escape $(DOKUMENT).tex -interaction=batchmode -output-format=pdf
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.out *.thm *.idx *.toc *.ind *.ilg figures/torus.tex *.glg *.glo *.gls *.ist *.xdy *.fdb_latexmk *.bak *.blg *.bbl *.glsdefs *.acn *.acr *.alg *.nls *.nlo *.bak *.pyg *.lot *.lof *.xmpi *.xmpdata
|
16
documents/pdfa-paper/README.md
Normal file
16
documents/pdfa-paper/README.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
Minimal example for a PDF/A paper:
|
||||
|
||||
http://www.pdf-tools.com/pdf/validate-pdfa-online.aspx
|
||||
|
||||
```text
|
||||
Validating file "pdfa-paper.pdf" for conformance level pdfa-1b
|
||||
There is only one RDF resource allowed in XMP.
|
||||
dc:title :: Wrong value type. Expected type 'lang alt'.
|
||||
The schema description for namespace 'prism:' (http://prismstandard.org/namespaces/basic/2.0/) is missing.
|
||||
dc:publisher :: Wrong value type. Expected type 'bag'.
|
||||
The value of the key N is 4 but must be 3.
|
||||
The document does not conform to the requested standard.
|
||||
The document doesn't conform to the PDF reference (missing required entries, wrong value types, etc.).
|
||||
The document's meta data is either missing or inconsistent or corrupt.
|
||||
Done.
|
||||
```
|
21
documents/pdfa-paper/ch1-introduction.tex
Normal file
21
documents/pdfa-paper/ch1-introduction.tex
Normal file
|
@ -0,0 +1,21 @@
|
|||
%!TEX root = pdfa-paper.tex
|
||||
|
||||
\section{Introduction}
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean id dolor a eros tempor accumsan. Ut ante dui, lacinia et interdum quis, suscipit eu lacus. Pellentesque eget tellus arcu. Vestibulum et nunc at arcu viverra ultrices. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Phasellus blandit pharetra lacus, sit amet luctus quam aliquam sit amet.
|
||||
\[e^{i \pi}= -1\]
|
||||
Nam et lacus luctus tellus feugiat rhoncus at eu enim. Sed a eros a nibh suscipit scelerisque. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec erat massa, ullamcorper condimentum justo quis, congue ultrices elit. Morbi efficitur nec elit non accumsan. In hendrerit, leo eu fermentum posuere, risus quam porttitor massa, non eleifend lorem metus faucibus nulla. Nunc lacinia tellus et purus accumsan consequat.
|
||||
|
||||
\begin{figure}[htb]
|
||||
\centering
|
||||
\input{figures/2d-parted-function}
|
||||
\caption{Training- and test error by number of trained epochs for different
|
||||
topologies with. The plot shows
|
||||
that all pretrained systems performed much better than the systems
|
||||
without pretraining. All plotted systems did not improve
|
||||
with more epochs of training.}
|
||||
\label{fig:training-and-test-error-for-different-topologies-pretraining}
|
||||
\end{figure}
|
||||
|
||||
Suspendisse nec scelerisque lectus. Nam id arcu sapien. Phasellus id pharetra metus, et ultricies elit. Proin ultricies sodales nibh, ac ultricies arcu. Nullam lacinia urna tempus lectus tempus porttitor. Praesent malesuada dapibus purus id aliquet. Cras eleifend vestibulum nunc, nec luctus augue dapibus id. Duis dapibus massa id luctus commodo. Sed ornare erat vitae condimentum commodo. Integer bibendum odio id auctor condimentum. Praesent aliquet justo nec lacus convallis sagittis. Aliquam eget orci lacus. Vestibulum orci tortor, posuere a dui nec, ultrices elementum orci. Phasellus felis eros, iaculis dictum ipsum eget, bibendum placerat arcu.
|
||||
|
||||
Sed vel purus elit. Aenean ornare ex vitae lectus malesuada, id blandit nisl tempor. Donec pulvinar interdum risus a fermentum. Mauris luctus tempor nunc. Cras viverra semper libero, in lobortis sapien ultrices lobortis. Suspendisse ac tempus sem. Suspendisse potenti. Suspendisse malesuada porta ligula eget maximus. Fusce facilisis accumsan diam, vel blandit turpis placerat in.
|
26
documents/pdfa-paper/figures/2d-parted-function.tex
Normal file
26
documents/pdfa-paper/figures/2d-parted-function.tex
Normal file
|
@ -0,0 +1,26 @@
|
|||
\begin{tikzpicture}
|
||||
\begin{axis}[
|
||||
legend pos=south west,
|
||||
axis x line=middle,
|
||||
axis y line=middle,
|
||||
grid = major,
|
||||
grid style={dashed, gray!30},
|
||||
xmin=-1, % start the diagram at this x-coordinate
|
||||
xmax= 6, % end the diagram at this x-coordinate
|
||||
ymin=-0.25, % start the diagram at this y-coordinate
|
||||
ymax= 2.25, % end the diagram at this y-coordinate
|
||||
axis background/.style={fill=white},
|
||||
xlabel=$x$,
|
||||
ylabel=$y$,
|
||||
tick align=outside,
|
||||
minor tick num=-3,
|
||||
enlargelimits=true,
|
||||
tension=0.08]
|
||||
\addplot[domain=0:1, red, thick,samples=20] {0.5*x*x};
|
||||
\addplot[domain=1:2, green, thick,samples=20] {x-0.5};
|
||||
\addplot[domain=2:3, blue, thick,samples=500] {-0.5*(x-2)*(x-2)+x-0.5};
|
||||
\addplot[domain=3:5, purple, thick,samples=20] {5-x};
|
||||
\addplot[domain=5:7, orange, thick,samples=3] {0};
|
||||
\addplot[domain=-3:0, orange, thick,samples=3] {0};
|
||||
\end{axis}
|
||||
\end{tikzpicture}
|
55
documents/pdfa-paper/pdfa-paper.tex
Normal file
55
documents/pdfa-paper/pdfa-paper.tex
Normal file
|
@ -0,0 +1,55 @@
|
|||
\documentclass[9pt,technote,a4paper]{IEEEtran}
|
||||
\usepackage{amssymb, amsmath} % needed for math
|
||||
|
||||
\usepackage[a-1b]{pdfx}
|
||||
\usepackage{filecontents}
|
||||
\usepackage{xmpincl}
|
||||
|
||||
\providecommand{\xmpProducer}{LaTeX2e}
|
||||
\providecommand{\xmpOrg}{An organization}
|
||||
|
||||
\begin{filecontents*}{\jobname.xmpdata}
|
||||
\Keywords{recognition; pdf/a}
|
||||
\Title{A very interesting title}
|
||||
\Author{Martin Thoma}
|
||||
\Org{Institute for Anthropomatics and Robotics}
|
||||
\Doi{123456789}
|
||||
\end{filecontents*}
|
||||
|
||||
\usepackage{xmpincl}
|
||||
|
||||
\providecommand{\xmpPublisher}{Random}
|
||||
\providecommand{\xmpOrg}{An organization}
|
||||
|
||||
\RequirePackage{ifpdf}
|
||||
\ifpdf \PassOptionsToPackage{pdfpagelabels}{hyperref} \fi
|
||||
\RequirePackage{hyperref}
|
||||
\usepackage[pdftex,final]{graphicx}
|
||||
|
||||
\usepackage{pgfplots}
|
||||
\pgfplotsset{compat=newest}
|
||||
\usepackage{tikz}
|
||||
|
||||
|
||||
\title{A very interesting title}
|
||||
\author{Martin Thoma}
|
||||
|
||||
\hypersetup{
|
||||
pdfauthor = {Martin Thoma},
|
||||
pdfkeywords = {recognition; pdf/a},
|
||||
pdftitle = {A very interesting title},
|
||||
pdflang={en},
|
||||
}
|
||||
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
% Begin document %
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\begin{abstract}
|
||||
adsfadsf adsfasdf
|
||||
\end{abstract}
|
||||
|
||||
\input{ch1-introduction}
|
||||
|
||||
\end{document}
|
BIN
documents/pdfa-paper/sRGBIEC1966-2.1.icm
Normal file
BIN
documents/pdfa-paper/sRGBIEC1966-2.1.icm
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue