Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/perl/TeX/Interpreter/LaTeX/Package/xcolor.pm
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ __DATA__
\leavevmode
\startXMLelement{styled-content}%
\set@texml@color@attribute{border-color}{#1{#2}}%
\setXMLattribute{border-width}{thin}%
\setXMLattribute{border-style}{solid}%
\edef\@tempa{%
\noexpand\set@texml@color@attribute{background-color}%
{\if###3###1\else#3\fi{#4}}
Expand Down
2 changes: 1 addition & 1 deletion tests/xcolor.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<p>This is textcolor in math: <inline-formula content-type="math/tex"><tex-math>\textcolor[RGB]{0, 0, 255}{blue text}</tex-math></inline-formula>.</p>
<p>This is colorbox: <styled-content background-color="#008c0a">“gren” background</styled-content>.</p>
<p>This is colorbox in math: <inline-formula content-type="math/tex"><tex-math>\colorbox[RGB]{0, 140, 10}{``gren'' background}</tex-math></inline-formula>.</p>
<p>This is fcolorbox: <styled-content background-color="#0000ff" border-color="#008c0a"> “gren” frame with blue background</styled-content>.</p>
<p>This is fcolorbox: <styled-content background-color="#0000ff" border-color="#008c0a" border-style="solid" border-width="thin"> “gren” frame with blue background</styled-content>.</p>
<p>This is fcolorbox in math: <inline-formula content-type="math/tex"><tex-math>\fcolorbox[RGB]{0, 140, 10}[RGB]{0, 0, 255}{}</tex-math></inline-formula>.</p>
<p>Here’s an SVG color name: <styled-content text-color="#007f7f">Teal</styled-content>.</p>
<p>Some X11 color names: <styled-content text-color="#0000ed">Blue2</styled-content>, <styled-content text-color="#00008a">Blue4</styled-content>.</p>
Expand Down