Projekt

Allgemein

Profil

XMP Meta Data » Historie » Version 9

Patrick Schulz, 07.05.2025 13:59

1 1 Patrick Schulz
h1. XMP Meta Data
2
3 5 Patrick Schulz
Some PDF standards require an embedded XMP meta data file. CoCoTeX provides two ways to do that: If the TeX run does not find a xmp file that has the same basename as the .tex document, it generates one from the data in the @tpMeta@ environment. If there is a @.xmp@ file (either because it was there from the beginning, or it was generated during a previous tex run), it includes that one. If the xmp file is to be generated by the converter, make sure to use either one of the the attached templates (see below) and include the document specific meta data in place of the comment <pre><!-- INSERT METADATA HERE AND REMOVE COMMENT --></pre>.
4 1 Patrick Schulz
5 5 Patrick Schulz
***Important: Don't remove anything in that template, especially not the PIs at the beginning and end, and the blank spaces at the bottom of the template!***
6 3 Patrick Schulz
7 5 Patrick Schulz
Also be cautious where to use @rdf:Bag@, @rdf:Alt@ and @rdf:Seq@!
8 3 Patrick Schulz
9 6 Patrick Schulz
The available XML tags for meta data are described below in the [[XMP_Meta_Data#Meta-Data-Tags|Section "Meta Data Tags"]]
10 1 Patrick Schulz
11 5 Patrick Schulz
h2. XMP Templates
12 1 Patrick Schulz
13 5 Patrick Schulz
h3. PDF/UA-1
14 1 Patrick Schulz
15 5 Patrick Schulz
* ***"template-ua.xmp":https://redmine.le-tex.de/attachments/30479***
16 1 Patrick Schulz
17 9 Patrick Schulz
h3. PDF/A-2a
18
19
* ***"template-a2a.xmp":https://redmine.le-tex.de/attachments/30479***
20
21 3 Patrick Schulz
h3. for PDF/X-3:2003
22
23 8 Patrick Schulz
* ***"tempate-x.xmp":https://redmine.le-tex.de/attachments/30481***
24 1 Patrick Schulz
25 5 Patrick Schulz
h2. Meta Data Tags
26 1 Patrick Schulz
27 2 Patrick Schulz
h3. Author
28 1 Patrick Schulz
29
is a list of the document's main authors or edtiors, one per line:
30
<pre><code class="xml">
31
<dc:creator>
32
  <rdf:Seq>
33
    <rdf:li>Firstname Lastname</rdf:li>
34
    <rdf:li>Firstname Lastname</rdf:li>
35
    ...
36
  </rdf:Seq>
37
</dc:creator>
38
</code></pre>
39
40 2 Patrick Schulz
h3. Document Title
41 1 Patrick Schulz
42
There can be more than one document title for various languages. The displayed title (e.g. in the pdf viewer window's top line) depends on the selected system language
43
44
<pre><code class="xml">
45
<dc:title>
46
  <rdf:Alt>
47
    <rdf:li xml:lang="x-default">Default title</rdf:li>
48
  </rdf:Alt>
49
</dc:title>
50
</code></pre>
51
52 2 Patrick Schulz
h3. Publisher
53 1 Patrick Schulz
54
<pre><code class="xml">
55
<dc:publisher>
56
  <rdf:Bag>
57
    <rdf:li>Publisher Name</rdf:li>
58
  </rdf:Bag>
59
</dc:publisher>
60
</code></pre>
61
62 2 Patrick Schulz
h3. Chapter authors/Contributors
63 1 Patrick Schulz
64
<pre><code class="xml">
65
<dc:contributor>
66
  <rdf:Bag>
67
    <rdf:li>Firstname Lastname</rdf:li>
68
    <rdf:li>Firstname Midname Lastname</rdf:li>
69
    ...
70
  </rdf:Bag>
71
</dc:contributor>
72
</code></pre>
73
74 2 Patrick Schulz
h3. Abstract
75 1 Patrick Schulz
76
Like @dc:title@, @dc:description@ allows multiple entries for different languages.
77
78
<pre><code class="xml">
79
<dc:description>
80
  <rdf:Alt>
81
    <rdf:li xml:lang="x-default">...</rdf:li>
82
  </rdf:Alt>
83
</dc:description>
84
</code></pre>
85
86 2 Patrick Schulz
h3. Keywords
87 1 Patrick Schulz
88
<pre><code class="xml">
89
<dc:subject>
90
  <rdf:Bag>
91
    <rdf:li>keyword 1</rdf:li>
92
    <rdf:li>keyword 2</rdf:li>
93
    ....
94
  </rdf:Bag>
95
</dc:subject>
96
</code></pre>
97
98
99 2 Patrick Schulz
h3. Copyright
100 1 Patrick Schulz
101
<pre><code class="xml">
102
<dc:rights>
103
  <rdf:Alt>
104
    <rdf:li xml:lang="x-default">Unless otherwise indicated, this work is licensed under a Creative Commons License Attribution 4.0 International. This does not apply to quoted content and works based on other permissions.</rdf:li>
105
  </rdf:Alt>
106
</dc:rights>
107
</code></pre>
108
109 2 Patrick Schulz
h3. Other
110 1 Patrick Schulz
111
If you must, you can _alter_ the values of @<pdf:Producer>@ and @<xmp:CreatorTool>@, where @pdf:Producer@ is the tool that generated the PDF, and @xmp:CreatorTool@ is the Tool with which the original manuscript was created prior to any conversions or transformations.
112
113
The values of @xmp:ModifyDate@ and @xmp:CreateDate@ are generated and overwritten during the tex run by the ltpdfa package, so you can leave those fields as they are.