I am using a stylesheet to convert MathML to LaTeX. When I try to convert:
<mrow> <mo>|</mo> <mi>a</mi> <mo>|</mo> </mrow>
In latex that should be written as:
\left\vert a \right\vert
Now the problem. I could easily write:
\vert a \vert
But in case when instead of 'a' there is some large expression, the vertical lines will not be tall as the expression, but stay the small. That is what
\right are for. Is there any easy way to do this that I don't see here, or do I need to parse the MathML in a way so I would know which vertical line is left and which is right? Thanks.