-
Notifications
You must be signed in to change notification settings - Fork 111
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
Why does rectangle operation change (current subpath start)? #1341
Comments
Line-to and rectangle are basic operations which are directly translated to backend-specific graphic commands. Grid is a compound operation which is first translated by
What you observed is caused by that undocumented trailing In general the |
Thanks for your quick reply. I encountered this problem when I was drawing Fibonacci spiral. I attempted to use
If I put Line A (draw arrows) before Line B (draw rectangles), the spiral is correct. This observation lead me to investigate the inference of
Are you saying that I'm not supposed to use Alternatively, is it easy to define the behavior of |
Minimal working example (MWE)
In this MWE, I draw three figures using the rectangle, grid, and
--
(move-to) operation respectively, and the result is below. I compiled it on Overleaf (texlive 2023).As you can see, the rectangle and the grid operation behave differently than
--
(move-to). In Figure 1 and 2, the red line starts at (1,3), but in Figure 3 the red line starts at (0,1).I deliberately write
+(1,2)
because pgfmanual says " This [] specifies a point in a relative manner, but it does not “change” the current point used in subsequent relative commands. " (section 11.1)Since
+(1,2)
does not change the current point, what should(current subpath start)
in the second draw command be? And why do the rectangle, grid, and--
(move-to) operation behave differently?I couldn't find any hints in the 1300-page manual, so I guess it could be a bug, I am not sure.
The text was updated successfully, but these errors were encountered: