-
Notifications
You must be signed in to change notification settings - Fork 37
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
Regression? Incorrect rendering on LuaTeX with compat set to 1.12 or later #492
Comments
The problem seems to be that the Lua functions
(I did not test other functions that might show the current bug.) |
So what changed in 1.12? Did pgfplots or pgf switch to using the Lua functions? |
Sorry. I don't use |
\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.12}
% Workaround for https://github.com/pgf-tikz/pgfplots/issues/492
\directlua{
pgfluamathfunctions.stringToFunctionMap["max"] = math.max
pgfluamathfunctions.stringToFunctionMap["min"] = math.min
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[domain=0:3, samples=4]
\addplot {min(1,x)};
\addplot {min(1,2,x)};
\end{axis}
\end{tikzpicture}
\end{document} |
Awesome. Your (@hmenke) workaround as well as the fix work perfectly fine. |
Thank you for fixing this so rapidly. |
Fixes pgf-tikz/pgfplots#492 Signed-off-by: Henri Menke <[email protected]>
Ref. https://tex.stackexchange.com/q/726281/ and https://tex.stackexchange.com/a/726304/
The example from Jasper's question renders incorrectly if compiled with LuaTeX if
compat=1.18
. Experimentation shows the cutoff is between1.11
and1.12
as demonstrated by the example below. Compiled as-is, the image is only partially rendered. If the currentcompat
line is commented and the one below uncommented, the output is correct.This appears to be engine-specific as the regression does not affect pdfTeX.
compat=1.18
renders the image completely on this engine.The text was updated successfully, but these errors were encountered: