Reputation
63,093
Next tag badge:
100/100 score
17/20 answers
Badges
3 114 218
Newest
 Enlightened
Impact
~988k people reached

Jul
8
comment Triangle with text in it
@DaveBallakauser750378 Ah, I wasn’t sure what you actually wanted to achieve visually. But you can set the anchor of the label explicitly label={[anchor=south]below:foo} (or use the inside key) with the little hack from How can I set the TikZ label anchor explicitly?
Jul
8
comment Triangle with text in it
Remove the node text and add a label: label=center:foo. But you have to take care that the shape border doesn’t overlap with the text as it doesn’t do this automatically anymore, similar to using a negative inner sep.
Jul
8
comment Diagram with stacks
@user1903852 Then change the value of inner ysep (or also inner xsep if you place nodes left or to the right; you can change both simultaneously with the inner sep key). Their default value is .3333em. The yshift value would need to adjusted for every different vertical size of the nodes. The above style simply sets anchor=south which guarantees that the node is “above” the point on the line.
Jul
8
comment TikZ: using the spy library to zoom in
Tobi’s approach (i.e. referencing the original coordinates) from Frédéric’s linked question can probably be applied here, too.
Jul
8
answered TikZ: using the spy library to zoom in
Jul
8
comment TikZ: using the spy library to zoom in
1. You can name the spy node, say … in node (name) at (…) and reference it later. 2. The \spy is also a node. You can simply use any shape you want, say \spy [circle, draw=blue, …] ….
Jul
8
comment TikZ: Drawing an arc between two points
@dustin I believe it is not very accurate. I/we discovered similar inaccuracies at Tikz: placing a node at the intersection of two circles along a hyperbola before. But it shouldn’t be too hard to write the same with paths, you probably can do it entirely on one path, too.
Jul
8
comment tikz locality of path options
@ted Yes, please file a bug report. At least I consider, the bigger arrow tip problem as a bug especially because it is inconsistent with --. That the node inherits path options though wouldn’t be the first time, append after command and path picture do also inherit stuff from its parent path, this probably won’t change so fast.
Jul
8
revised TikZ: node placement when using draw let in syntax
added 289 characters in body
Jul
8
answered TikZ: node placement when using draw let in syntax
Jul
8
comment TikZ: node placement when using draw let in syntax
@GonzaloMedina To be honest, I also prefer my solution since it uses the already defined coordinate which is already available and known to TikZ while xshift only works for the canvas plane. @dustin Though, Gonzalo’s is absolutely right about the scale vs font issue.
Jul
8
comment TikZ: node placement when using draw let in syntax
Nodes do not work very good along of arcs, see How to place a node in the middle of an arc?. The coordinate (\n4:\n3) is relative to the origin of the coordinate system, not the center of the arc, you will need to use at ([shift=(F)] \n4:\n3) or (F)+(\n4:\n3) node … (while \n4 = {(\n2 + \n1) / 2} of course).
Jul
8
comment Unexpect differences between calling \ifmmode from within a command and outside a command
Related: Correct usage of \ifmmode and \ifmmode doesn't seem to work correctly inside an array environment
Jul
7
revised tikz locality of path options
added 1190 characters in body
Jul
7
answered tikz locality of path options
Jul
7
comment tikz locality of path options
There seem to be two problems: 1. The line width setting of the node does affect the arrow tip (which is rightfully dependent of the line width), but it shouldn’t in this case. 2. The cross out shape is not properly defined and needs a simple setting that no arrow tips should be produced (or you do something like every cross out node/.append style={-}).
Jul
7
comment Putting textboxes with lines over Moebius strip
The whole TikZ picture moves. As the node changes its width but only to one side, thus making the center of the picture not the center of the strip. If you place nodes symmetrically the strip will place in the center of the slide.
Jul
7
comment Side by side pie chart?
The \newcounter macro assigns a counter globally. In the second tikzpicture you will need to do something like \setcounter{a}{0} \setcounter{b}{0}. (Better to use \newcounter in the preamble and only \setcounter in the TikZ pictures; it would even easier to use TikZ’s built-in math for that …) Besides that you can simply place two TikZ pictures besides each other. Can you show the code which failed?
Jul
7
reviewed Approve Side by side pie chart?
Jul
7
answered Putting textboxes with lines over Moebius strip