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
User level comands of color and graphics should be robust #208
Comments
yes probably although most documents use xcolor these days i would guess
which also has the same definition
`\def\normalcolor{\let\current@color\default@color\set@color}`
I suppose I should clean up `color` then ping Uwe Kern to ask xcolor updated to match.
|
that was the idea :-) Note that there is already a test file available to track what is already robust and what not |
For color there is the complication that apart from the
|
@FrankMittelbach any thoughts on the comments here 54cf1a9#r36149137 {@jfbu) |
Looking at it from the perspective of trying to standardize and simplify LaTeX coding I'm not keen on adding something like
So such a test would only make sense in a plain TeX context and there I think your approach of handling it in the wrapper but requiring it for LaTeX is the better approach. After all we require eTeX now for 10+ years. |
@FrankMittelbach about my comment I had in mind indeed the
looks to me as fixing this. And
and actually none in |
ah... there are matches for amsaddr/amsaddr.sty: \ifx\protected@edef\@undefined
ltxnew/ltxnew.sty: \else\ifx\x\protected\def\z{\protected}%%3
pgfkeyx/pgfkeyx.sty: \ifx#2p\expandafter\expandafter\expandafter\protected\fi
pgfkeyx/pgfkeyx.sty: \ifx#2p\expandafter\expandafter\expandafter\protected\fi
preview/preview.sty: \ifx\@undefined\protected \else \protected\fi
skeyval/skeyval-core.tex: \ifx#2p\expandafter\expandafter\expandafter\protected\fi
skeyval/skeyval-core.tex: \ifx#2p\expandafter\expandafter\expandafter\protected\fi
texosquery/texosquery.tex: \ifx\protected@edef\undefined and the |
they all are either spurious as in \protected@edef or harmless as far as I can see. Preview would find \protected to be available and then use it. But that would be ok even if it is just a harmless \relax. But anyway in LaTeX all this always gives the same result if we don't change and undefined \protected but simply require that it is there. |
and actually none in |.../tex/generic| which was my concern. I know I
sometimes raise "theoretical" issues!
which is fine, so do I in other situations, but don't be sorry if then
sometimes we simply reject them out of sheer manpower limitis or
because other reasons seems more important (like not unnecessary
creating a lot of update needs for packages)
|
guess that should be documented in ltnews31 - I made a dummy entry |
Brief outline of the bug
In color package only \color but nothing else is robust. In particular \normalcolor needs robustifying so that it can be used in declarations that need to do \protected@edef (needed, for example in \emfontdeclare.
Basical declarations that can only appear in weldefined places in the preamble or document class can probably be left alone.
Same for the graphics packages.
The text was updated successfully, but these errors were encountered: