# Alignment for equations with numbering in enumeration environment and in environment of cases

I have problem of alignment in the following, please check and suggest solution:

\begin{enumerate}
\item
$$\kappa_{a,b}(t)=\begin{cases} e^{at}, & 0\leq t<\infty,\\ e^{bt}, & -\infty<t<0. \end{cases} \label{eq:kappa-ab-t}$$
\item
$$\beta(x)=\frac{x^m}{\mu_n^{2k'-1}} \label{eq:beta-x}$$
for m=1, 2, 3, \ldots, n=1, 2, 3, \ldots, k'=0, 1, 2, \ldots.
\end{enumerate}


In output equations doesn't appear in the same line as of item number, appears at center of second line. I want it to appear in the same line with left alignment and corresponding equation numbers to right of page.

• Welcome to TeX.sx! In its current form, your 'question' doesn't actually ask a question. Please update it with something specific. It would also be best to make your code into a complete minimal working example (MWE) Commented Feb 7, 2013 at 18:12
• Does this answer help? Commented Feb 7, 2013 at 21:21
• @ cmhughes I have made some changes to question, hope it will be clear now. Commented Feb 7, 2013 at 21:43
• @ Ian, I checked it. sorry, it is not solving my problem. Commented Feb 7, 2013 at 21:46
• Another suggestion: Displaying an equation in a list. Commented Feb 7, 2013 at 22:00

You could use the flalign environment from the amsmath package with the numbers in the first column.

\documentclass{article}
\usepackage{amsmath}
\newcounter{thing}
\setcounter{thing}{0}
\begin{document}
\begin{flalign}
\leftno &   \kappa_{a,b}(t)=
\begin{cases}
e^{at}, & 0\leq t<\infty,\\
e^{bt}, & -\infty<t<0.
\end{cases}
\label{eq:kappa-ab-t} & \\
\leftno & \beta(x)=\frac{x^m}{\mu_n^{2k'-1}}
\label{eq:beta-x} & \\
\setcounter{thing}{27} %Test alignment of two digit numbers
\leftno & \beta(x)=\frac{x^m}{\mu_n^{2k'-1}} &
\end{flalign}
for m=1, 2, 3, \ldots, n=1, 2, 3, \ldots, k'=0, 1, 2, \ldots.
\end{document}


Numbering on both the left- and right-hand sides looks rather strange, though.

• @ Ian, Thanks. This has solved my problem. Its listing of some functions under a chapter which will be referred further in other chapters, so may feel at first strange. Commented Feb 7, 2013 at 23:20