
我在 Math StackExchange 上顯示 Mathematica 產生並匯出的 Latex 時遇到問題,對應於與分段函數的定義相關的下圖,該函數在 Latex 中作為嵌套數組匯出。
這是 Mathematica 產生並導出的 Latex:
$\begin{array}{cc}
\{ &
\begin{array}{cc}
\begin{array}{cc}
\{ &
\begin{array}{cc}
1 & \Im\left(1-2 n^s\right)<0 \\
-1 & \text{True} \\
\end{array}
\\
\end{array}
& \Re\left(1-2 n^s\right)<-1 \\
\begin{array}{cc}
\{ &
\begin{array}{cc}
-1 & \Im\left(1-2 n^s\right)>0 \\
1 & \text{True} \\
\end{array}
\\
\end{array}
& \Re\left(1-2 n^s\right)>+1 \\
\begin{array}{cc}
\{ &
\begin{array}{cc}
1 & \Im\left(1-2 n^s\right)<0 \\
-1 & \text{True} \\
\end{array}
\\
\end{array}
& \text{True} \\
\end{array}
\\
\end{array}$
Math StackExchange 抱怨“缺少 \end{array}”,如下圖所示。
我已經成功地在由 Mathematica 產生並匯出的 Math StackExchange Latex 上顯示不太複雜的陣列。
問題: Mathematica 產生和匯出的 Latex 是否有問題,或者 Math StackExchange 上這個 Latex 的 MathJax 渲染是否有問題?