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

Handling of braces inside “proxy keys” (e.g. minimum size) #389

Closed
pgf-tikz-bot opened this issue May 9, 2016 · 0 comments · Fixed by #1072
Closed

Handling of braces inside “proxy keys” (e.g. minimum size) #389

pgf-tikz-bot opened this issue May 9, 2016 · 0 comments · Fixed by #1072
Milestone

Comments

@pgf-tikz-bot
Copy link

Migrated from SourceForge
Author: wrtlprnft
Timestamp: 2016-05-09 10:26:15.740000

https://sourceforge.net/p/pgf/bugs/_discuss/thread/8cb5876b/990a/attachment/pgfuseplotmark.png
(This bug report is the result of a discussion on TeX.sx)

TikZ has several shorthand keys for setting two other keys to the same value. For example, there is the triplet (minimum width, minimum height, minimum size) in the shapes module, where the latter key is defined as follows:

\pgfset{minimum size/.style={/pgf/minimum width=#1,/pgf/minimum height=#1}}

This causes problems when trying to include math expressions in such settings. For example, \tikzset{minimum size={max(1,2)}} does not work. The comments in the linked post contain various workarounds, but is there a reason why the definition does not include extra braces like in the following example?

\pgfset{minimum size/.style={/pgf/minimum width={#1},/pgf/minimum height={#1}}}

A command such as

grep -R '\.style=.*=#1' texmf-dist/tex/generic/pgf

finds 25 similar cases.

@hmenke hmenke removed the open label Apr 2, 2019
@hmenke hmenke added this to the 3.1.6 milestone Dec 17, 2019
@hmenke hmenke modified the milestones: 3.1.6, 3.1.7 Sep 3, 2020
hmenke added a commit to hmenke/pgf that referenced this issue Nov 9, 2021
Signed-off-by: Henri Menke <henri@henrimenke.de>
hmenke added a commit to hmenke/pgf that referenced this issue Nov 9, 2021
Signed-off-by: Henri Menke <henri@henrimenke.de>
hmenke added a commit to hmenke/pgf that referenced this issue Nov 10, 2021
Co-authored-by: muzimuzhi <muzimuzhi@gmail.com>
Signed-off-by: Henri Menke <henri@henrimenke.de>
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.

2 participants