Skip to content

Commit

Permalink
add orcidlink test
Browse files Browse the repository at this point in the history
  • Loading branch information
xworld21 committed Aug 17, 2024
1 parent 14173fe commit d8a91bc
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 1 deletion.
3 changes: 3 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -1388,6 +1388,9 @@ t/graphics/graphrot.pdf
t/graphics/graphrot.tex
t/graphics/graphrot.xml
t/graphics/none.png
t/graphics/orcidlink.pdf
t/graphics/orcidlink.tex
t/graphics/orcidlink.xml
t/graphics/picture.pdf
t/graphics/picture.tex
t/graphics/picture.xml
Expand Down
3 changes: 2 additions & 1 deletion t/65_graphics.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ use LaTeXML::Util::Test;

latexml_tests("t/graphics",
requires=>{colors=>'dvipsnam.def',
xcolors=>'dvipsnam.def'});
xcolors=>'dvipsnam.def',
orcidlink=>'orcidlink.sty'});
Binary file added t/graphics/orcidlink.pdf
Binary file not shown.
9 changes: 9 additions & 0 deletions t/graphics/orcidlink.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
\documentclass{article}
\usepackage[colorlinks]{hyperref}
\usepackage{orcidlink}
\author{Emmy Noether\,\orcidlink{0000-0000-0000-0000}}
\date{1 January 1980}
\begin{document}
\maketitle
Example: \orcidlink{0000-0001-7559-9597}.
\end{document}
36 changes: 36 additions & 0 deletions t/graphics/orcidlink.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<?latexml searchpaths="/Users/xworld21/Documents/Workspace/TeX/LaTeXML,/Users/xworld21/Documents/Workspace/TeX/LaTeXML/t/graphics"?>
<?latexml class="article"?>
<?latexml package="hyperref" options="colorlinks"?>
<?latexml package="orcidlink"?>
<?latexml RelaxNGSchema="LaTeXML"?>
<document xmlns="http://dlmf.nist.gov/LaTeXML" xmlns:svg="http://www.w3.org/2000/svg" class="ltx_authors_1line">
<resource src="LaTeXML.css" type="text/css"/>
<resource src="ltx-article.css" type="text/css"/>
<resource src="ltx-orcidlink.css" type="text/css"/>
<creator role="author">
<personname>Emmy Noether <ref class="ltx_href" href="https://orcid.org/0000-0000-0000-0000"> <picture class="ltx_orcidlogo" height="16.6" tex="\hbox to12pt{\vbox to12pt{\pgfpicture\makeatletter\hbox{\hskip 0.0pt\lower-12.%&#10;0pt\hbox to0.0pt{\pgfsys@beginscope\pgfsys@invoke{ }\definecolor{%&#10;pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }%&#10;\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\pgfsys@setlinewidth{0.4pt}%&#10;\pgfsys@invoke{ }\ignorespaces\nullfont\hbox to0.0pt{\pgfsys@beginscope%&#10;\pgfsys@invoke{ }{{\ignorespaces}}{{\ignorespaces}}&#10;{{}}&#10;\ignorespaces\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }%&#10;\pgfsys@beginscope\pgfsys@invoke{ }&#10;{{{{}}}{}{{}{}}{{}{}}{{}{}}{{}{}}{}{}{}{}{}{}{}{}{}}{&#10;{{}}&#10;}&#10;\pgfsys@beginscope\pgfsys@invoke{ }\color[rgb]{%&#10;0.65234375,0.80859375,0.22265625}\definecolor[named]{pgffillcolor}{rgb}{%&#10;0.65234375,0.80859375,0.22265625}\pgfsys@moveto{12.0pt}{-6.0pt}\pgfsys@curveto%&#10;{12.0pt}{-9.31406pt}{9.31406pt}{-12.0pt}{6.0pt}{-12.0pt}\pgfsys@curveto{2.6859%&#10;3pt}{-12.0pt}{0.0pt}{-9.31406pt}{0.0pt}{-6.0pt}\pgfsys@curveto{0.0pt}{-2.68593%&#10;pt}{2.68593pt}{0.0pt}{6.0pt}{0.0pt}\pgfsys@curveto{9.31406pt}{0.0pt}{12.0pt}{-%&#10;2.68593pt}{12.0pt}{-6.0pt}\pgfsys@closepath\pgfsys@fill\pgfsys@invoke{ }%&#10;\ignorespaces&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope&#10;{{{{}}}{}{}{}{}{}{}}{&#10;{{}}&#10;}&#10;{{{{}}}{}{}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{}{}{}{}{{}{}}{{}{}%&#10;}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{}{}}{&#10;{{}}&#10;}&#10;{{{{}}}{}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}%&#10;{}}{}{}{}}{&#10;{{}}&#10;}&#10;\pgfsys@beginscope\pgfsys@invoke{ }\color[rgb]{1,1,1}\definecolor[named]{%&#10;pgffillcolor}{rgb}{1,1,1}\pgfsys@moveto{4.0453pt}{-8.72812pt}\pgfsys@lineto{3.%&#10;32343pt}{-8.72812pt}\pgfsys@lineto{3.32343pt}{-3.70781pt}\pgfsys@lineto{4.0453%&#10;pt}{-3.70781pt}\pgfsys@lineto{4.0453pt}{-5.97656pt}\pgfsys@lineto{4.0453pt}{-8%&#10;.72812pt}\pgfsys@closepath\pgfsys@moveto{5.10468pt}{-3.70781pt}\pgfsys@lineto{%&#10;7.05469pt}{-3.70781pt}\pgfsys@curveto{8.91093pt}{-3.70781pt}{9.72656pt}{-5.034%&#10;36pt}{9.72656pt}{-6.2203pt}\pgfsys@curveto{9.72656pt}{-7.50937pt}{8.71875pt}{-%&#10;8.7328pt}{7.06406pt}{-8.7328pt}\pgfsys@lineto{5.10468pt}{-8.7328pt}%&#10;\pgfsys@lineto{5.10468pt}{-3.70781pt}\pgfsys@closepath\pgfsys@moveto{5.82655pt%&#10;}{-8.08124pt}\pgfsys@lineto{6.97499pt}{-8.08124pt}\pgfsys@curveto{8.61093pt}{-%&#10;8.08124pt}{8.98593pt}{-6.83905pt}{8.98593pt}{-6.2203pt}\pgfsys@curveto{8.98593%&#10;pt}{-5.2125pt}{8.34375pt}{-4.35938pt}{6.9375pt}{-4.35938pt}\pgfsys@lineto{5.82%&#10;655pt}{-4.35938pt}\pgfsys@lineto{5.82655pt}{-8.08124pt}\pgfsys@closepath%&#10;\pgfsys@moveto{4.1578pt}{-2.66249pt}\pgfsys@curveto{4.1578pt}{-2.9203pt}{3.946%&#10;87pt}{-3.13593pt}{3.68437pt}{-3.13593pt}\pgfsys@curveto{3.42186pt}{-3.13593pt}%&#10;{3.21092pt}{-2.9203pt}{3.21092pt}{-2.66249pt}\pgfsys@curveto{3.21092pt}{-2.4pt%&#10;}{3.42186pt}{-2.18906pt}{3.68437pt}{-2.18906pt}\pgfsys@curveto{3.94687pt}{-2.1%&#10;8906pt}{4.1578pt}{-2.40468pt}{4.1578pt}{-2.66249pt}\pgfsys@closepath%&#10;\pgfsys@fill\pgfsys@invoke{ }\ignorespaces&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope\pgfsys@invoke{%&#10;\lxSVG@closescope }\pgfsys@endscope}}}&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{\ignorespaces}{%&#10;\ignorespaces}{\ignorespaces}\hss}\pgfsys@discardpath\pgfsys@invoke{%&#10;\lxSVG@closescope }\pgfsys@endscope\hss}}\lxSVG@closescope\endpgfpicture}}" width="16.6" xml:id="pic1">
<svg:svg height="16.6" overflow="visible" version="1.1" width="16.6">
<svg:g fill="#000000" stroke="#000000" stroke-width="0.4pt" transform="translate(0,16.6) matrix(1 0 0 -1 0 0) translate(0,16.6)">
<svg:path d="M 16.6 -8.3 C 16.6 -12.89 12.89 -16.6 8.3 -16.6 C 3.72 -16.6 0 -12.89 0 -8.3 C 0 -3.72 3.72 0 8.3 0 C 12.89 0 16.6 -3.72 16.6 -8.3 Z" style="stroke:none"/>
<svg:path d="M 5.6 -12.08 L 4.6 -12.08 L 4.6 -5.13 L 5.6 -5.13 L 5.6 -8.27 L 5.6 -12.08 Z M 7.06 -5.13 L 9.76 -5.13 C 12.33 -5.13 13.46 -6.97 13.46 -8.61 C 13.46 -10.39 12.06 -12.08 9.77 -12.08 L 7.06 -12.08 L 7.06 -5.13 Z M 8.06 -11.18 L 9.65 -11.18 C 11.91 -11.18 12.43 -9.46 12.43 -8.61 C 12.43 -7.21 11.55 -6.03 9.6 -6.03 L 8.06 -6.03 L 8.06 -11.18 Z M 5.75 -3.68 C 5.75 -4.04 5.46 -4.34 5.1 -4.34 C 4.73 -4.34 4.44 -4.04 4.44 -3.68 C 4.44 -3.32 4.73 -3.03 5.1 -3.03 C 5.46 -3.03 5.75 -3.33 5.75 -3.68 Z" style="stroke:none"/>
</svg:g>
</svg:svg>
</picture></ref></personname>
</creator>
<date role="creation">1 January 1980</date>
<para xml:id="p1">
<p>Example: <ref class="ltx_href" href="https://orcid.org/0000-0001-7559-9597"> <picture class="ltx_orcidlogo" height="16.6" tex="\hbox to12pt{\vbox to12pt{\pgfpicture\makeatletter\hbox{\hskip 0.0pt\lower-12.%&#10;0pt\hbox to0.0pt{\pgfsys@beginscope\pgfsys@invoke{ }\definecolor{%&#10;pgfstrokecolor}{rgb}{0,0,0}\pgfsys@color@rgb@stroke{0}{0}{0}\pgfsys@invoke{ }%&#10;\pgfsys@color@rgb@fill{0}{0}{0}\pgfsys@invoke{ }\pgfsys@setlinewidth{0.4pt}%&#10;\pgfsys@invoke{ }\nullfont\hbox to0.0pt{\pgfsys@beginscope\pgfsys@invoke{ }{{}%&#10;}{{}}&#10;{{}}&#10;\hbox{\hbox{{\pgfsys@beginscope\pgfsys@invoke{ }\pgfsys@beginscope%&#10;\pgfsys@invoke{ }&#10;{{{{}}}{}{{}{}}{{}{}}{{}{}}{{}{}}{}{}{}{}{}{}{}{}{}}{&#10;{{}}&#10;}&#10;\pgfsys@beginscope\pgfsys@invoke{ }\color[rgb]{%&#10;0.65234375,0.80859375,0.22265625}\definecolor[named]{pgfstrokecolor}{rgb}{%&#10;0.65234375,0.80859375,0.22265625}\pgfsys@color@rgb@stroke{0.65234375}{0.808593%&#10;75}{0.22265625}\pgfsys@invoke{ }\pgfsys@color@rgb@fill{0.65234375}{0.80859375}%&#10;{0.22265625}\pgfsys@invoke{ }\definecolor[named]{pgffillcolor}{rgb}{%&#10;0.65234375,0.80859375,0.22265625}\pgfsys@moveto{12.0pt}{-6.0pt}\pgfsys@curveto%&#10;{12.0pt}{-9.31406pt}{9.31406pt}{-12.0pt}{6.0pt}{-12.0pt}\pgfsys@curveto{2.6859%&#10;3pt}{-12.0pt}{0.0pt}{-9.31406pt}{0.0pt}{-6.0pt}\pgfsys@curveto{0.0pt}{-2.68593%&#10;pt}{2.68593pt}{0.0pt}{6.0pt}{0.0pt}\pgfsys@curveto{9.31406pt}{0.0pt}{12.0pt}{-%&#10;2.68593pt}{12.0pt}{-6.0pt}\pgfsys@closepath\pgfsys@fill\pgfsys@invoke{ }&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope&#10;{{{{}}}{}{}{}{}{}{}}{&#10;{{}}&#10;}&#10;{{{{}}}{}{}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{}{}{}{}{{}{}}{{}{}%&#10;}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{}{}}{&#10;{{}}&#10;}&#10;{{{{}}}{}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}{}}{{}%&#10;{}}{}{}{}}{&#10;{{}}&#10;}&#10;\pgfsys@beginscope\pgfsys@invoke{ }\color[rgb]{1,1,1}\definecolor[named]{%&#10;pgfstrokecolor}{rgb}{1,1,1}\pgfsys@color@gray@stroke{1}\pgfsys@invoke{ }%&#10;\pgfsys@color@gray@fill{1}\pgfsys@invoke{ }\definecolor[named]{pgffillcolor}{%&#10;rgb}{1,1,1}\pgfsys@moveto{4.0453pt}{-8.72812pt}\pgfsys@lineto{3.32343pt}{-8.72%&#10;812pt}\pgfsys@lineto{3.32343pt}{-3.70781pt}\pgfsys@lineto{4.0453pt}{-3.70781pt%&#10;}\pgfsys@lineto{4.0453pt}{-5.97656pt}\pgfsys@lineto{4.0453pt}{-8.72812pt}%&#10;\pgfsys@closepath\pgfsys@moveto{5.10468pt}{-3.70781pt}\pgfsys@lineto{7.05469pt%&#10;}{-3.70781pt}\pgfsys@curveto{8.91093pt}{-3.70781pt}{9.72656pt}{-5.03436pt}{9.7%&#10;2656pt}{-6.2203pt}\pgfsys@curveto{9.72656pt}{-7.50937pt}{8.71875pt}{-8.7328pt}%&#10;{7.06406pt}{-8.7328pt}\pgfsys@lineto{5.10468pt}{-8.7328pt}\pgfsys@lineto{5.104%&#10;68pt}{-3.70781pt}\pgfsys@closepath\pgfsys@moveto{5.82655pt}{-8.08124pt}%&#10;\pgfsys@lineto{6.97499pt}{-8.08124pt}\pgfsys@curveto{8.61093pt}{-8.08124pt}{8.%&#10;98593pt}{-6.83905pt}{8.98593pt}{-6.2203pt}\pgfsys@curveto{8.98593pt}{-5.2125pt%&#10;}{8.34375pt}{-4.35938pt}{6.9375pt}{-4.35938pt}\pgfsys@lineto{5.82655pt}{-4.359%&#10;38pt}\pgfsys@lineto{5.82655pt}{-8.08124pt}\pgfsys@closepath\pgfsys@moveto{4.15%&#10;78pt}{-2.66249pt}\pgfsys@curveto{4.1578pt}{-2.9203pt}{3.94687pt}{-3.13593pt}{3%&#10;.68437pt}{-3.13593pt}\pgfsys@curveto{3.42186pt}{-3.13593pt}{3.21092pt}{-2.9203%&#10;pt}{3.21092pt}{-2.66249pt}\pgfsys@curveto{3.21092pt}{-2.4pt}{3.42186pt}{-2.189%&#10;06pt}{3.68437pt}{-2.18906pt}\pgfsys@curveto{3.94687pt}{-2.18906pt}{4.1578pt}{-%&#10;2.40468pt}{4.1578pt}{-2.66249pt}\pgfsys@closepath\pgfsys@fill\pgfsys@invoke{ }&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope\pgfsys@invoke{%&#10;\lxSVG@closescope }\pgfsys@endscope}}}&#10;\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope{}{}{}\hss}%&#10;\pgfsys@discardpath\pgfsys@invoke{\lxSVG@closescope }\pgfsys@endscope\hss}}%&#10;\lxSVG@closescope\endpgfpicture}}" width="16.6" xml:id="p1.pic1">
<svg:svg height="16.6" overflow="visible" version="1.1" width="16.6">
<svg:g fill="#000000" stroke="#000000" stroke-width="0.4pt" transform="translate(0,16.6) matrix(1 0 0 -1 0 0) translate(0,16.6)">
<svg:g color="#A6CE39" fill="#A6CE39" stroke="#A6CE39">
<svg:path d="M 16.6 -8.3 C 16.6 -12.89 12.89 -16.6 8.3 -16.6 C 3.72 -16.6 0 -12.89 0 -8.3 C 0 -3.72 3.72 0 8.3 0 C 12.89 0 16.6 -3.72 16.6 -8.3 Z" style="stroke:none"/>
</svg:g>
<svg:g color="#FFFFFF" fill="#FFFFFF" stroke="#FFFFFF">
<svg:path d="M 5.6 -12.08 L 4.6 -12.08 L 4.6 -5.13 L 5.6 -5.13 L 5.6 -8.27 L 5.6 -12.08 Z M 7.06 -5.13 L 9.76 -5.13 C 12.33 -5.13 13.46 -6.97 13.46 -8.61 C 13.46 -10.39 12.06 -12.08 9.77 -12.08 L 7.06 -12.08 L 7.06 -5.13 Z M 8.06 -11.18 L 9.65 -11.18 C 11.91 -11.18 12.43 -9.46 12.43 -8.61 C 12.43 -7.21 11.55 -6.03 9.6 -6.03 L 8.06 -6.03 L 8.06 -11.18 Z M 5.75 -3.68 C 5.75 -4.04 5.46 -4.34 5.1 -4.34 C 4.73 -4.34 4.44 -4.04 4.44 -3.68 C 4.44 -3.32 4.73 -3.03 5.1 -3.03 C 5.46 -3.03 5.75 -3.33 5.75 -3.68 Z" style="stroke:none"/>
</svg:g>
</svg:g>
</svg:svg>
</picture></ref>.</p>
</para>
</document>

0 comments on commit d8a91bc

Please sign in to comment.