Skip to content

Commit 4fa0606

Browse files
committed
add hyperxmp test
1 parent 370c4a0 commit 4fa0606

File tree

5 files changed

+112
-1
lines changed

5 files changed

+112
-1
lines changed

MANIFEST

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,9 @@ t/complex/hyperchars.xml
10051005
t/complex/hypertest.pdf
10061006
t/complex/hypertest.tex
10071007
t/complex/hypertest.xml
1008+
t/complex/hyperxmp.pdf
1009+
t/complex/hyperxmp.tex
1010+
t/complex/hyperxmp.xml
10081011
t/complex/labelled.pdf
10091012
t/complex/labelled.tex
10101013
t/complex/labelled.xml

t/80_complex.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ latexml_tests("t/complex",
99
cleveref_minimal => 'cleveref.sty',
1010
figure_dual_caption => {packages => 'graphicx.sty', texlive_min => 2021},
1111
figure_mixed_content => {
12-
packages => ['algorithm.sty','algorithmic.sty','graphicx.sty','ifthen.sty','keyval.sty'],
12+
packages => ['algorithm.sty','algorithmic.sty','graphicx.sty','ifthen.sty','keyval.sty'],
1313
texlive_min => 2021},
14+
hyperxmp => 'babel.sty',
1415
si => {
1516
env=>'CI', # only runs in continuous integration
1617
packages => 'siunitx.sty', texlive_min => 2015 } });

t/complex/hyperxmp.pdf

64.8 KB
Binary file not shown.

t/complex/hyperxmp.tex

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
% example copied from hyperxmp with minor modifications
2+
\pdfobjcompresslevel=0 % added to easily inspect the XMP packet
3+
\documentclass[british]{article} % added british to test pdflang and pdfmetalang
4+
\usepackage[utf8]{inputenc}
5+
\usepackage{babel}
6+
\usepackage[unicode]{hyperref}
7+
\usepackage{hyperxmp}
8+
%
9+
\title{%
10+
On a heuristic viewpoint concerning the production and
11+
transformation of light}
12+
\author{Albert Einstein}
13+
\date{March 17, 1905}
14+
%
15+
\hypersetup{%
16+
pdfmetalang={en-AU}, % added to test pdfmetalang
17+
pdftitle={%
18+
On a heuristic viewpoint concerning the production and
19+
transformation of light},
20+
pdfsubtitle={[en-US]Putting that bum Maxwell in his place},
21+
pdfauthor={Albert Einstein},
22+
pdfauthortitle={\xmpquote{Technical Assistant\xmpcomma\ Level III}},
23+
pdfdate={1905-03-17},
24+
pdfcopyright={Copyright (C) 1905, Albert Einstein},
25+
pdfsubject={photoelectric effect},
26+
pdfkeywords={energy quanta, Hertz effect, quantum physics},
27+
pdflicenseurl={http://creativecommons.org/licenses/by-nc-nd/3.0/},
28+
pdfcaptionwriter={Scott Pakin},
29+
pdfcontactaddress={Kramgasse 49},
30+
pdfcontactcity={Bern},
31+
pdfcontactpostcode={3011},
32+
pdfcontactcountry={Switzerland},
33+
pdfcontactphone={031 312 00 91},
34+
pdfcontactemail={aeinstein@ipi.ch},
35+
pdfcontacturl={%
36+
http://einstein.biz/,
37+
https://www.facebook.com/AlbertEinstein
38+
},
39+
pdfdocumentid={uuid:6d1ac9ec-4ff2-515a-954b-648eeb4853b0},
40+
pdfversionid={2.998e8},
41+
pdfpublication={[de]Annalen der Physik},
42+
pdfpublisher={Wiley-VCH},
43+
pdfpubtype={journal},
44+
pdfvolumenum={322},
45+
pdfissuenum={6},
46+
pdfpagerange={132-148},
47+
pdfissn={0003-3804},
48+
pdfeissn={1521-3889},
49+
pdfpubstatus={VoR},
50+
pdflang={en-GB},
51+
pdfurl={http://www.physik.uni-augsburg.de/annalen/history/einstein-papers/1905_17_132-148.pdf},
52+
pdfdoi={10.1002/andp.19053220607},
53+
pdfidentifier={info:lccn/50013519}
54+
}
55+
\XMPLangAlt{de}{pdftitle={Über einen die Erzeugung und Verwandlung des
56+
Lichtes betreffenden heuristischen Gesichtspunkt}}
57+
%
58+
\begin{document}
59+
\maketitle
60+
A profound formal difference exists between the theoretical
61+
concepts that physicists have formed about gases and other
62+
ponderable bodies, and Maxwell's theory of electromagnetic
63+
processes in so-called empty space\dots
64+
\end{document}

t/complex/hyperxmp.xml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<?latexml class="article" options="british"?>
3+
<?latexml package="inputenc" options="utf8"?>
4+
<?latexml package="babel"?>
5+
<?latexml package="hyperref" options="unicode"?>
6+
<?latexml package="hyperxmp"?>
7+
<?latexml RelaxNGSchema="LaTeXML"?>
8+
<document xmlns="http://dlmf.nist.gov/LaTeXML" class="ltx_authors_1line" prefix="cc: http://creativecommons.org/ns# dcterms: http://purl.org/dc/terms/ prism: http://prismstandard.org/namespaces/basic/3.0/" xml:lang="en-GB">
9+
<resource src="LaTeXML.css" type="text/css"/>
10+
<resource src="ltx-article.css" type="text/css"/>
11+
<title>On a heuristic viewpoint concerning the production and
12+
transformation of light</title>
13+
<creator role="author">
14+
<personname>Albert Einstein</personname>
15+
</creator>
16+
<date role="creation">March 17, 1905</date>
17+
<para xml:id="p1">
18+
<p>A profound formal difference exists between the theoretical
19+
concepts that physicists have formed about gases and other
20+
ponderable bodies, and Maxwell’s theory of electromagnetic
21+
processes in so-called empty space…</p>
22+
</para>
23+
<rdf about="" content="Albert Einstein" property="dcterms:creator"/>
24+
<rdf about="" content="Copyright (C) 1905, Albert Einstein" property="dcterms:rights" xml:lang="en-AU"/>
25+
<rdf about="" content="1905-03-17" property="dcterms:date"/>
26+
<rdf about="" content="10.1002/andp.19053220607" property="prism:doi"/>
27+
<rdf about="" content="1521-3889" property="prism:eIssn"/>
28+
<rdf about="" content="info:lccn/50013519" property="dcterms:identifier"/>
29+
<rdf about="" content="0003-3804" property="prism:issn"/>
30+
<rdf about="" content="6" property="prism:number"/>
31+
<rdf about="" content="energy quanta, Hertz effect, quantum physics" property="dcterms:subject"/>
32+
<rdf about="" content="en-GB" property="dcterms:language"/>
33+
<rdf about="" property="cc:licence" resource="http://creativecommons.org/licenses/by-nc-nd/3.0/"/>
34+
<rdf about="" content="132-148" property="prism:pageRange"/>
35+
<rdf about="" content="Annalen der Physik" property="prism:publicationName" xml:lang="de"/>
36+
<rdf about="" content="Wiley-VCH" property="dcterms:publisher"/>
37+
<rdf about="" content="journal" property="prism:aggregationType"/>
38+
<rdf about="" content="photoelectric effect" property="dcterms:description" xml:lang="en-AU"/>
39+
<rdf about="" content="Putting that bum Maxwell in his place" property="prism:subtitle" xml:lang="en-US"/>
40+
<rdf about="" content="On a heuristic viewpoint concerning the production and&#10;transformation of light" property="dcterms:title" xml:lang="en-AU"/>
41+
<rdf about="" content="http://www.physik.uni-augsburg.de/annalen/history/einstein-papers/1905_17_132-148.pdf" property="prism:url"/>
42+
<rdf about="" content="322" property="prism:volume"/>
43+
</document>

0 commit comments

Comments
 (0)