78,445 reputation
15197423
bio website loopspace.mathforge.org
location
age
visits member for 4 years, 1 month
seen 3 hours ago

Jun
4
comment How to get intersection point(s) of two glyphs?
Oh, and if you have any specific questions about the bits and pieces of my code that you've used, just ask.
Jun
4
comment How to get intersection point(s) of two glyphs?
Yay! That looks awesome. I think that there are some bugs with name path global, but I'm not sure if they've been fixed or not (see the PGF bug list).
Jun
4
comment Rescale a character to fill a complete A4 page
My strategy for this is to print it out normal size on an empty page using standalone to crop the PDF to the size of the letter(s). Then in my PDF viewer I print it out scaling it up to fit.
May
29
comment Parameterized anchors in pgf/tikz
I did this with the original version of the TQFT package (that used nodes, the latest version uses pics). I based it on the code for the polygon shape that comes with TikZ.
May
28
comment Trouble defining new environment with embedded gather
@Werner That looks like the one I was thinking of.
May
28
comment TikZ: extend a line along a path
Or maybe not. To be on the line from the focal point, we're treating the lens as a single object rather than as a composite of two edges and only interested in the path of the ray as it comes out of the lens. So I agree with your picture.
May
28
comment TikZ: extend a line along a path
I think that the bend should be at the point where the incoming ray hits the edge of the lens, not at the (vertical) centre of the lens.
May
28
comment Trouble defining new environment with embedded gather
You're using amsmath, the other answer used mathtools. There was a question here about using align within a custom environment with amsmath, but I can't find it right now. I think that the solution was to use the environ package.
May
28
comment TikZ: extend a line along a path
Plus the calc library to draw the extension since you can draw from the intersection in the direction of F for -1cm, or however long you want.
May
28
comment TikZ: extend a line along a path
If you want a single path then the intersections library is the way to go.
May
28
comment TikZ: extend a line along a path
Would you accept a clip to the lens path? If not, the best I can think of would be to use intersections to compute the starting points of the rays.
May
28
comment How can I break a macro / how to realize a switch or array-structure
@DavidCarlisle I applaud your sense of morality.
May
28
comment How can I break a macro / how to realize a switch or array-structure
@DavidCarlisle You misunderstand where I want to put the \long. Since you define \foo using \newcommand* then I think you should also define \setfoo using \newcommand* as the arguments are used in the same way. Whether or not you want to allow \foo and \setfoo to eat a \par is, as both you and egreg point out, simply a matter of choosing your error message. But whatever you choose, you should be consistent about your choice.
May
28
comment How can I break a macro / how to realize a switch or array-structure
If \foo is not \long, shouldn't \setfoo also not be \long?
May
28
comment How can I break a macro / how to realize a switch or array-structure
Wouldn't a prop be more efficient here?
May
27
comment How to get intersection point(s) of two glyphs?
See tex.stackexchange.com/q/21548/86 for getting paths from glyphs.
May
26
awarded  Enlightened
May
26
awarded  Nice Answer
May
20
comment Color gradient fill between three corners of a triangle
Filling a polygon using triangles is not an easy task. I looked into this recently for another system and even for quadrilaterals it's not trivial (see loopspace.mathforge.org/discussion/38/filling-a-quadrilateral for what I came up with). So I think you need to think a bit more carefully about what you want the result to be.
May
20
comment Color gradient fill between three corners of a triangle
Did you see tex.stackexchange.com/q/14613/86?