!NuxCISwYQJuyWwNsEI:matrix.org

PGF/TikZ

52 Members
https://github.com/pgf-tikz11 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
24 Jan 2022
@bigbroc:nerdsin.spacebigbroc Maybe just to fulfill “every drawing operation in pgf is basically a \path?” 21:53:03
25 Jan 2022
@muzzi:matrix.orgmuzimuzhi
In reply to @bigbroc:nerdsin.space
Maybe just to fulfill “every drawing operation in pgf is basically a \path?”
I guess so.
13:22:40
26 Jan 2022
@hmenke:matrix.orghmenke bigbroc: Asking about design decisions is always difficult because Till is not here and none of us was involved in most of the original development. 13:31:00
@samcarter:matrix.orgsamcarter
In reply to @hmenke:matrix.org
bigbroc: Asking about design decisions is always difficult because Till is not here and none of us was involved in most of the original development.
My personal conspiracy theory is that COVID was invented just to safe Till from having to answer all my why-does-beamer-questions at the 2020 Dante meeting :)
13:58:36
30 Jan 2022
@muzzi:matrix.orgmuzimuzhi
In reply to @hmenke:matrix.org
muzimuzhi: What do you think about requiring Conventional Commits for PGF?
hmenke: Since Conventional Commits has been applied for a while with a tacit agreement, maybe it's time to mention and require it in PR template. This could save us from reminding new contributors.
18:36:41
@hmenke:matrix.orghmenke muzimuzhi: Yes, we could certainly formalize the requirements for commit messages a bit. 19:15:40
@hmenke:matrix.orghmenke muzimuzhi: What you pushed was exactly the same that I pushed. Only my changelog update got lost, but I quickly cherry-picked that on top of your branch. 19:32:33
@muzzi:matrix.orgmuzimuzhi
In reply to @hmenke:matrix.org
muzimuzhi: What you pushed was exactly the same that I pushed. Only my changelog update got lost, but I quickly cherry-picked that on top of your branch.
I was too sensitive to "Run failed" emails 😢
20:57:05
@muzzi:matrix.orgmuzimuzhi
In reply to @hmenke:matrix.org
muzimuzhi: Yes, we could certainly formalize the requirements for commit messages a bit.

Perhaps also a note like

for simple manual typo corrections it's as easy as starting your commit message with doc: (or fix: ? i'm not sure)

since most new contributions are manual typo fixing

21:01:12
@muzzi:matrix.orgmuzimuzhi
In reply to @hmenke:matrix.org
muzimuzhi: Yes, we could certainly formalize the requirements for commit messages a bit.
*

Perhaps also a note like

for simple manual typo corrections it's as easy as starting your commit message with doc: (or fix: ? i'm not sure)

since <s>most</p> a large portion of new contributions are manual typo fixing

21:04:39
@muzzi:matrix.orgmuzimuzhi *

Perhaps also a note like

for simple manual typo corrections it's as easy as starting your commit message with doc: (or fix: ? i'm not sure)

since <s>most</s> a large portion of new contributions are manual typo fixing

21:04:46
@r_mano:matrix.orgRomano GiannettiHi --- I am not sure what the protocol is here... so please don't kill me. First post here, hi everybody21:27:43
@r_mano:matrix.orgRomano GiannettiSo, I was looking to a strange artifact in circuitikz, and I found this... which is clearly operator error (do not fill an open path), but it surprised me.21:29:19
@r_mano:matrix.orgRomano Giannetti
21:29:39
@r_mano:matrix.orgRomano Giannetti *
21:29:48
@r_mano:matrix.orgRomano Giannetti *
\documentclass[margin=1cm]{standalone}

\usepackage{tikz}
\pgfdeclareshape{what}{
     \anchor{center}{
        \pgfpointorigin
    }
    \foregroundpath{
        \pgfscope
            \pgfpathmoveto{\pgfpoint{-4pt}{0pt}}
            \pgfpathlineto{\pgfpoint{4pt}{0pt}}
            \pgfpathlineto{\pgfpoint{0pt}{4pt}}
            \pgfpathlineto{\pgfpoint{-4pt}{0pt}}
            % \pgfpathclose
            \pgfusepath{draw,fill}
        \endpgfscope
    }
}

\begin{document}
\begin{tikzpicture}
    \draw[] (0,0) -- node[what] {} ++(0,-2);
    \draw[red, shorten <=.5cm] (1,0) -- node[what] {} ++(0,-2);
    \draw[blue,shorten <=.5cm] (2,0) -- node[draw] {} ++(0,-2);
\end{tikzpicture}

\end{document}
21:30:03
@r_mano:matrix.orgRomano Giannetti There is an artifact in the red line, which disappears if I uncomment the pgfpathclose or remove the shorten. This does not happen with the stock shapes, so there must be something I'm doing wrong that I miss. 21:32:27
@r_mano:matrix.orgRomano Giannettiksnip_20220130-223259.png
Download ksnip_20220130-223259.png
21:33:19
@r_mano:matrix.orgRomano Giannetti using backgroundpath or other layers does not change anything... 21:34:16
31 Jan 2022
@muzzi:matrix.orgmuzimuzhi
In reply to @r_mano:matrix.org
\documentclass[margin=1cm]{standalone}

\usepackage{tikz}
\pgfdeclareshape{what}{
     \anchor{center}{
        \pgfpointorigin
    }
    \foregroundpath{
        \pgfscope
            \pgfpathmoveto{\pgfpoint{-4pt}{0pt}}
            \pgfpathlineto{\pgfpoint{4pt}{0pt}}
            \pgfpathlineto{\pgfpoint{0pt}{4pt}}
            \pgfpathlineto{\pgfpoint{-4pt}{0pt}}
            % \pgfpathclose
            \pgfusepath{draw,fill}
        \endpgfscope
    }
}

\begin{document}
\begin{tikzpicture}
    \draw[] (0,0) -- node[what] {} ++(0,-2);
    \draw[red, shorten <=.5cm] (1,0) -- node[what] {} ++(0,-2);
    \draw[blue,shorten <=.5cm] (2,0) -- node[draw] {} ++(0,-2);
\end{tikzpicture}

\end{document}

shorten <=.5cm is applied when the node shape is drawn. Yes this option (and shorten >) takes effect even when the path has no arrows. Without \pgfpathclose, you can also use \pgfsetshortenstart{0pt} \pgfsetshortenend{0pt} to do the resetting in pgf level.

PS: Commenting out the second \pgfpathlineto{\pgfpoint{-4pt}{0pt}} and using node[what, draw=black] help me figure out what's really wrong.

00:03:29
@muzzi:matrix.orgmuzimuzhi
In reply to @r_mano:matrix.org
\documentclass[margin=1cm]{standalone}

\usepackage{tikz}
\pgfdeclareshape{what}{
     \anchor{center}{
        \pgfpointorigin
    }
    \foregroundpath{
        \pgfscope
            \pgfpathmoveto{\pgfpoint{-4pt}{0pt}}
            \pgfpathlineto{\pgfpoint{4pt}{0pt}}
            \pgfpathlineto{\pgfpoint{0pt}{4pt}}
            \pgfpathlineto{\pgfpoint{-4pt}{0pt}}
            % \pgfpathclose
            \pgfusepath{draw,fill}
        \endpgfscope
    }
}

\begin{document}
\begin{tikzpicture}
    \draw[] (0,0) -- node[what] {} ++(0,-2);
    \draw[red, shorten <=.5cm] (1,0) -- node[what] {} ++(0,-2);
    \draw[blue,shorten <=.5cm] (2,0) -- node[draw] {} ++(0,-2);
\end{tikzpicture}

\end{document}
*

shorten <=.5cm is applied when the node shape is drawn. Yes this option (and shorten >) takes effect even when the path has no arrows. Without \pgfpathclose, you can also use \pgfsetshortenstart{+0pt} \pgfsetshortenend{+0pt} to do the resetting in pgf level. The plus sign is a pgfmath trick so it knows the math-expr is only a simple value and the parsing will be quicker.

PS: Commenting out the second \pgfpathlineto{\pgfpoint{-4pt}{0pt}} and using node[what, draw=black] help me figure out what's really wrong.

00:06:29

Show newer messages


Back to Room ListRoom Version: 6