You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was quite difficult to pin down. Emitting a box apparently inherits the surrounding colour, overriding whatever happens in the box.
\documentclass{article}
\newbox\mybox\usepackage{xcolor}
\begin{document}
\color{black}
\global\setbox\mybox=\vbox{The final word should be \textcolor{green}{green}}
\box\mybox\end{document}
You get
<documentxmlns="http://dlmf.nist.gov/LaTeXML">
<resourcesrc="LaTeXML.css"type="text/css"/>
<resourcesrc="ltx-article.css"type="text/css"/>
<paravattach="bottom"xml:id="p1">
<p><textcolor="#000000">The final word should be green</text></p>
</para>
</document>
If I remove \color{black}, I get the expected
<documentxmlns="http://dlmf.nist.gov/LaTeXML">
<resourcesrc="LaTeXML.css"type="text/css"/>
<resourcesrc="ltx-article.css"type="text/css"/>
<paravattach="bottom"xml:id="p1">
<p>The final word should be <textcolor="#00FF00">green</text></p>
</para>
</document>
(Context: I am experimenting with reading beamer raw. Against all odds, it actually works, except that all colours are missing due to this bug!)
The text was updated successfully, but these errors were encountered:
@xworld21 just a brief comment - I believe the last 3 issues you've opened in the LaTeXML repository may be the best 3 issues to have ever been opened here. Precise reporting, minimal examples and with exact code references, I'm genuinely impressed. You're making our lives very easy!
It took me very little effort to make sample PRs addressing the issues.
This was quite difficult to pin down. Emitting a box apparently inherits the surrounding colour, overriding whatever happens in the box.
You get
If I remove
\color{black}
, I get the expected(Context: I am experimenting with reading beamer raw. Against all odds, it actually works, except that all colours are missing due to this bug!)
The text was updated successfully, but these errors were encountered: