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 am wondering if it is possible in LaTeX to flush left equations when using the numcases or subnumcases environment provided by the cases package.

Hereafter I include a bit of code to explain the problem.

\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[fleqn]{mathtools}
\usepackage{cases}

\begin{document}
\begin{equation}
\tau = k \cdot i_a
\end{equation}
\begin{numcases}{v_a = }
v_s - k_1 \cdot (i_a - i) & if ia\\
v_p     &   if ia $\le$ i
\end{numcases}
\begin{subnumcases}{v_a = }
v_s - k_1 \cdot (i_a - i) & if ia\\
v_p     &   if ia $\le$ i
\end{subnumcases}
\end{document}

Compiling this code, you will see that the first equation is flushed left while the other two are not. I would appreciate any suggestions.

share|improve this question

migrated from stackoverflow.com Apr 3 '12 at 11:29

This question came from our site for professional and enthusiast programmers.

    
Welcome to TeX.sx! Your question was migrated here from Stack Overflow. Please register on this site, too, and make sure that both accounts are associated with each other, otherwise you won't be able to comment on or accept answers or edit your question. –  N.N. Apr 3 '12 at 11:48

1 Answer 1

The cases package has a fleqn option:

 \usepackage[fleqn]{cases}
share|improve this answer
    
many thanks for your answer. It works perfectly. May I ask you where did you find the information because this option does not appear in the "cases" package manual ? –  RolPasto Apr 3 '12 at 16:12
    
I just loaded cases.sty into emacs and searched for fleqn:-) –  David Carlisle Apr 3 '12 at 16:45

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.