5

I don't want to use the \equation tag. But I want to write as follow:

Set of equations: x = y + 5
                  y = 3

I tried the alignment operator (&) but didn't work out. I tried \quad, \tab, but also couldn't get it. I tried \begin{itemize}, but it goes usually on new line, and I want the first equation on the same line.

  • There's an important distinction as to whether the equations should be part of a paragraph of text (as in Schrödinger's cat's answer), or whether "Set of equations:" should be part of a displayed set of equations (as in the other three answers). You've not said which, but should be aware of the difference. – Teepeemm Dec 5 '19 at 17:39
12

Welcome! You can use the aligned environment with [t] for that.

\documentclass{article}
\usepackage{amsmath}
\begin{document}
Set of equations: $\begin{aligned}[t]x &= y + 5\\
                  y &= 3\end{aligned}$
\end{document}

enter image description here

8

You can use the standard tabbing environment for this.

\documentclass{article}
\begin{document}
\begin{tabbing}
  Set of equations: \= $x = y + 5$ \\
                    \> $y = 3$     \\
\end{tabbing}
\end{document}

enter image description here

3

I would do it with flalign(*):

\usepackage{amsmath}
.........
\begin{flalign*}
&\rlap{Set of equations:} & x &= y + 5 & \\
              & &   y &= 3
\end{flalign*}

enter image description here

1

If it should be displayed math, you might just use align (or if the equations shouldn't be numbered align* instead):

\documentclass[]{article}

\usepackage[]{amsmath}

\begin{document}
\begin{align}
  \text{Set of equations:}\quad
  x &= y + 5 \\
  y &= 3
\end{align}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.