Reputation
63,348
Next tag badge:
105/100 score
18/20 answers
Badges
3 115 222
Newest
 tikz-styles
Impact
~993k people reached

Jul
15
revised TikZ: Combining multiple paths in and outside foreach
deleted 13 characters in body
Jul
15
answered Table without counting ampersands
Jul
15
comment Table without counting ampersands
Should this also work for a number higher than 9?
Jul
15
answered TikZ: Combining multiple paths in and outside foreach
Jul
14
comment get the width (in pt) of a box
Please update your question with information what you actually want to do? If you want to decorate the text some text there are probably better ways to do this than by measuring the text but by using the text itself in a node.
Jul
14
comment multi-part nodes/anchors in a resistor-like symbol which has been split horizontally
Sure sure, but what about the node parts, the actual text (in your example A/A and B)? If you have a ratio of one or zero you won’t have space for the text? Or don’t you actually want node parts but the anchors? Though, I have to ask another question: Aren’t all anchors defined anyway? The west anchor of the left node part is the west anchor of the shape. The east anchor of the left node part is the bar center anchor which is the same as the west anchor of the right node part whereas the east anchor of the right node part is the east anchor of the shape.
Jul
13
awarded  Yearling
Jul
13
awarded  Good Answer
Jul
13
comment multi-part nodes/anchors in a resistor-like symbol which has been split horizontally
(+1) Good question. ;) Sorry, I haven’t seen your follow-up question (you could have left a comment on the other one). I will take a closer look tomorrow and hopefully be able to answer your questions. One question though: How should we deal with the bar ratio and the node parts widths? Say you want a ratio of .1 but the left node part is much wider than the right? You might end up with very wide but very empty parts. What has a higher priority?
Jul
12
comment Parallel loop [python-like zip] in Tikz
@pluton I know this is not the core of this question, but in this case, one could also use the count key: \foreach \x[count=\xIndex from 0] and then use $a_{\xIndex}$.
Jul
12
comment Rotate an arrow around its center
@WangZhu It is, for fixed size, take a look at Is it possible to change the size of an arrowhead in TikZ/PGF? for scaling proportionally Why can't I apply this decoration to a curve produced using the "to" path operation?
Jul
12
answered Rotate an arrow around its center
Jul
11
comment TikZ: is there a better way to represent the following node content
Yes, \node […,align=center] at (…) {Position of $S_2$ when \\ $S_1$ reaches $C$};.
Jul
11
revised Using counters and \ifthen in a macro: what's wrong?
updated code (but not image)
Jul
11
comment Using counters and \ifthen in a macro: what's wrong?
@StonefeatherGrubbs blackburn’s solution works inside a group as LaTeX’s counter are always set globally.
Jul
11
comment Using counters and \ifthen in a macro: what's wrong?
@StonefeatherGrubbs Yes, of course. Any environment and also the {\centering …} group makes the switch local. You need to \global the change either with the plainTeX version, i.e. \gobble\pawrighttrue and \gobble\pawrightfalse, or you use the etoolbox version which can be prepended with \global. I’ll update my answer in a bit.
Jul
11
comment Problem bending arrows in xypic
@user21952-is-a-great-name I have added both a PGF and a calc solution. Both of them can easily be adjusted to work for all other directions, too. If you also want to avoid overlapping with nodes between start and target, more work is involved. Will this be needed?
Jul
11
revised Problem bending arrows in xypic
added 2301 characters in body
Jul
10
answered How to update an existing node?
Jul
10
answered TikZ, tree, some childs without arrows