Reputation
91,330
Next tag badge:
139/100 score
19/20 answers
Badges
21 241 487
Newest
 Necromancer
Impact
~3.8m people reached

Jun
8
comment Unit-free ratios in \path let
Don't be sorry!
Jun
8
reviewed Approve Sectioning bibliography by type of referred item
Jun
8
comment Length, surface, and coordinates of a tikz-pgf path
@Marco: Now that I've thought a bit more, and looked for easy formulae on the internet, I'm curious as to why you want these numbers for a TikZ path. My instinct is to say that if you need these numbers, then you should build your path first in an external program that can do decent numerical integration and then get it to print the path and numbers in a format easily importable to TeX. Something like the way that TikZ can export plots to gnuplot for the computation but then do the rendering itself.
Jun
7
answered Length, surface, and coordinates of a tikz-pgf path
Jun
7
reviewed Approve Which font is the most comfortable for on-screen viewing?
Jun
7
comment Create B-Lymphocyte picture
Can you link to a picture of the type you would like to create (for those of us not sure what a B-Lymphocyte looks like)?
Jun
7
revised Data structures for TeX
Fixed a link (catn -> ctan)
Jun
7
comment Writing Gauss-Jordan Transformation Matrix
You might find the answers at this question useful as well: tex.stackexchange.com/q/2233/86
Jun
7
comment Length, surface, and coordinates of a tikz-pgf path
@Marco: No, save path is not documented. I only learnt about it from searching through the TikZ/PGF code for examples of \pgfsyssoftpath@getcurrentpath (which is documented). To use the path with the normal TikZ options, you would need to write a wrapper macro. But that wouldn't be very hard to do. I'll have a go later today if I get a moment.
Jun
7
comment I'm a cargo cult programmer …
@David: Everything gets expanded in its time, so by "force an expansion" you mean that you want something expanded before its time. To do that, you need TeX to be in an expansive mood, which means that it is either processing as normal or inside an \edef (or something similar). There's no way to force an expansion if TeX isn't feeling expansive (such as inside a \def) which is why tricks like the above are used. I recommend that you browse "TeX by Topic" (texdoc texbytopic). That and this site are my main resources for learning about this sort of thing.
Jun
6
comment Length, surface, and coordinates of a tikz-pgf path
If you look in the PGF manual at the relevant chapter (forget which, but it's at the end) then you'll see that there aren't that many tokens: moveto, lineto, curveto, curvetosupporta, curvetosupportb, rect, rectsize, and closepath (if I remember right).
Jun
6
comment Length, surface, and coordinates of a tikz-pgf path
@Marco: you can save the internal representation of the path, is that what you mean? \path[save path=\mypath] path-construction; will do that. Then you can reuse it as you like. As part of my calligraphy package, I'm currently writing a set of routines that will manipulate these paths (such as translating them or reversing them). But the best way to save it depends on how you want to use it, which is why I asked for pseudo-code.
Jun
6
comment I'm a cargo cult programmer …
@David: The token \xdef is not expandable, so the expansion operator ignores it. One could say that \xdef comes with a \noexpand already built in. When the macro is called, then it gets processed. You could try putting \show\@temp with and without the \noexpand in front of the \xdef (and try removing a few other \noexpands just to see what effect they have).
Jun
6
comment Length, surface, and coordinates of a tikz-pgf path
What do you think of as being a tikz-pgf path? Can you give a pseudo-code of what you would like to be able to do?
Jun
6
comment Help drawing a figure with pgf
Much as it loathes me to say it, not everything has to be done using TikZ! Nice solution.
Jun
6
comment What one CANNOT do with TikZ?
@Jasper (et al): I can do braids, knots, and links in TikZ. Not sure what is so hard about 2-cells and 3-cells - maybe you should post a question! I recently did a fractal for one answer (can't find it right now, it was the H-graph).
Jun
6
comment I'm a cargo cult programmer …
@Yiannis: Odd, I got errors as reported.
Jun
6
comment I'm a cargo cult programmer …
Good point about the braces! I've edited mine to provide an alternative without them.
Jun
6
revised I'm a cargo cult programmer …
Extended example to something that does what I think is actually wanted.
Jun
6
comment I'm a cargo cult programmer …
PS I'm unashamedly a Cargo Cult Programmer myself. One reason I like this place is that it's a gentle way of finding out more.