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

Apr
26
comment Using newer version of tikz-cd for arXiv submissions
This is what externalisation is designed for. However, there are issues using externalisation with tikz-cd. See tex.stackexchange.com/q/171931/86 for details and a (hacky) solution.
Apr
26
comment Interchange variables in LaTeX (to be used with TikZ)
Prefix the \lets with \global. The \foreach stuff takes place inside a group so the assignments are local and reset each time through the loop.
Apr
14
comment Passing special characters to “shorthand” x+y options in TikZ
Sounds a reasonable plan. By the way, I think that the protection of ] is more to do with the fact that keys are often set in the optional argument to a tikzpicture environment or drawing command and so any ] needs protecting otherwise it is taken as the ending square bracket.
Apr
14
comment Passing special characters to “shorthand” x+y options in TikZ
Of course, you can always overwrite the definition of minimum size in your own preamble.
Apr
14
comment Passing special characters to “shorthand” x+y options in TikZ
Found another one: \tikzset{/pgf/minimum size ={{{{max(1,2)}}}}} (that's two fewer braces). Without the /pgf/ prefix, it tries /tikz/minimum size first and when that doesn't work it gets passed to /pgf/minimum size and presumably that strips off another couple of braces. So I guess the point is that these keys get bounced around quite a bit in the key handling and lots of braces get stripped off (and I suspect it would be hard to ensure that they didn't). I think your fix for pgfmodule.shapes.code.tex would be the "right" answer.
Apr
14
comment Passing special characters to “shorthand” x+y options in TikZ
Last one (for now): \tikzset{minimum size =max{(1,2)}}. A quick check with \pgfmathparse shows that max{(1,2)} works as it should.
Apr
14
comment Passing special characters to “shorthand” x+y options in TikZ
Also worked: \tikzset{minimum size ={{max(1,2)}{}}} (the empty group prevents the inner braces from being stripped by macro parameter expansion).
Apr
14
comment Passing special characters to “shorthand” x+y options in TikZ
I don't think you show sufficient desperation, young padawan. It works if you try \tikzset{minimum size ={{{{{{max(1,2)}}}}}}}.
Apr
14
comment How to draw the Dynkin diagrams by the Xy-pic package?
Does it have to be xy-pic? There are already some questions about Dynkin diagrams here, for example tex.stackexchange.com/q/5309/86 and tex.stackexchange.com/q/409/86
Apr
11
comment How should imaginary numbers be typeset?
@barbarabeeton Ah, okay. Then I shan't feel guilty about it. For myself, I feel I can now dispense with "mathematical tradition" with impunity and so don't lose sleep over such matters any more.
Apr
11
comment How should imaginary numbers be typeset?
@barbarabeeton Don't keep looking on my account! I couldn't care less what the "official" rules are. Back when I used to lecture, then I used roman i because the reason for it made perfect sense, but then I also used to colour letters by type (red for reals, purple for complex) to make it easy to distinguish the role a letter played by what it looked like and I felt that was useful for students encountering them for the first time. For "experienced" mathematicians, such as my esteemed colleague egreg, this isn't necessary and is a distraction. So for me its value is purely pedagogical.
Apr
11
comment How should imaginary numbers be typeset?
@barbarabeeton "The exception proves the rule": that footnote singles out the "d" of "dy/dx" for italic, thus all other constants and operators should be in roman type. In particular, "i" is a constant and so should be in roman type.
Apr
11
comment How to draw the following picture in LaTeX?
Tip for the future: you could expand a little on "it doesn't work" to give answerers a hint as to what they might expect to see when they try your code. "It doesn't work" could mean anything from "the arrows go to the wrong places" to "my computer overheated and I had to call the fire brigade".
Apr
8
comment Help with drawing tikz diagrams of worldsheet topologies
@JMP If there aren't any boundary components of a particular type then there aren't any nodes at those points. But the other nodes should be there and named as normally.
Apr
7
comment Help with drawing tikz diagrams of worldsheet topologies
Sorry, misunderstood! Actually, you don't want cobordism height, you want circle x radius and boundary separation. Inside the every tqft/.append style put tqft/circle x radius=5pt,tqft/boundary separation=1cm.
Apr
7
comment Help with drawing tikz diagrams of worldsheet topologies
The cobordism height is the "height" between the line of incoming bdry and outgoing bdry components. As you're rotating your diagrams, that's the width as you have it. So that key should be what you're looking for for the scaling. The initial value is 2cm, so you could try setting it to 1cm and see if that helps.
Apr
7
comment Refer to a node in tikz that will be defined “in the future” (two passes)?
@cfr I just looked at your profile picture. You may be interested in another of my packages ...
Apr
7
comment Help with drawing tikz diagrams of worldsheet topologies
This is just a comment so that if you have questions about the tqft package you can use the @ invocation to draw my attention to them.
Apr
7
comment Refer to a node in tikz that will be defined “in the future” (two passes)?
@cfr Just uploaded the new version, should be hitting the servers soon.
Apr
5
comment Help with drawing tikz diagrams of worldsheet topologies
\usetikzlibrary{tqft} would be a good place to start