Reputation
88,695
Next tag badge:
136/100 score
19/20 answers
Badges
20 233 477
Impact
~3.5m people reached

Jul
14
answered pgf inside macro
Jul
12
comment Corners of 3D cube extend beyond where they meet / tikz / draw
@GonzaloMedina Yes, the clipping approach does work here.
Jul
12
comment Corners of 3D cube extend beyond where they meet / tikz / draw
See also my answer here: tex.stackexchange.com/a/30102/86
Jul
12
comment Corners of 3D cube extend beyond where they meet / tikz / draw
Whoa! I didn't mean to unilaterally close this! Obviously, the rules have changed since I last voted to close a question. If the linked question doesn't answer your problem, edit your question to explain why and it'll get reopened.
Jul
12
comment pgf inside macro
Or you could redefine declare function to take an active semi-colon. Or you could be even more sophisticated and have it try to detect the catcode of ; at invocation time and behave according. Which is the right solution depends on how you are using semi-colons in the rest of the document.
Jul
12
comment pgf inside macro
The problem is with the semi-colon in the define function. Because you are using Babel, at the start of the document (but crucially not before), ; is made active. So the ; in the define function bit is an active semi-colon. However, the code executed by define function is expecting ; with catcode of other so it panics. The solution depends on what you're doing in the rest of the document. You can switch ; back to 12 using \shorthandoff{;} before the \mymacro call but then it is disabled inside the \mymacro call (and you need to switch it back on after).
Jul
12
comment pgf inside macro
What happens if you comment out all references to babel?
Jul
11
awarded  Nice Question
Jul
6
awarded  Nice Answer
Jul
2
awarded  Nice Question
Jun
11
awarded  Good Answer
Jun
9
comment Error with hobbyconvexpath
@JoachimBreitner I tried x=5mm and got a self-intersecting path, is that what you meant? What is happening, I think, is that the nodes are too close together and the path is tied to going through certain of their anchors so the algorithm ends up getting a bit expansive. Hobby's algorithm is not the right thing to use in every case, and in my experience it works best when there are a few points spaced out. This is probably one of those problems where there's not going to be a single best solution and you have to work on a case-by-case basis.
Jun
4
awarded  Good Answer
Jun
4
awarded  Nice Answer
May
30
awarded  Good Answer
May
27
comment How can I uncover the fraction line in beamer?
Mentionning \binom is perhaps a red herring. The key is using the \genfrac command upon which both \frac and \binom are based. You could even make an overlay-aware version of this to condense the code still further. Good answer.
May
10
comment How do I create a bordered Hessian matrix in LaTeX?
I totally misread the title for this question. I was going to suggest that taffeta might be a better choice.
May
5
comment Segmenting a Bezier curve into equal lengths in tikz/pgf
Glad it's useful. Incidentally, for the filling then I would work by defining clipping areas rather than try to redraw the individual segments. It's going to be hard to draw just a segment of the bézier curves, but if you clip against the original curves then you could use the coordinates to define a wedge-shaped segment that you fill with your shading and due to the clipping it will look as though you've just filled the area you want.
May
4
revised Segmenting a Bezier curve into equal lengths in tikz/pgf
added 1911 characters in body
May
4
answered Segmenting a Bezier curve into equal lengths in tikz/pgf