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

11h
comment Aligning edge labels horizontally with tikz package
@Kostas No, I did not (but only the arrows.meta library and the node contents key from TikZ itself). Do you have the newest (3.0.0 from Dec 2013) version of TikZ/PGF installed? You can check easily with \pgfversion somewhere in your document.
1d
comment Using loops with chains?
I'm giving up on the graphs solution. I don't understand the concept of it (neither of the subgraphs).
1d
comment Using loops with chains?
@DRi In this case just add fill=none to the nodes with the M. Or use a different style (say monomer M so that it doesn't get the fill appended).
Apr
19
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?
Apr
19
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?
Apr
18
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.
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
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
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
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
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
comment TikZ graph drawing: edge option conflicts with chain group
Even \tikz\graph{1--[]{2,3} }; works. Checking the code, something goes awry with \pgfutil@ifnextchar as it sees the 2 as the next character and not the { (= \bgroup). Very weird.
Apr
12
comment Connecting from in the middle of |- line
@percusse Indeed, the code in the answer you linked to is quite outdated (most likely my first version of the concept of udlr connections). I even found a bug where the connection between node and coordinate (and vice versa) fails.