ho-tex / oberdiek

Updating the oberdiek bundle
Other
16 stars 6 forks source link

[luacolor] color rubs off out of the boundaries of \textcolor #43

Closed ralessi closed 5 years ago

ralessi commented 6 years ago

I may have found a bug of either luacolor or adjustbox. Please consider the following:

\documentclass{article}

\usepackage{luacolor}
\usepackage{adjustbox}

\newcommand{\yop}[2]{\adjustbox{width=3cm}{#1}\adjustbox{width=3cm}{#2}}

\begin{document}

Try to make a dot after \verb|\textcolor{brown}{ho}|. The pdf output
seems ok, but even so, \verb|color=<somecolor>| as argument of
\verb|\adjustbox| doesn't work.

\textcolor{brown}{ho}

\yop{jah}{yah}

Then everything is brown, even the page number in the footer!

\end{document}

The brown color should not rub off \textcolor{brown}{ho}. Withxcolorinstead ofluacolor`, everything is ok.

u-fischer commented 5 years ago

The problem is not related to adjustbox it can be reduced to a problem between luacolor and graphics:

\documentclass{article}

\usepackage{luacolor}
\usepackage{graphics}

\begin{document}
abc

\textcolor{red}{XXXX}

\resizebox{3cm}{!}{abc}

YYY
\end{document}
davidcarlisle commented 5 years ago

image

u-fischer commented 5 years ago

The issue will be resolved with the next update.

ralessi commented 5 years ago

The issue will be resolved with the next update. Many thanks!