2

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

\begin{enumerate}
\item
\begin{equation}
    \kappa_{a,b}(t)=\begin{cases} 
            e^{at}, & 0\leq t<\infty,\\
            e^{bt}, & -\infty<t<0.                              
            \end{cases}
\label{eq:kappa-ab-t}
\end{equation}
\item
\begin{equation}
        \beta(x)=\frac{x^m}{\mu_n^{2k'-1}}
        \label{eq:beta-x}
\end{equation}
    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.

David Carlisle
  • 757,742
Madhu
  • 21

1 Answers1

3

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}
\newcommand\leftno{\addtocounter{thing}{1} \arabic{thing}.\quad }
\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.

David Carlisle
  • 757,742
Ian Thompson
  • 43,767
  • @ 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. – Madhu Feb 07 '13 at 23:20