New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
\rotatebox breaks the color setting #26
Comments
The colour stack should work the same as in pdfTeX, where there is no 'macro magic' to allow for rotations. As such, this looks like a backend bug to me: I tried with both @davidcarlisle Thoughts? We can back out the change for the moment while we explore a backend fix, or we could 'kick the can' by setting a backend version that's not yet released, or we could just put up at present. |
unless the binary can get changed already in TL2021, I suspect that we should make this work as well as possible at the macro layer. |
I think the only macro fix is to back out the use of colour stacks, either explicitly or by as I say requesting a driver version that doesn't actually exist. Easy enough to do, of course. (I suppose if we do I'll also adjust |
can we check out if it might get first for TL21 first? Seems better than waiting a year for an engine fix |
@FrankMittelbach |
so much the better then, in that case I would say first check if that can be and will be updated soon (and if so how soon) and if that is promised reasonably soon do nothing at our end |
Reported to the A back-out fix is easy so if necessary I'll do that before Karl freezes for TL'21 DVD - better than a broken colour situation in XeTeX! |
I have a macro-level fix for this now: \makeatletter
\def\Grot@end{\special{pdf:etrans}\special{pdfcolorstack \@pdfcolorstack current}}
\let\Gscale@end\Grot@end
\makeatother (plus possibly a line added to I think the above is safe with I'll make the change and put in a PR: could people check? |
We have decided to disable using the new stacks for the present, and will try again later when we are away from the TeX Live freeze period. |
I've just submitted an update to CTAN: it simply bails out before even looking at the version of As outlined above, there is a plan for both being able to use the new stacks and avoid this issue, but we need to have more than a couple of days before DVD freeze to test out. So I will revisit it later. |
This can be a problem for dvipdfmx, but I believe it worth reporting here.
Brief outline of the bug
While using dvipdfmx, when I use
\rotatebox
, the color setting was broken.The testing environment:
Minimal example showing the bug
When I process the above in the normal dvipdfmx flow, namely 1. latex, 2. dvipdfmx, it outputs "A" in red, but "B" in black, where "B" also should be output in red.
This does not happen with TeX Live 2020. This also does not happen if I comment out the following lines in
divpdfmx.def
:Log file (required) and possibly PDF file
mwe.log
The text was updated successfully, but these errors were encountered: