0

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

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

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
5

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{equation}
\begin{split}
LCS(X_{n},Y_{m-1})\\
LCS(X_{n-1},Y_{m})
\end{split}
\end{equation}
\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

enter image description here

  • 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

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.