Suppose one wants to achieve the following:

Current Status
Based upon another post, I was able to create a "MWE" of how I would like this to work:
\documentclass[border=5pt]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations, decorations.pathmorphing, decorations.pathreplacing}
\def\width{5mm}
\pgfdeclaredecoration{make wide}{initial}
{
\state{initial}[width=1pt]
{
\pgfpathmoveto{\pgfpoint{0pt}{-0.5\width}}
\pgfpathlineto{\pgfpoint{1pt}{-0.5\width}}
\pgfpathmoveto{\pgfpoint{0pt}{0.5\width}}
\pgfpathlineto{\pgfpoint{1pt}{0.5\width}}
}
\state{final}
{
\pgfpathmoveto{\pgfpoint{0pt}{0.5\width}}
\pgfpathlineto{\pgfpoint{1pt}{0.5\width}}
\pgfpathmoveto{\pgfpoint{0pt}{-0.5\width}}
\pgfpathlineto{\pgfpoint{1pt}{-0.5\width}}
}
}
\tikzstyle{make wide and ticks} = [
decoration={make wide},
decorate,
postaction={
decoration={ticks},
decorate
}
]
\begin{document}
\begin{tikzpicture}
\drawmake wide and tickstoout=0, in=180;
\end{tikzpicture}
\end{document}
To rule out any weird order of execution issues that I previously encountered with tikzstyle, I also tried it without defining a tikzstyle with the same result (just like one would expect).
From my understanding of the implementation of postaction, it is not possible to to use every decoration within the postaction phase.
Questions:
- Is there a way to achieve the desired output with
decorations? - Is there another simple way that also works for arbitrary shaped paths?


e/.styleto fix path length issues, which I had also some struggles with and now was answered before even asking :-) – dsacre Mar 22 '24 at 09:29