1

I wrote this code:

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

\begin{subequations} \begin{align} f(x) &= \cos x, \qquad h(x) = -x, \ g(x) &= x, \qquad l(x) = \sin x. \end{align} \end{subequations}

\end{document}

I got this result:

What do I have to change for the equal signs in the right column to be also aligned (note that I want to conserve the labels as they are)?

Werner
  • 603,163
jmaguire
  • 115

1 Answers1

2

This is typically done in an align with the introduction of additional &'s:

enter image description here

\documentclass{article}

\usepackage{amsmath}

\begin{document}

\begin{subequations} \begin{align} f(x) &= \cos x, & h(x) &= -x, \ g(x) &= x, & l(x) &= \sin x. \end{align} \end{subequations}

\end{document}

The equations are spread horizontally automatically. You can have multiple such constructions on a single line.

Werner
  • 603,163