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

Jul
1
comment Drawing a circular arc between two rays
Option 1b: Clipping and then \node[draw] at (A) [circle through=(P)]{}; (The math is the same, just the interface is different.) Needs the through library, though.
Jun
21
revised Keep position of coordinates with different axis-scale
edited tags
Jun
21
revised Add the letter of a subfigure to each axis in a tikzpicture
edited tags
Jun
21
comment Is there a way to have LaTeX perform distribution?
Don't expect it to work with non-integer numbers. TeX is not good at math.
Jun
21
comment Name of shapes defined in an array
By the way, \pgfmathparse{<stuff>}\pgfmathresult can otherwise shortened to \pgfmathprint{<stuff>}. (There's also \pgfmathprintnumber.)
Jun
21
answered Name of shapes defined in an array
Jun
21
comment Name of shapes defined in an array
A slightly different approach for method two with the evaluate key: \draw[evaluate={\first=\stC[0]; \second = \stC[1];}] (\first) to (\second);
Jun
20
comment Style stored in command
I recommend [style/.expand twice=\csname type#1\endcsname] for cases where \type#1 contains more than one key. (However, I wouldn't replace the key-value system with macros to begin with.)
Jun
20
comment How can I format `^' better?
Related: Q77646
Jun
19
revised How to draw these empty open dots?
added 1 character in body
Jun
19
answered How to draw these empty open dots?
Jun
19
comment Using dynamic bounds in a tikz \foreach
\numexpr only works with integers! \foreach does not evaluate the contents when looping, so it sees in {-2.25, (-2.25 + 0.5), ..., 2.25} where it cannot match the ... correctly (until right after, \foreach sees only text). You will need to evaluate \firststep before it enters \foreach. \pgfmathsetmacro\firststep{…} would be the PGF-way to do this. — Related: Q36713, Q110962, Q142188, Q244753.
Jun
19
comment Why isn't my TikZ line straight?
Why should they overlap? AB has a slope of 4/5, CB of 5/6, and AC of 1/1. The three points do not lie on one straight line, don't they?
Jun
17
awarded  Nice Answer
Jun
16
comment Write diagrams without a separate style file
TikZ is a "seperate style file"? What isn't a seperate style file? — Anyway, you can externalize (read: produce PDF files) from your TikZ pictures which can then be inserted as any PDF file in your document (chapter 50 "Externalization Library" in the PGFmanual). There is even a way so that you do not need to change your document that much by using only tikzexternal.sty (technically a "style file"), see section 50.5 "Using External Graphics Without PGF Installed". Related: tikz-external
Jun
16
answered How to center horizontally tikzpicture in beamer frame using a specific node?
Jun
15
comment Drawing a ray that bisects an angle
@user74973 For let, take a look at section 14.15 "The Let Operation"‌​. \p1=($(S)-(C)$) calculates the vector from C to S and saves it so that you can acess it again with \p1 (which will expand to \x1,\y1). The \x and \y macros holds the coordinates of the \p point in pt which I use later to calculate the angles. So atan2(\y1,\x1) calculates the angle from the vector from C to S. \n can be used in the let … in part to calculate something. See section 13.5 "Coordinate Calculations" in the manual.
Jun
15
comment Placing two nodes next to each other
Well, just the same: |[fill=yellow]| at the start of a cell? You can also do stuff like row 1 column 5/.style={nodes={fill=yellow}} or something like that.
Jun
15
comment Placing two nodes next to each other
{ 80 & \cdots & 166 & |[draw=none]| \quad & 195 & \cdots & 230 \\ }? For the edges I’d use \path[bend right=80] and then two foreach loops.
Jun
15
answered Drawing a ray that bisects an angle