76,680 reputation
14191413
bio website loopspace.mathforge.org
location Trondheim, Norway
age 38
visits member for 3 years, 11 months
seen 6 hours ago

Jul
8
comment When defining a new macro inside a new macro (in xparse) how do I make the internal map long?
Your passed argument is a string, not a command name. You need to do \DC{\test}
Jun
23
comment How to upload LaTeX-generated pdf paper to arXiv without LaTexXsources
@vonbrand If the source is detected as LaTeX, then the PDF that you download from the arXiv has been automatically generated by them.
Jun
22
comment How to upload LaTeX-generated pdf paper to arXiv without LaTexXsources
@Alex Some of us think that publishers are as outdated as LaTeX 2.09 ... Seriously, once a publisher agrees to publish my paper then I'll downgrade it (and I have done this: I downgraded one paper from TikZ to xy). Before that, I'm not going to anticipate something that might not happen and so I'll take advantage of the latest features to make my paper as nice to read as possible.
Jun
22
comment How to upload LaTeX-generated pdf paper to arXiv without LaTexXsources
@Alex The arXiv doesn't always have the most up to date versions of packages, meaning that a document using new features might not compile. So it's not necessarily about not uploading the sources, but ensuring that the arXiv doesn't actually try to compile those sources.
Jun
22
comment How to upload LaTeX-generated pdf paper to arXiv without LaTexXsources
pdfpages is your friend here. Create a wrapper latex file that includes the other as a series of pdf pages.
Jun
21
comment Align in nested node
Nesting tikzpictures rarely works well (search on this site). Would a solution that avoided that be acceptable?
Jun
20
comment Using cabin cooperatively
Since you're using git, this sounds like an ideal use case for something like git submodules (there are alternatives).
Jun
20
comment ConTeXt with LuaTeX to compile mathml
Wouldn't this be easiest to do afterwards via CSS?
Jun
18
comment Reading - and effect - of (default) tikz/pgf keys?
@PaulGaborit I didn't know that! Looking at the code, the important part is that \begin{scope}[<stuff>] includes \tikzset{<stuff>}\tikz@options so the \tikz@addoption part of the line width=<length> key does get executed when the scope starts, setting the line width properly. I'll edit that into my answer as it's a useful work-around.
Jun
17
comment Accessing node name within node text braces
In that case, I was going to suggest essentially what Ignasi wrote.
Jun
17
comment Accessing node name within node text braces
What version of TikZ are you using?
Jun
17
comment Anchoring TiKZ pics
Having said that, the node anchor system isn't really any more sophisticated. So as a general rule I would say "If you could do it with nodes, you can redo it with pics, but perhaps not as prettily".
Jun
17
comment Anchoring TiKZ pics
I would say that the answer is "Yes, with caveats". Take a look at the latest version of the TQFT package. That was rewritten with pics instead of nodes and has the facility to position relative to an "anchor", but the shift computation has to be done "by hand" rather than by PGF. So if you can code it, you can shift it.
Jun
17
comment Anchoring TiKZ pics
How "dynamic" are your anchors? As far as I'm aware, the way to do this is to internally shift the whole pic so that a given point is now at (0,0) (in the pics coordinate system). But doing this involved knowing at the start of the pic where the desired anchor point is going to be. Is that easily computable in your use-cases (as it is in your example)?
Jun
11
comment Tikz Graphics: Curved arrow drawn parallel to curved line
"I have no idea of the equations that should be solved to find those control points." There are none. A parallel displacement of a generic cubic bézier is not necessarily again a cubic bézier so the problem cannot be solved exactly (which is why lots of the solutions for finding parallel paths use workarounds such as yours or using double lines).
Jun
11
comment Tikz Graphics: Curved arrow drawn parallel to curved line
A line parallel to a bezier curve is not necessarily again a bezier curve so it is not possible to draw a mathematically accurate parallel line in PDF format.
Jun
11
comment 2 arrows at same distance
The "glitch" is most likely due to anti-aliasing in the PDF viewer whereby the edge of the overlaid white line is transparent and so shows a trace of the black line underneath.
Jun
4
comment How to get and process bitmap graphics at a pixel level on-the-fly?
Take a look at the pullquote package, see tex.stackexchange.com/a/70169/86, as I think that does something like that.
Jun
4
comment How to get intersection point(s) of two glyphs?
I use the CVS version of TikZ and I know that the name path global has had issues in the past, so it may well come down to that.
Jun
4
comment How to get intersection point(s) of two glyphs?
Regarding conversion of fonts, there's the script x2svg.pe which uses FontForge to convert an arbitrary font to SVG type. Then the program svgtopgf.pl converts the resulting SVG to PGF paths. That program was written specifically for font files so I wouldn't expect it to work on an arbitrary SVG.