2
\documentclass{article}
\usepackage{amsmath}

\begin{document}

\begin{align}
\begin{aligned}
    x &= 1 & y &= 233 & z &= 2
\end{aligned}
\\
\begin{aligned}
    a &= 44444444444444444444 & c &= 545554
\end{aligned}
\end{align}

\end{document}

What I get

enter image description here

What I need

enter image description here

I need it only for one group of equations, so I don't want to load fleqn. I tried using flalign, adding & at the end of the aligned, or \RaggedLeft from ragged2e, but nothing worked.

I can make them centered with gather instead of align, but can't make them flushed left.

3
  • 1
    what is the intention of the aligned here? they only have one row so there is no alignment possible? Commented Oct 21, 2023 at 8:47
  • 1
    just use a standard align with a single & before the first = on each row and no nested environments, that is the only alignment point you want, so the only place you need & Commented Oct 21, 2023 at 8:48
  • 1
    Right, my original set of equations was with aligned rows but I ended up splitting them. I didn't think about removing the & as well, and ended up making things overly complicated :)
    – Simon
    Commented Oct 21, 2023 at 9:24

1 Answer 1

5

How about a single align environment and a single alignment point per row?

enter image description here

\documentclass{article}
\usepackage{amsmath}
\begin{document}

\begin{align}
    x &= 1 \quad  y = 233 \quad  z = 2 \\
    a &= 44444444444444444444 \quad  c = 545554
\end{align}

\end{document}
2
  • 1
    I was just going to post same, but with qquad:-) Commented Oct 21, 2023 at 8:52
  • 1
    The simplest way seems to be always the best way! +1
    – Zarko
    Commented Oct 21, 2023 at 8:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .