# Equations one below the other

how can I get two equations one below the other, listed on the right side

$$LCS(X_{n},Y_{m-1})\\ enumerate LCS(X_{n-1},Y_{m})$$


I try with this:

\begin{align}
LCS(X_{n},Y_{m-1})\\
LCS(X_{n-1},Y_{m})
\end{align}


but I do not want to have two enumerates, I just want a enumerate for both

• Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – BambOo Aug 9 '18 at 15:49
• Could you please clarify the following points : - what do you mean by listed on the right side, you mean the numbering ? - enumerates refers to a specific environment in LaTeX, are you also refering to the equation numbering ? – BambOo Aug 9 '18 at 15:52
• @BambOo yes I refer to the numeration with listed and enumerate – x-rw Aug 9 '18 at 15:54
• Given my current understanding of your issue, replace align by a split environment inside an equation environment – BambOo Aug 9 '18 at 15:54

Just to propose you multiple options

\documentclass[tikz]{standalone}
\usepackage{amsmath}
\usepackage{empheq}
\begin{document}

\begin{align}
LCS(X_{n},Y_{m-1})\\
LCS(X_{n-1},Y_{m})\nonumber
\end{align}
$$\begin{split} LCS(X_{n},Y_{m-1})\\ LCS(X_{n-1},Y_{m}) \end{split}$$
\begin{subequations}
\begin{empheq}[left=\empheqlbrace]{align}
LCS(X_{n},Y_{m-1})\\
LCS(X_{n-1},Y_{m})
\end{empheq}
\end{subequations}

\end{document}


gives

• for 'split' should use the package empheq? – x-rw Aug 9 '18 at 16:10
• Nope, just amsmath – BambOo Aug 9 '18 at 16:11