-
Notifications
You must be signed in to change notification settings - Fork 110
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
Some keys in the topaths library do (still) not get parsed #947
Comments
I don't have a strong opinion about this whether it is a valid use but might be a compatibility problem \begin{tikzpicture}
\draw[out=45,in=135] (0,0) to (1,0) (0,0) to (2,0)(0,0) to (3,0);
\path node (a) at (1,1) {} node (b) at (2,2) {} node (c) at (3,3){};
\draw[out=west,in=east](a) to (b) (b) to (c);
\end{tikzpicture} |
@ilayn One can certainly have both. At the moment, the situation is very confusing, e.g.
As you can see, |
@marmotghost In Edit: Well, since most other keys accepting an angle seem to execute the calculation on key value ... pgf/tex/generic/pgf/frontendlayer/tikz/tikz.code.tex Lines 5343 to 5347 in 67295ec
PS: Your example in #947 (comment) has |
@muzimuzhi Yes. My comment was precisely to point out that However, your comment allows one to easily define an improved version of my original request:
This version keeps the behavior as it was but improves it as it allows the user to get the expression parse, which is consistent with, say, the And sorry about the nested |
Hmmm, here pgf/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarytopaths.code.tex Lines 141 to 151 in 67295ec
As a result, \path[nodes={minimum width=1cm,minimum height=2cm,draw}]
node (a) at (1,1) {} node (b) at (2,2) {};
\draw[out=north west,in=south east] (a) to (b); is (more or less) equivalent to \draw (a) .. controls ([shift=(north west:25.07983pt)]a.north west) and
([shift=(south east:25.07983pt)]b.south east) .. (b); |
@muzimuzhi Yes. As you say, not the |
This is becoming kind of a whack-a-mole game with parsing options. Is there actually a real benefit here from being able to provide a mathematical expression rather than just a number? Please also let me remind you that the math parser actually has quite some overhead so I don't really think that it's smart to try to parse everything that accepts a number. |
@hmenke Well, most of the similar keys (like |
There are at least keys,
in
andout
, in thetopaths
library which do not get parsed. To see what the problem is, uncomment the commented part in the code below.The suggestion is to replace in
tikzlibrarytopaths.code.tex
the linesby
The text was updated successfully, but these errors were encountered: