Closed dohyunkim closed 4 years ago
--- a/luamplib/luamplib.lua
+++ b/usr/local/texlive/2019/texmf-dist/tex/luatex/luamplib/luamplib.lua
@@ -377,7 +377,7 @@ local function process_color (str)
str = format("{%s}",str)
end
run_tex_code(format(
- "\\def\\set@color{\\toks0\\expandafter{\\current@color}}\\color %s", str),
+ "\\let\\XC@mcolor\\relax\\def\\set@color{\\toks0\\expandafter{\\current@color}}\\color %s", str),
catat11)
return format("1 withprescript \"MPlibOverrideColor=%s\"", texgettoks(0))
end
How about?
In the pdf, we get a line as follows:
It seems that
\pgfutil@namelet
redefines\corrent@color
at the last stage of color process. Seexxcolor.sty
.