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

1d
awarded  Revival
1d
answered How to change style of a node based on its name?
1d
answered Making FFT Figure using LaTeX Tikz
1d
comment TikZ: Drawing an arc from an intersection to an intersection
I can't really follow what is needed here, but these question seem related: Tikz: joining points on a circle, What's the easiest way to draw the arc defined by three points in TikZ?
2d
comment TikZ: Define pattern with reference to external picture
@Tarass Hm, seems fishy. The cross file I have used in my example was certainly a PDF. Are you compiling with pdfLaTeX?
2d
comment Drawing cycles using TikZ
Use the line width as an option of the path (e.g. behind \draw), not as an option to grid. With the backgrounds library, there are additional possibilities to draw a grid behind a finished TikZ picture.
2d
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.
2d
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.
2d
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.
2d
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).
2d
answered When using custom path style in a tikz graph the quotes label isn't printed
2d
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.