Reputation
83,110
Next tag badge:
131/100 score
19/20 answers
Badges
18 214 453
Impact
~2.8m people reached

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
comment Segmenting a Bezier curve into equal lengths in tikz/pgf
Bezier curves are not parametrised by arc length. One way to achieve this would be to use a decoration that marks the curve at suitable intervals with coordinates (then afterwards join those coordinates).
Mar
29
comment tikzmark and xelatex
For your example code then you wouldn't need \pgfmark inside the node as you could give a name to the node and use that instead. \tikzmark and \pgfmark shouldn't be used inside an existing tikzpicture. I wrote the \subnode command to avoid this problem since lots of people seemed to insist on using \tikzmark inside a tikzpicture!
Mar
28
comment How to write a calligraphic letter with a check hat?
I think that this answer was perfectly fine as it was when I saw it, not every question or answer needs a MWE. This one is so straightforward that a MWE is overkill. Also, answers in comments are not answers so the fact that someone posted a solution in a comment (and let's note it was only partial!) does not mean that no-one can post a proper answer. I added a little extra to hopefully satisfy those not happy with this. Welcome to the site, Carlos, and I hope that in future we can remedy this unfortunate first impression. We pride ourselves on being the friendliest StackExchange site.
Mar
23
comment Amusing exercise - ouroboros file - Output of TeX includes itself recursively ad infinitum
@cfr No, you don't need the =. \let\a\b and \let\a=\b are the same. I find the second easier to see at a glance what it's doing so tend to put the equals sign in place. I understand that in the Good Old Days, tokens were precious and so the = was frowned upon. Nowadays, we're gluttonous about tokens so the difference is in the mind of the beholder.
Mar
23
comment Amusing exercise - ouroboros file - Output of TeX includes itself recursively ad infinitum
@cfr Oh, I was just helicoptering in with how to remove the \newpage from \includepdf since that was something I'd wanted to do myself. I hadn't thought about the context. Sorry.
Mar
22
comment Amusing exercise - ouroboros file - Output of TeX includes itself recursively ad infinitum
@cfr I find \includepdf easier when I want a full page inclusion, ie I want the PDF page as the background to the current page, possibly for further annotation. With \includegraphics then TeX complains if the graphic is larger than the available text space on the page.
Mar
22
comment Amusing exercise - ouroboros file - Output of TeX includes itself recursively ad infinitum
\let\newpage=\relax before the \includepdf kills the new page (best be inside a group at that point).
Feb
26
comment Triple lines in TikZ
@LaRiFaRi Did you not notice the date on this one? The likelihood of me being able to remember what on earth I was thinking back then is almost surely zero. I have 900 tex files in my scratch directory and I'm not looking through them all to find the one with the solution in it.
Feb
14
comment Block quote with big quotation marks
@Johannes_B Feel free to edit the answer with that change. As this is over three years old, I don't feel able to resurrect it myself.
Feb
1
comment hobby: using tangency information at a point when drawing paths
I don't get that error when I run the above code, so I can't help you there.
Dec
29
comment Showcase of “programming your document” paradigm
@student The point about those ones is that they didn't start life as packages and only became packages to make them easy to distribute. The line between package and preamble is somewhat blurred.
Dec
29
comment Showcase of “programming your document” paradigm
@student Yes, of course. I just wanted to know if I was on the right lines before writing anything. I also wonder if my various graphics packages (knots, hobby, celtic knots, calligraphy) would count.
Dec
29
comment Showcase of “programming your document” paradigm
@student Would my answer to the SO question fit your question here? (NB I didn't mean that the two were duplicates, just that they were related.)
Dec
29
comment Showcase of “programming your document” paradigm
See stackoverflow.com/q/2968411/315213 for an older version of this question on StackOverflow.
Dec
15
comment Drawing knots with tikz - no visible crossings
@ulead86 See updated answer. That gave me the clue to what was actually going on here. Thanks.
Dec
15
comment Drawing knots with tikz - no visible crossings
@ulead86 The difference between the two diagrams comes in the scale=X option on the outer tikzpicture. The issue in your diagram is that the crossing is being ignored because it is failing a distance test. By scaling up the diagram, you effectively lower the tolerance on that distance test and so make it more likely that the crossing will get seen.
Dec
15
comment “Z-level” in TikZ
@Kpym It's been over two years since I last looked at this code so I don't actually remember what that was for. Most likely, it was part of some code in an older version that I forgot to delete in the last version.
Dec
14
comment Drawing knots with tikz - no visible crossings
@cfr Interestingly, the necessity of no spaces is because the knot environment is defined using \NewDocumentEnvironment from xparse rather than the standard \newenvironment.