I am using the tooltip macro defined here
I realize that the following code works:
\tooltip****{foo}{\(x=4\)}
while
\tooltip****{foo}{\[x=4\]}
does not and it fails with
Bad math environment delimiter.
To me, the tooltip macro is like black magic but since it does not use any math stuff, I don't really understand where the error comes from. Is there a way to get around this?
In my case, the content of the tooltip comes from a variable and I would not mind substituting \[ \] by \( \) when I use my variable here.