Reputation
65,083
Next tag badge:
107/100 score
18/20 answers
Badges
3 120 231
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
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
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
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
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
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
14
comment Alignment like in align environment
Take a look at the mathtools package with its macro \MoveEqLeft and the multilined environment.
Jun
14
comment Cabin font doesn't render properly apostrophe
If I check L’apost L'apost on fontsquirrel.com, I'll get the same output for and a little more space for '. This seems to be a problem related to the font itself.
Jun
14
comment Placing a rectangular node in tikz by specifying two opposing corners
What should happen, if you apply a rotation to the scope, say \begin{tikzpicture}[rotate=30]. Should this transformation also apply to the rectangular node?
Jun
14
comment Placing a rectangular node in tikz by specifying two opposing corners
Related: Q87989
Jun
14
comment Draw the Ubuntu Logo with Tikz
Which Ubuntu logo?
Jun
12
comment Text alignment below horizontal axis with Tikz
Related: Q107227, Q134983 and many more.
Jun
12
comment Naming pic just like I can name nodes in tikz
No, that's exactly what a pic is not able to do. However, if there are nodes inside a pic, these can be referenced by <pic name>-<node name>. Check the last two pages of the section on pics in the PGFmanual. Related: Q176900, Q185285, Q194362, Q241719; especially the latter.
Jun
7
comment Edge weights with TikZ graphs
Aaaah, yes. The problem is the every node style. It is also applied to the edge nodes. You will need to declare an own style for the dots which you will need to use at those nodes you alread have. (A separate style for the edge node is usually also helpful.)