Projekt

Allgemein

Profil

XMP Meta Data » Historie » Version 6

Patrick Schulz, 21.03.2025 10:35

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 5 Patrick Schulz
18 3 Patrick Schulz
h3. for PDF/X-3:2003
19
20
* ***"":***
21 1 Patrick Schulz
22 5 Patrick Schulz
h2. Meta Data Tags
23 1 Patrick Schulz
24 2 Patrick Schulz
h3. Author
25 1 Patrick Schulz
26
is a list of the document's main authors or edtiors, one per line:
27
<pre><code class="xml">
28
<dc:creator>
29
  <rdf:Seq>
30
    <rdf:li>Firstname Lastname</rdf:li>
31
    <rdf:li>Firstname Lastname</rdf:li>
32
    ...
33
  </rdf:Seq>
34
</dc:creator>
35
</code></pre>
36
37 2 Patrick Schulz
h3. Document Title
38 1 Patrick Schulz
39
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
40
41
<pre><code class="xml">
42
<dc:title>
43
  <rdf:Alt>
44
    <rdf:li xml:lang="x-default">Default title</rdf:li>
45
  </rdf:Alt>
46
</dc:title>
47
</code></pre>
48
49 2 Patrick Schulz
h3. Publisher
50 1 Patrick Schulz
51
<pre><code class="xml">
52
<dc:publisher>
53
  <rdf:Bag>
54
    <rdf:li>Publisher Name</rdf:li>
55
  </rdf:Bag>
56
</dc:publisher>
57
</code></pre>
58
59 2 Patrick Schulz
h3. Chapter authors/Contributors
60 1 Patrick Schulz
61
<pre><code class="xml">
62
<dc:contributor>
63
  <rdf:Bag>
64
    <rdf:li>Firstname Lastname</rdf:li>
65
    <rdf:li>Firstname Midname Lastname</rdf:li>
66
    ...
67
  </rdf:Bag>
68
</dc:contributor>
69
</code></pre>
70
71 2 Patrick Schulz
h3. Abstract
72 1 Patrick Schulz
73
Like @dc:title@, @dc:description@ allows multiple entries for different languages.
74
75
<pre><code class="xml">
76
<dc:description>
77
  <rdf:Alt>
78
    <rdf:li xml:lang="x-default">...</rdf:li>
79
  </rdf:Alt>
80
</dc:description>
81
</code></pre>
82
83 2 Patrick Schulz
h3. Keywords
84 1 Patrick Schulz
85
<pre><code class="xml">
86
<dc:subject>
87
  <rdf:Bag>
88
    <rdf:li>keyword 1</rdf:li>
89
    <rdf:li>keyword 2</rdf:li>
90
    ....
91
  </rdf:Bag>
92
</dc:subject>
93
</code></pre>
94
95
96 2 Patrick Schulz
h3. Copyright
97 1 Patrick Schulz
98
<pre><code class="xml">
99
<dc:rights>
100
  <rdf:Alt>
101
    <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>
102
  </rdf:Alt>
103
</dc:rights>
104
</code></pre>
105
106 2 Patrick Schulz
h3. Other
107 1 Patrick Schulz
108
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.
109
110
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.