In[116]:= Abs[a^n] // TeXForm
Out[116]//TeXForm= \left\left| a^n\right\right|
But the result isn't valid TeX. It won't work here:
$\left\left| a^n\right\right|$
or on texpaste.com, where the error is "Missing or unrecognized delimiter for \left".
Is this a known bug and is there a known workaround?
OK, it turns out the workaround is to just remove the spurious \left
and \right
, so that \left| a^n\right|
works fine:
$\left| a^n\right|$
However, not sure if this workaround works in general, or just in this simple case.
In[49]:= $Version
Out[49]= 9.0 for Linux x86 (32-bit) (November 20, 2012)
\left\left
, not just\left
which should be fine. Can\left
be followed by another\left
in AMS-LaTeX? In other words,\left
is being used as a delimiter for another\left
which is probably wrong. You need\left(something)
not\left\left
$\endgroup$