1

Something like this:

system with or

without too much stretching of the height of the system

I specifically want the word "or"/"and" to be inserted between the two lines (or more ?) of equation, using only cases is not a solution.

dexteritas
  • 9,161

3 Answers3

1

If I understood you question correctly, than the following MWE gives what you after:

\documentclass{article}
\usepackage{amsmath}

\begin{document} [ \left{\begin{aligned} x &= 1 \ \text{or} \ y &= 1 \ \end{aligned}\right. ] \end{document}

enter image description here

Zarko
  • 296,517
1

Plain TeX macro \cases doesn't add a space at the right when the second column is omitted.

$$
  \cases{ x = 1       \cr
          \hfil\rm or \cr
          y = 1
  }
$$
\bye
wipet
  • 74,238
0

Update.

It turns out cases, suggested below, leaves a small space behind, at the right and a better solution is proposed based on aligned environment

enter image description here

A comparison with cases

enter image description here

\documentclass{article}
\usepackage{amsmath}
\usepackage{mleftright}
\begin{document}
\mleftright
\begin{equation}
  \left\{
    \begin{aligned}
      x &= 1 \\
      y &= 1 \\
    \end{aligned}
  \right.\tag{1}
\end{equation}
\end{document}

Usually, the cases environment is for this type of expressions

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
  \begin{cases}
    x = 1 \\
    y = 1
  \end{cases}
\]

\end{document}

If you expect fractions and would like them to be typed in display style, use dcases instead

\documentclass{article}
\usepackage{mathtools}
\begin{document}
\[
 \begin{dcases}
   x = \frac{1}{2} \\
   y = 1
 \end{dcases}
\]
\end{document}
Celdor
  • 9,058