Skip to content

Commit

Permalink
add hyperxmp test
Browse files Browse the repository at this point in the history
  • Loading branch information
xworld21 committed Jun 1, 2024
1 parent 674f569 commit 78509b7
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 0 deletions.
Binary file added t/complex/hyperxmp.pdf
Binary file not shown.
64 changes: 64 additions & 0 deletions t/complex/hyperxmp.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
% example copied from hyperxmp with minor modifications
\pdfobjcompresslevel=0 % added to easily inspect the XMP packet
\documentclass[british]{article} % added british to test pdflang and pdfmetalang
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage[unicode]{hyperref}
\usepackage{hyperxmp}
%
\title{%
On a heuristic viewpoint concerning the production and
transformation of light}
\author{Albert Einstein}
\date{March 17, 1905}
%
\hypersetup{%
pdfmetalang={en-AU}, % added to test pdfmetalang
pdftitle={%
On a heuristic viewpoint concerning the production and
transformation of light},
pdfsubtitle={[en-US]Putting that bum Maxwell in his place},
pdfauthor={Albert Einstein},
pdfauthortitle={\xmpquote{Technical Assistant\xmpcomma\ Level III}},
pdfdate={1905-03-17},
pdfcopyright={Copyright (C) 1905, Albert Einstein},
pdfsubject={photoelectric effect},
pdfkeywords={energy quanta, Hertz effect, quantum physics},
pdflicenseurl={http://creativecommons.org/licenses/by-nc-nd/3.0/},
pdfcaptionwriter={Scott Pakin},
pdfcontactaddress={Kramgasse 49},
pdfcontactcity={Bern},
pdfcontactpostcode={3011},
pdfcontactcountry={Switzerland},
pdfcontactphone={031 312 00 91},
pdfcontactemail={aeinstein@ipi.ch},
pdfcontacturl={%
http://einstein.biz/,
https://www.facebook.com/AlbertEinstein
},
pdfdocumentid={uuid:6d1ac9ec-4ff2-515a-954b-648eeb4853b0},
pdfversionid={2.998e8},
pdfpublication={[de]Annalen der Physik},
pdfpublisher={Wiley-VCH},
pdfpubtype={journal},
pdfvolumenum={322},
pdfissuenum={6},
pdfpagerange={132-148},
pdfissn={0003-3804},
pdfeissn={1521-3889},
pdfpubstatus={VoR},
pdflang={en-GB},
pdfurl={http://www.physik.uni-augsburg.de/annalen/history/einstein-papers/1905_17_132-148.pdf},
pdfdoi={10.1002/andp.19053220607},
pdfidentifier={info:lccn/50013519}
}
\XMPLangAlt{de}{pdftitle={Über einen die Erzeugung und Verwandlung des
Lichtes betreffenden heuristischen Gesichtspunkt}}
%
\begin{document}
\maketitle
A profound formal difference exists between the theoretical
concepts that physicists have formed about gases and other
ponderable bodies, and Maxwell's theory of electromagnetic
processes in so-called empty space\dots
\end{document}
43 changes: 43 additions & 0 deletions t/complex/hyperxmp.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<?latexml class="article" options="british"?>
<?latexml package="inputenc" options="utf8"?>
<?latexml package="babel"?>
<?latexml package="hyperref" options="unicode"?>
<?latexml package="hyperxmp"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<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">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-article.css" type="text/css"/>
<title>On a heuristic viewpoint concerning the production and
transformation of light</title>
<creator role="author">
<personname>Albert Einstein</personname>
</creator>
<date role="creation">March 17, 1905</date>
<para xml:id="p1">
<p>A profound formal difference exists between the theoretical
concepts that physicists have formed about gases and other
ponderable bodies, and Maxwell’s theory of electromagnetic
processes in so-called empty space…</p>
</para>
<rdf about="" content="Albert Einstein" property="dcterms:creator"/>
<rdf about="" content="Copyright (C) 1905, Albert Einstein" property="dcterms:rights" xml:lang="en-AU"/>
<rdf about="" content="1905-03-17" property="dcterms:date"/>
<rdf about="" content="10.1002/andp.19053220607" property="prism:doi"/>
<rdf about="" content="1521-3889" property="prism:eIssn"/>
<rdf about="" content="info:lccn/50013519" property="dcterms:identifier"/>
<rdf about="" content="0003-3804" property="prism:issn"/>
<rdf about="" content="6" property="prism:number"/>
<rdf about="" content="energy quanta, Hertz effect, quantum physics" property="dcterms:subject"/>
<rdf about="" content="en-GB" property="dcterms:language"/>
<rdf about="" property="cc:licence" resource="http://creativecommons.org/licenses/by-nc-nd/3.0/"/>
<rdf about="" content="132-148" property="prism:pageRange"/>
<rdf about="" content="Annalen der Physik" property="prism:publicationName" xml:lang="de"/>
<rdf about="" content="Wiley-VCH" property="dcterms:publisher"/>
<rdf about="" content="journal" property="prism:aggregationType"/>
<rdf about="" content="photoelectric effect" property="dcterms:description" xml:lang="en-AU"/>
<rdf about="" content="Putting that bum Maxwell in his place" property="prism:subtitle" xml:lang="en-US"/>
<rdf about="" content="On a heuristic viewpoint concerning the production and&#10;transformation of light" property="dcterms:title" xml:lang="en-AU"/>
<rdf about="" content="http://www.physik.uni-augsburg.de/annalen/history/einstein-papers/1905_17_132-148.pdf" property="prism:url"/>
<rdf about="" content="322" property="prism:volume"/>
</document>

0 comments on commit 78509b7

Please sign in to comment.