我如何在数学文本旁边写一些内容?

我如何在数学文本旁边写一些内容?

我有一些巨大的矩阵或方程组妨碍了我写文本。基本上把它们都写在同一行已经够难的了,但当我想在旁边写点什么时,这是一项无望的任务

$\left\{\begin{matrix}
f_x(x,y,z) = 0 \\ 
f_y(x,y,z) = 0 \\ 
f_z(x,y,z) = 0\\
\end{matrix}\right. \iff 
\left\{\begin{matrix}
 y = 0 \\ 
 x = 0 \\ 
 z = 0\\
 \end{matrix}\right. \iff
 \left\{\begin{matrix}
  y = 0 \\ 
  x = 0 \\ 
 z = \frac{1}{2}\\
\end{matrix}\right.$ I can't write anything here "beside" it because it's just going to get cut off and goes under the system of equations

答案1

您可以\textamsmath包中使用;如果需要,\parbox可以使用来容纳长文本。埃格尔在评论中提到,您可以使用来自的环境,而不是使用matrix和;这里有一个显示两种可能性的示例:\left\right.casesamsmath

\documentclass{article} 
\usepackage{amsmath}

\begin{document}

\[
\left\{\begin{matrix}
f_x(x,y,z) = 0 \\ 
f_y(x,y,z) = 0 \\ 
f_z(x,y,z) = 0
\end{matrix}\right. \iff 
\left\{\begin{matrix}
 y = 0 \\ 
 x = 0 \\ 
 z = 0
 \end{matrix}\right. \iff
 \left\{\begin{matrix}
  y = 0 \\ 
  x = 0 \\ 
 z = \frac{1}{2}
\end{matrix}\right.\qquad
\text{\parbox{4cm}{I can write anything here "beside" using a box if necessary}}
\]

\[
\begin{cases}
f_x(x,y,z) = 0 \\ 
f_y(x,y,z) = 0 \\ 
f_z(x,y,z) = 0
\end{cases} \iff 
\begin{cases}
 y = 0 \\ 
 x = 0 \\ 
 z = 0
 \end{cases} \iff
 \begin{cases}
  y = 0 \\ 
  x = 0 \\ 
 z = \frac{1}{2}
\end{cases}\quad
\text{\parbox{3.5cm}{I can write anything here "beside" using a box if necessary}}
\]

\end{document}

在此处输入图片描述

相关内容