Type the following in a Mathematica DisplayFormula cell(other styles may also encounter this problem): Esc+$l$+|+Esc and Esc+$r$+|+Esc, and save as LaTeX.
Note: See the difference of the character between | |.
$z$ and $z_1$, $|z|$, $|z_1|$
Cell[BoxData[
RowBox[{"\[LeftBracketingBar]",
SubscriptBox["z", "1"], "\[RightBracketingBar]"}]], "DisplayFormula"]
with subscript, then...
Mathematica inserts extra \left
and \right
for absolute values in the LaTeX output:
%% AMS-LaTeX Created by Wolfram Mathematica 9.0 : www.wolfram.com
\documentclass{article}
\usepackage{amsmath, amssymb, graphics, setspace}
\newcommand{\mathsym}[1]{{}}
\newcommand{\unicode}[1]{{}}
\newcounter{mathematicapage}
\begin{document}
\[
\left\left| Z_1+Z_2\right\right| \leq \left\left| Z_1\right\right| +\left\left| Z_2\right\right|
\]
\end{document}
What should I do to get valid output that LaTeX will accept?
Comments
Post a Comment