XMP Meta Data » Historie » Version 2
Patrick Schulz, 21.03.2025 10:28
1 | 1 | Patrick Schulz | h1. XMP Meta Data |
---|---|---|---|
2 | |||
3 | * ***"Template.xmp":https://redmine.le-tex.de/attachments/27865*** |
||
4 | |||
5 | PDF/UA requires meta data to be embedded into the PDF 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 the "attached template.xmp":https://redmine.le-tex.de/attachments/27865 (see below) and include the document specific meta data in line 24 instead of the comment. |
||
6 | |||
7 | ***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!*** |
||
8 | |||
9 | Also be cautious where to use @rdf:Bag@, @rdf:Alt@ and @rdf:Seq@! |
||
10 | |||
11 | Use the following XML tags for meta data: |
||
12 | |||
13 | 2 | Patrick Schulz | h2. Meta Data to fill in |
14 | 1 | Patrick Schulz | |
15 | 2 | Patrick Schulz | h3. Author |
16 | 1 | Patrick Schulz | |
17 | is a list of the document's main authors or edtiors, one per line: |
||
18 | <pre><code class="xml"> |
||
19 | <dc:creator> |
||
20 | <rdf:Seq> |
||
21 | <rdf:li>Firstname Lastname</rdf:li> |
||
22 | <rdf:li>Firstname Lastname</rdf:li> |
||
23 | ... |
||
24 | </rdf:Seq> |
||
25 | </dc:creator> |
||
26 | </code></pre> |
||
27 | |||
28 | 2 | Patrick Schulz | h3. Document Title |
29 | 1 | Patrick Schulz | |
30 | 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 |
||
31 | |||
32 | <pre><code class="xml"> |
||
33 | <dc:title> |
||
34 | <rdf:Alt> |
||
35 | <rdf:li xml:lang="x-default">Default title</rdf:li> |
||
36 | </rdf:Alt> |
||
37 | </dc:title> |
||
38 | </code></pre> |
||
39 | |||
40 | 2 | Patrick Schulz | h3. Publisher |
41 | 1 | Patrick Schulz | |
42 | <pre><code class="xml"> |
||
43 | <dc:publisher> |
||
44 | <rdf:Bag> |
||
45 | <rdf:li>Publisher Name</rdf:li> |
||
46 | </rdf:Bag> |
||
47 | </dc:publisher> |
||
48 | </code></pre> |
||
49 | |||
50 | 2 | Patrick Schulz | h3. Chapter authors/Contributors |
51 | 1 | Patrick Schulz | |
52 | <pre><code class="xml"> |
||
53 | <dc:contributor> |
||
54 | <rdf:Bag> |
||
55 | <rdf:li>Firstname Lastname</rdf:li> |
||
56 | <rdf:li>Firstname Midname Lastname</rdf:li> |
||
57 | ... |
||
58 | </rdf:Bag> |
||
59 | </dc:contributor> |
||
60 | </code></pre> |
||
61 | |||
62 | 2 | Patrick Schulz | h3. Abstract |
63 | 1 | Patrick Schulz | |
64 | Like @dc:title@, @dc:description@ allows multiple entries for different languages. |
||
65 | |||
66 | <pre><code class="xml"> |
||
67 | <dc:description> |
||
68 | <rdf:Alt> |
||
69 | <rdf:li xml:lang="x-default">...</rdf:li> |
||
70 | </rdf:Alt> |
||
71 | </dc:description> |
||
72 | </code></pre> |
||
73 | |||
74 | 2 | Patrick Schulz | h3. Keywords |
75 | 1 | Patrick Schulz | |
76 | <pre><code class="xml"> |
||
77 | <dc:subject> |
||
78 | <rdf:Bag> |
||
79 | <rdf:li>keyword 1</rdf:li> |
||
80 | <rdf:li>keyword 2</rdf:li> |
||
81 | .... |
||
82 | </rdf:Bag> |
||
83 | </dc:subject> |
||
84 | </code></pre> |
||
85 | |||
86 | |||
87 | 2 | Patrick Schulz | h3. Copyright |
88 | 1 | Patrick Schulz | |
89 | <pre><code class="xml"> |
||
90 | <dc:rights> |
||
91 | <rdf:Alt> |
||
92 | <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> |
||
93 | </rdf:Alt> |
||
94 | </dc:rights> |
||
95 | </code></pre> |
||
96 | |||
97 | 2 | Patrick Schulz | h3. Other |
98 | 1 | Patrick Schulz | |
99 | 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. |
||
100 | |||
101 | 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. |