Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
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) –  cmhughes Feb 7 '13 at 18:12
    
Does this answer help? –  Ian Thompson Feb 7 '13 at 21:21
    
@ cmhughes I have made some changes to question, hope it will be clear now. –  Madhu Feb 7 '13 at 21:43
    
@ Ian, I checked it. sorry, it is not solving my problem. –  Madhu Feb 7 '13 at 21:46
    
Another suggestion: Displaying an equation in a list. –  Hendrik Vogt Feb 7 '13 at 22:00
add comment

1 Answer

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.

share|improve this answer
    
@ 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 7 '13 at 23:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.