Skip to content
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

\let command for two csnames wrong in pgfsys-dvipdfmx.def #1088

Closed
u-fischer opened this issue Dec 7, 2021 · 0 comments · Fixed by #1089
Closed

\let command for two csnames wrong in pgfsys-dvipdfmx.def #1088

u-fischer opened this issue Dec 7, 2021 · 0 comments · Fixed by #1089

Comments

@u-fischer
Copy link
Contributor

u-fischer commented Dec 7, 2021

from https://tex.stackexchange.com/a/625313/2388

The \let command is faulty in \pgf@sys@pdf@install@mask:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}

\makeatletter
\def\pgf@sys@pdf@install@mask#1{%
  \pgfutil@addpdfresource@extgs{%
    /pgfsmask\csname pgfsmaskxform@#1\endcsname\space <<
      /SMask <<
        /S /Luminosity
        /G @pgfsmask\csname pgfsmaskxform@#1\endcsname
      >> >>}%<<
  %\expandafter\let\csname pgfsmask@#1\endcsname\expandafter\csname pgfsmaskxform@#1\endcsname%<---wrong
  \expandafter\let\csname pgfsmask@#1\expandafter\endcsname\csname pgfsmaskxform@#1\endcsname%
}
\makeatother


\begin{document}
\tikz{\node[draw, fill=white, blur shadow] {A};}  % Writes 17 [in nullfont]
%
\tikz{\node[draw, fill=white, blur shadow] {B};}  % Writes 18 [in nullfont]
%
\tikz{\node[draw, fill=white, blur shadow] {C};}  % Writes 19 [in nullfont]
\end{document}
muzimuzhi added a commit to muzimuzhi/pgf that referenced this issue Dec 8, 2021
Co-authored-by: Ulrike Fischer <fischer@troubleshooting-tex.de>
Signed-off-by: muzimuzhi <muzimuzhi@gmail.com>
hmenke added a commit that referenced this issue Dec 8, 2021
fix(driver): `\let` for two csnames #1088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant