讓案件一個接一個排成一排

讓案件一個接一個排成一排

我想知道如何讓案例排在一行中,並用 \Leftrightarrow 分隔,而不是在彼此下方。

   \begin{cases} 
    S_{x}k + S_{y}t = q \\
    S_{x}a + S_{b} = p \\ 
\end{cases}
\\
\begin{cases} 
    S_{x} + S_{y} \frac{p}{k} = \frac{q}{k} \\
    S_{y} \left( \frac{b}{a} - \frac{p}{k} \right) = \frac{p}{a} - \frac{q}{k} \\
\end{cases}
\\
\begin{cases} 
    S_{x} + S_{y} \frac{p}{k} = \frac{q}{k} \\
    S_{y} = \frac{pk - qa}{bk - pa} \\
\end{cases}
\\
\begin{cases} 
   S_{x} = \frac{p^{2} - bq}{ap -bk} \\
    S_{y} = \frac{pk - qa}{bk - pa} \\
\end{cases}

答案1

我假設,案例顯示的是數學...

\documentclass{article}
\usepackage[margin=2cm,showframe]{geometry}
\usepackage{mathtools}
\parindent=0pt

\begin{document}
\[
\begin{dcases}
    S_{x}k + S_{y}t = q \\
    S_{x}a + S_{b} = p \
\end{dcases}
\quad
\Leftrightarrow
\qquad
\begin{dcases}
    S_{x} + S_{y} \dfrac{p}{k} = \dfrac{q}{k} \\
    S_{y} \left( \dfrac{b}{a} - \dfrac{p}{k} \right) = \dfrac{p}{a} - \dfrac{q}{k}
\end{dcases}
\quad
\Leftrightarrow
\qquad
\begin{dcases}
    S_{x} + S_{y} \dfrac{p}{k} = \dfrac{q}{k} \\
    S_{y} = \dfrac{pk - qa}{bk - pa}
\end{dcases}
\quad
\Leftrightarrow
\qquad
\begin{dcases}
   S_{x} = \dfrac{p^{2} - bq}{ap -bk} \\
    S_{y} = \dfrac{pk - qa}{bk - pa}
\end{dcases}
    \]
\end{document}

在此輸入影像描述

答案2

\hfill $\Leftrightarrow$ \hfill只需在每個環境之間添加cases即可創建可拉伸的空間。

\documentclass{article}
\usepackage[margin=2cm]{geometry}
\usepackage{amsmath}
\parindent=0pt
\begin{document}

$\begin{cases} 
    S_{x}k + S_{y}t = q \\
    S_{x}a + S_{b} = p \\ 
\end{cases}$
\hfill
$\Leftrightarrow$
\hfill
$\begin{cases} 
    S_{x} + S_{y} \frac{p}{k} = \frac{q}{k} \\
    S_{y} \left( \frac{b}{a} - \frac{p}{k} \right) = \frac{p}{a} - \frac{q}{k} \\
\end{cases}$
\hfill
$\Leftrightarrow$
\hfill
$\begin{cases} 
    S_{x} + S_{y} \frac{p}{k} = \frac{q}{k} \\
    S_{y} = \frac{pk - qa}{bk - pa} \\
\end{cases}$
\hfill
$\Leftrightarrow$
\hfill
$\begin{cases} 
   S_{x} = \frac{p^{2} - bq}{ap -bk} \\
    S_{y} = \frac{pk - qa}{bk - pa} \\
\end{cases}$

\end{document}

相關內容