Reputation
64,418
Next tag badge:
107/100 score
18/20 answers
Badges
3 116 226
Newest
 Nice Answer
Impact
~1.0m people reached

Jul
19
reviewed Close Creating arabic and alpha theorem numbering
Jul
19
comment TikZ: Combining multiple paths in and outside foreach
@Linus I have updated my answer. @setup turtle digits is simply an auxiliary style that makes it possible to define the styles 1 through 9 consistently. You can check out two other answers of mine that uses the turtle library [1] or at least the basic principle behind it [2].
Jul
19
revised TikZ: Combining multiple paths in and outside foreach
added 969 characters in body
Jul
18
comment TikZ: Make node height span several others
A few things to note: 1. Don’t change the outer separators if you can’t predict the outcome. 2. I have already included the code from this answer in the positioning-plus library. 3. Do not use node names that start with +, - or |.
Jul
18
comment multi-part nodes/anchors in a resistor-like symbol which has been split horizontally
@JohnChris Both node parts do not appear. The info key is simply a wrapper for the label key for the symbol shape. As far as I know the circuits libraries do not support actual node text in the shapes …
Jul
18
revised TikZ: Make node height span several others
major update
Jul
18
revised TikZ: Make node height span several others
major update
Jul
18
revised \uline within a pgfmath expression produces an error
edited tags; edited tags; edited tags
Jul
18
comment \uline within a pgfmath expression produces an error
Although the \sbox and \wd way is certainly preferable and the most safe. With the package etoolbox, one can simply do \robustify\uline (which protects \uline from expansion by \edef) and \pgfmathprint{width("\uline{blabla}")} will give 26.66675 then. (Of course, this doesn’t work if you don’t know what to expect.)
Jul
18
comment how to draw nodes with same size
@TomBombadil Which definition of \clap do you use? The width of a single digit is still needed: \def\clap#1{\makebox[\widthof{0}]{#1}}. \clap from mathtools doesn’t give the best results. (In both cases, I added \fboxes around the text of nodes 9 to 12.)
Jul
18
comment Line spacing in TikZ multiline nodes inside tables
A manual solution: Add \strut to every line.
Jul
18
answered TikZ: Make node height span several others
Jul
17
comment Including range is multi-part numbers
@Leo Well, you wanted to use siunitx … In this simple case there is no difference, of course. Though, it will be better to use \num in other cases and complex numbers.
Jul
17
comment Including range is multi-part numbers
I wouldn’t use a -- here as it may be mistaken for a minus sign. What do you think of $\num{4} \times \num{5} \times \SIrange[range-phrase=\ldots, range-units=brackets]{10}{15}{mm^3} $? Of course this should be done in an own macro.
Jul
17
answered multi-part numbers and units in siunitx
Jul
17
answered how to draw nodes with same size
Jul
17
comment how to draw nodes with same size
Clarification: You want the bigger nodes to have the same radius as the smaller ones? Is r1 actually given or do you want to get that from the small nodes?
Jul
17
comment Fill of a thermometer
@azetina Have you seen my other answer with the keys and the insert path style? That consists only of the lower arc (angle initially 270), a line upwards (of length height), the upper arc (angle initially 180, from the looks of it, this is not the same as in your example) and a -- cycle, i.e. a line downwards. Both solutions being based on path picture won’t work if you rotate something (the path picture bounding box is always in the canvas plane).
Jul
17
comment Fill of a thermometer
@azetina It does for values above 100 °C, e.g. \path (C0) -- (C100) coordinate[pos=1.1] (@aux);. Or what do you mean? I fear I can’t follow you completely. If fills as smooth as it does for the lower arc of the thermometer …
Jul
17
comment TikZ: Make node height span several others
Well, it is more a math vs CSS thing (which is probably derived from the usual reading direction of humans (downwards) while up more feels like s height thing which mostly increases if you go up). A minor correction (to my comment and now your answer): You actually need to subtract 2*(\pgfkeysvalueof{/pgf/outer ysep}) (which defaults to 2* .5\pgflinewidth).