-
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
Line width is ill-restored at the end of a pgfinterruptpath environment #442
Comments
Migrated from SourceForge I'm not sure what should be the proper behaviour here. Both the current and your proposed behaviour seem broken to me. |
That is by design, \documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\begin{scope}
\begin{pgfinterruptpath}
\pgfsetlinewidth{2mm}
\draw (0,-1) -- (1,-1);
\end{pgfinterruptpath}
\end{scope}
\draw (0,0) -- (1,0);
\draw[double] (0,1) -- (1,1);
\draw (0,2) -- (1,2);
\end{tikzpicture}
\end{document} |
@EvanAad Are you the same person as evan-aad on SourceForge? |
I am the same person.
…On Fri, Nov 29, 2019 at 1:02 AM Henri Menke ***@***.***> wrote:
@EvanAad <https://github.com/EvanAad> Are you the same person as evan-aad
on SourceForge?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#442?email_source=notifications&email_token=AFIRW75HMZPVPPSU4EW2E4DQWBEWNA5CNFSM4JSYQOE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFNRAZI#issuecomment-559616101>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFIRW7ZB6QNT4IEHUCHW4STQWBEWNANCNFSM4JSYQOEQ>
.
|
@EvanAad Great! I've recently acted on some of the issues that you opened, but of course you weren't notified. Maybe you want to have a look and comment: |
I'm afraid I haven't used PGF/TikZ since roughly the time I reported these
issues. I'd be like a fish out of water going back to them at this point.
…On Fri, Nov 29, 2019 at 9:52 AM Henri Menke ***@***.***> wrote:
@EvanAad <https://github.com/EvanAad> Great! I've recently acted on some
of the issues that you opened, but of course you weren't notified. Maybe
you want to have a look and comment:
https://github.com/pgf-tikz/pgf/issues?q=is%3Aissue+sort%3Aupdated-desc+evan-aad
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#442?email_source=notifications&email_token=AFIRW72T6QZ5M7JQSTOLI2TQWDC2TA5CNFSM4JSYQOE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFOEEZI#issuecomment-559694437>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFIRW72POIPXFCNKUH6HC6DQWDC2TANCNFSM4JSYQOEQ>
.
|
Migrated from SourceForge
Author: evan-aad
Timestamp: 2017-08-07 16:58:12.831000
Consider the following LaTeX manuscript featuring a TikZ picture that draws three parallel horizontal line segments. The second line segment is double-stroked. In the beginning of the picture, the line width is set to 2mm inside a
pdfinterruptpath
environment.The expected behavior is that all three lines would have the same width. Instead, the 1st and 3rd lines have width 2mm, whereas the double-stroked line has width 0.4pt. See attached image file.
This bug is due to the fact that the
pgfinterruptpath
environment attempts to restore the original line width at the end of the environment, but instead of doing it properly by calling\pgfsetlinewidth
, it simply restores the macro\pgflinewidth
. This causes a broken state: the effective line width is the one set inside thepgfinterruptpath
environment, namely2mm
, but the\pgflinewidth
macro expands to0.4pt
.However, in my opinion, the way to fix this bug is not by using
\pgfsetlinewidth
at the end of the environment, but rather by not attempting to save-and-restore the line width to begin with, since no other path property (e.g. stroke color) gets this special treatment.Specifically, in my opinion the bug should be fixed as follows.
\pgfinterruptpath
delete the line\edef\pgfscope@linewidth{\the\pgflinewidth}%
.\endpgfinterruptpath
delete the line\global\pgflinewidth=\pgfscope@linewidth%
.The text was updated successfully, but these errors were encountered: