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

\pgfmathparse breaks with uppercase letter O #798

Closed
PhelypeOleinik opened this issue Dec 2, 2019 · 2 comments
Closed

\pgfmathparse breaks with uppercase letter O #798

PhelypeOleinik opened this issue Dec 2, 2019 · 2 comments
Milestone

Comments

@PhelypeOleinik
Copy link
Member

@PhelypeOleinik PhelypeOleinik commented Dec 2, 2019

Brief outline of the bug

(from here) \pgfmathparse breaks with an uppercase letter O, I believe, because of a missing O here:

\pgfmath@tokens@make{functional}{_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ}

Minimal working example

\input tikz.tex
% \catcode`\@=11
% \def\pgfmath@token@functional@O{O}
\tikzset{declare function={Oh_No = 3;}}
\pgfmathparse{Oh_No}
\pgfmathresult
\bye
@hmenke

This comment has been minimized.

Copy link
Member

@hmenke hmenke commented Dec 2, 2019

Oh, that is embarrassing.

hmenke added a commit that referenced this issue Dec 2, 2019
@hmenke hmenke closed this Dec 2, 2019
@PhelypeOleinik

This comment has been minimized.

Copy link
Member Author

@PhelypeOleinik PhelypeOleinik commented Dec 2, 2019

What I find most amusing is that this seems to be the first time in 11 years (according to this) that someone tries to use an O in \pgfmathparse!

@hmenke hmenke added this to the 3.1.5 milestone Dec 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.