Qrrbrbirlbel
Reputation
66,133
107/100 score
 Jun 7 awarded Nice Answer Jun 7 answered Special connexion with a node (TikZ) Jun 6 awarded Revival Jun 6 revised Using TikZ to modify List of Figures using etoolbox edited tags Jun 6 answered Using TikZ to modify List of Figures using etoolbox Jun 6 comment Draw dipole field lines I suggest `\draw circle[radius=1]; \clip (-5,-3) rectangle (5,3) (0,0) circle[radius=1];` and then draw away. For example: `\foreach \val in {2,3,5,8,12,20,50,140} \draw[delta angle=360] (0,0) arc[start angle=0, y radius=\val, x radius=2*\val] -- cycle (0,0) arc[start angle=180, y radius=\val, x radius=2*\val] -- cycle;` Jun 6 comment Draw dipole field lines What is the mathematical description of these field lines? Have you tried `to` paths with various `in` and `out` angles? Or plain ellipses? What is the problem you have? What is the connection between your image and your code? Jun 6 comment How can I make the loops fatter? `loop left` is defined as `left, out=195, in=165, loop` (`left` is for the nodes, `loop` includes settings for `looseness`, `min distance` and the `every loop` style). So the angles are hard-coded. However you could define something like `wider loop left/.style={left, out=220, in=140, loop}`. If you want a more flexible approach, you can do that … — By the way, with `every loop/.style` you overwrite everything in that style, this is the reason why there's no arrow. Use `.append style` if you don't want to overwrite settings. Jun 6 comment TikZ align nodes with different heights Related: Q107227. Please see also Q9386. Have you considered doing this in a matrix? Jun 6 revised Error message: “I've inserted a begin-math/end-math symbol…” edited tags Jun 6 comment TikZ - bug in \pgfarrowsdeclarecombine*? I'm voting to close this question as off-topic because since the question has been asked, PGF changed the handling of arrows and also combining arrows. With the new version of combining arrows, the question is outdated. Jun 5 comment How to extract a row, given columns? Do not put `\pgfmathparse` inside an `\edef`/`\xdef`. Do `\pgfmathparse{{\x}[#1]}\xdef\rowans{\rowans\pgfmathresult}` instead, for example. If you just do want to typeset the result, you don't need any `\xdef` or `\rowans` you can just do that in the loop: `\pgfmathprint{{\x}[#1]}`. Jun 5 revised TikZ: using the ellipse command with a start and end angle instead of an arc change for 3.0.0 Jun 5 comment Drawing an arc of a circle centered at a point distinct from the origin `\draw[dashed] ([shift=(F)]150:5) arc[start angle=150, end angle=290, radius=5];`? Jun 5 revised Tikz: purely vertical arrow from nodeA.south to nodeB.north added 5429 characters in body Jun 5 comment Tikz arrow with custom end anchor Please see Q52372 and Q8386. For your actual question, see Q87454. Jun 5 comment Shading applied only to the first element with foreach `++` is not a calculation specification but denotes a relative coordinate (which all following relative coordinate specifications are relative to, in contrast to `+`). Compare to `(A) -- ++ (6*\x,0)`. Jun 5 comment Shading applied only to the first element with foreach No, `([xshift= cm])` is not the same as `([xshift=(0:))`, except when `x=(0:1cm)` (the default). In my eyes, a fundamental difference in TikZ/PGF. But, yes, that doesn't concern OP's problem (which you have identified correctly). Jun 5 comment Shading applied only to the first element with foreach If the x vector has been changed (say `x=2cm` or `x=(30:1cm)`) then `(6*\x,0)` and `(6*\x cm,0)` will not be the same anymore. Jun 4 comment Shading applied only to the first element with foreach I usually don't like to mix canvas and xy coordinates: I'd use either `([shift=(0:6*\x)A)` or more likely `([shift=(A)]6*\x,0)` (the `shift=(A)` part can also be added to the path then).