Hi all,
this is my first question here… I hope I am in the right place. So, this is a quite esoteric question so the example is a bit convoluted (and verbose, because I think it’s easier to understand like this).
The idea for the code is to have a command like \appearingbox<2->{name}{content}
. This will typeset the content more or less “plain” in the first overlay and then boxed in the second one. Moreover, I will have the name
available to link things with drawings.
I will dump the code here, will explain the problem after it.
This is the output:
Notice that when I use manually the versions of the \appearingbox
macro for each style (non-math, displaystyle, etc.) like in the first frame (first row in the image) all is ok. The nodes are usable outside the command and, after a couple of runs, they work beautifully.
On the other hand, if I try to automatically select the appropriate function by way of \ifmmode
and mathchoice
I have a very puzzling (at leat for me) result. The appropriate macro is invoked but, alas, the nodes are in the wrong site.
I tried with \expandafter
trickery, with older and newer TeXLives, by dancing around the computer… nothing works. I can survive with the manual method, but now I lost two hours trying to understand what happens and I’d like to understand it. Although probably the problem is that I misused \mathchoice
(although I have a very similar construct in my package circledsteps
).
Thanks!