如何并排排列两个方程组?

如何并排排列两个方程组?

我有以下方程组,我希望它们并排,每个方程组下面都有一个简短的描述,这是我在之后写的文字\end{cases}\\

下面是我的源代码,它输出两个系统,但右边的系统比另一个系统低一点:

\begin{flushleft}
\begin{cases}
I_{50}+I_{10}=I_{03}\\
I_{21}=I_{12}+I_{10}\\
I_{12}+I_{32}=I_{21}\\
I_{03}=I_{32}+I_{34}\\
I_{34}=I_{451}+I_{452}\\
\end{cases}\\, pentru legea I, si 
\end{flushleft}
\begin{flushright}
\begin{cases}
U_{30}+U_{01}+U_{121}+U_{23}=0\\
U_{34}+U_{452}+U_{50}+U_{30}=0\\
U_{121}+U_{122}=0\\
U_{451}+U_{452}=0\\
\end{cases} \\
pentru legea a II-a
\end{flushright}

答案1

两个解决方案,一个与flalign*环境有关,另一个alignat*可以让您控制两个系统之间的距离:

    \documentclass{article}
\usepackage[showframe]{geometry}
    \usepackage{mathtools}

    \begin{document}
A solution with \texttt{flalign*}:
\begin{flalign*}
  & \begin{aligned} & \begin{cases}
  I_{50}+I_{10}=I_{03}\\
  I_{21}=I_{12}+I_{10}\\
  I_{12}+I_{32}=I_{21}\\
  I_{03}=I_{32}+I_{34}\\
  I_{34}=I_{451}+I_{452}\\
  \end{cases}\\
  \MoveEqLeft[-1]\text{pentru legea I, si}
  \end{aligned}
  & &
  \begin{aligned}
      & \begin{cases}
    U_{30}+U_{01}+U_{121}+U_{23}=0\\
    U_{34}+U_{452}+U_{50}+U_{30}=0\\
    U_{121}+U_{122}=0\\
    U_{451}+U_{452}=0\\
    \end{cases} \\
    \MoveEqLeft[-1]\text{si pentru legea a II-a}
  \end{aligned}
\end{flalign*}
\vskip 3ex
A solution with \texttt{alignat*}:
\begin{alignat*}{2}
    & \begin{aligned} & \begin{cases}
  I_{50}+I_{10}=I_{03}\\
  I_{21}=I_{12}+I_{10}\\
  I_{12}+I_{32}=I_{21}\\
  I_{03}=I_{32}+I_{34}\\
  I_{34}=I_{451}+I_{452}\\
  \end{cases}\\
  \MoveEqLeft[-1]\text{pentru legea I, si}
  \end{aligned}
    & \hskip 6em &
  \begin{aligned}
  & \begin{cases}
  U_{30}+U_{01}+U_{121}+U_{23}=0\\
  U_{34}+U_{452}+U_{50}+U_{30}=0\\
  U_{121}+U_{122}=0\\
  U_{451}+U_{452}=0\\
  \end{cases} \\[3.3ex]
  \MoveEqLeft[-1]\text{si pentru legea a II-a}
  \end{aligned}
\end{alignat*}

\end{document} 

在此处输入图片描述

答案2

在:align*tabularx

% arara: pdflatex

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[romanian]{babel}
\usepackage{combelow}
\usepackage{newunicodechar}
\newunicodechar{ș}{\cb{s}}
\usepackage{mathtools}
\usepackage{tabularx}
\usepackage{blindtext}

\begin{document}
\blindtext
\begin{tabularx}{\textwidth}{XX}
{\begin{align*}
&\begin{cases}
I_{50}+I_{10}=I_{03}\\
I_{21}=I_{12}+I_{10}\\
I_{12}+I_{32}=I_{21}\\
I_{03}=I_{32}+I_{34}\\
I_{34}=I_{451}+I_{452}\\
\end{cases}\\
&\text{, pentru legea I, și}\end{align*}} 
& 
{\begin{align*}
&\begin{cases}
U_{30}+U_{01}+U_{121}+U_{23}=0\\
U_{34}+U_{452}+U_{50}+U_{30}=0\\
U_{121}+U_{122}=0\\
U_{451}+U_{452}=0\\
\end{cases}\\ 
\\ % optional
&\text{pentru legea a II-a}\end{align*}} 
\end{tabularx}
\blindtext
\end{document} 

在此处输入图片描述

答案3

使用 align* 和 aligned

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[romanian]{babel}
\usepackage{combelow}
\usepackage{newunicodechar}
\newunicodechar{ș}{\cb{s}}
\usepackage{mathtools}
\usepackage{blindtext}

\begin{document}
\blindtext

\begin{align*}
&\left\{
\begin{aligned}
I_{50}+I_{10}=I_{03}\\
I_{21}=I_{12}+I_{10}\\
I_{12}+I_{32}=I_{21}\\
I_{03}=I_{32}+I_{34}\\
I_{34}=I_{451}+I_{452}\\
\end{aligned}\right.
&
\left\{\begin{aligned}
U_{30}+U_{01}+U_{121}+U_{23}=0\\
U_{34}+U_{452}+U_{50}+U_{30}=0\\
U_{121}+U_{122}=0\\
U_{451}+U_{452}=0\\
\end{aligned}\right. \\
&\text{, pentru legea I, și}
&\text{pentru legea a II-a}
\end{align*}

\blindtext
\end{document} 

在此处输入图片描述

相关内容