Reputation
Next tag badge:
120/100 score
19/20 answers
Badges
3 112 214
Newest
 Revival
Impact
~941k people reached

Apr
18
comment \foreach within \draw doesn't seem to work
@Mauren You could use the regular polygon shape without any options and then you can at least reference its anchors (.corner 1, .corner 2, ...) without the need for any calculations. — Also, look up polar coordinates. There is no need to do your own trigonometric calculations. (Hint: The syntax is (<angle>:<radius>).) — I would be interest in your goal. Maybe there are different, or even easier, ways, to do this.
Apr
18
comment Getting an error when defining a macro in a TiKZ picture
Yes, you are complicating things. Take a look at the chains or the (rather big) graphs library. There is surely no need to define a macro to place a few nodes in similar manner.
Apr
18
comment Custom tikzmark creates error
I don't think you want overlay inside \tikzmark's definition. It seems that its output should actually be the size it has. (One could adjust the inner sep values maybe). — Your definition of \DrawHLine seems to be missing the declaration of the first and optional argument: \newcommand{\DrawHLine}[3][]{% (compare \DrawVLine). — There is also the possibility to put everything in a TikZ \matrix without the need for overlays, two compile runs, etc.
Apr
18
comment \foreach within \draw doesn't seem to work
You can use arbitrary code in a TikZ path with \pgfextra or the /utils/exec key. You can also use \foreach's evaluate. In this case, putting the calculation inside the coordinate specification is just as right (you use them only once, so why bother).
Apr
18
answered When using custom path style in a tikz graph the quotes label isn't printed
Apr
18
comment When using custom path style in a tikz graph the quotes label isn't printed
Does hv path/.style = {to path={-| (\tikztotarget) \tikztonodes}}] work?
Apr
17
comment Two timelines with tikzpicture?
\draw[shift=(down:2)] (\x/2, 3pt) -- (\x/2, -3pt); should work as well and does not need the calc library. You also don't have to add the offset twice. Actually, it might be best to put the whole second part in a scope with the option shift=(down:2) (or 2cm for this kind of specification).
Apr
17
comment Two timelines with tikzpicture?
(\x/2,-2,3pt) is a 3-dimensional coordinate. Is that supposed to be that way?
Apr
13
awarded  Nice Answer
Apr
13
comment How to draw a return arrow from node-3 to node-1
@Svend \path [line] (BLOCK3) r-rl (BLOCK1); It seems I have removed the example of the question in my attempts to clean up my answer.
Apr
13
awarded  Nice Answer
Apr
12
comment Connecting from in the middle of |- line
@Zarko Check my user-page. There will always be a link to the library files and the answers which spawned the idea for udlr as well as -|-/|-| (where the links are posted a second/third time). Tantau hasn't added these path operators into the recent version of TikZ (and maybe he hasn't seen it before or wasn't convinced), I don't believe they will be added in the future unless people ask him to do so. Nearly all functionality could be replicated with to path except—to my knowledge—the timer function (which translates the pos value in a coordinate).
Apr
12
revised Drawing arrows using tikz library
code/tag
Apr
12
comment Drawing arrows using tikz library
Do not use \draw with edge. Use always \path: Strange arrow mark with TikZ edge and anchors Also, the arrows library is deprecated since TikZ/PGF 3.0. Look up the arrows.meta library.
Apr
12
comment Connecting from in the middle of |- line
Related: Node on a jointed TikZ path
Apr
12
comment Connecting from in the middle of |- line
Be careful with (node) ++(1cm,0cm) as it calculates the difference to the .center of node (which might just be inside the node itself), it also makes the first connection closer to the nodes as the other connections are to the previous connection.
Apr
12
revised How to draw a return arrow from node-3 to node-1
updated answer to reflect no library
Apr
12
revised Vertical and horizontal lines in pgf-tikz
updated syntax
Apr
12
revised Connecting from in the middle of |- line
added 777 characters in body
Apr
12
revised Connecting from in the middle of |- line
added 371 characters in body