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 want to enumerate equations in the following way:

  • An equation is in the same line as the bullet sign.
  • All equations are align to the left.
  • The number of an equation is align to the right.

Any suggestions how to make it?

share|improve this question
add comment

2 Answers 2

up vote 2 down vote accepted

Does this help?

\documentclass{article}
\makeatletter
\newdimen\mymathindent
\newenvironment{bulletequation}%
    {\@beginparpenalty\predisplaypenalty
     \@endparpenalty\postdisplaypenalty
     \refstepcounter{equation}%
     \trivlist \item[]\leavevmode
       \hb@xt@\linewidth\bgroup $\m@th% $
         \displaystyle
         \hskip\mymathindent}%
        {$\hfil % $
         \displaywidth\linewidth\hbox{\@eqnnum}%
       \egroup
     \endtrivlist}
\makeatother
\begin{document}
\begin{itemize}
\item \begin{bulletequation} 1+2=3\end{bulletequation}
\end{itemize}
\end{document}
share|improve this answer
    
Khalinghi: This is exactly what I was looking for, I will have to get more deep into TeX to understand how this works, but it works! –  Tomek Tarczynski Feb 9 '11 at 12:42
add comment
\documentclass{article}
\def\Item$#1${\item $\displaystyle#1$
   \hfill\refstepcounter{equation}(\theequation)}

\begin{document}

\begin{itemize}
\item foo
\Item $ 1+2=3 $
\item bar
\Item $f(x)=\int\limits_a^bx^2\mathrm{d}x$
\end{itemize}

\end{document}

enter image description here

share|improve this answer
    
This is even simpler solution, but as far as I see all equations will be numbered, what if I want to number only some equations in the list? –  Tomek Tarczynski Feb 9 '11 at 12:50
2  
@Tomek: a very simple solution is to define \def\ItemNN$#1${\item $\displaystyle#1$} which is a math item with NoNumber \ItemNN. However, in this case you can simply type your equation like \item $\displaystyle y=f(x)$ that's all. –  Herbert Feb 9 '11 at 12:55
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.