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'm trying to left align particular equations. To do that I created a new environment (because I need it a few times).

Now, I found that there are various options to do that:

  • using the fleqn option - but that does a left alignment for all the equations in the document
  • flalign - but for that I always have to write && at the end and it doesn't seem to work in an environment I defined

I would like to be able to use for this kind of special equations some code like this

\begin{leftalignedequation}
...
\end{leftalignedequation}

and it should do all the magic itself.

And so my question is: What would you see as the best way to achieve that? I don't seem to find a good solution.

share|improve this question
    
I think you need to also adjust the value of \mathindent. Setting that to 0pt should left align to the margin. –  Peter Grill Feb 22 '13 at 18:05
    
The package nccmath offers this. But I'd advise against doing it. First ask yourself why you should do it. –  egreg Feb 22 '13 at 21:53
    
But mathindent does so for the whole document, right? @egreg I will have a look at nccmath, thanks. I know, and I think you are right in asking whether it's really necessary. The document is about defining a relational algebra (for databases) and I mix a more mathematic and more computer science view and the latter I would like to align left. –  navige Feb 22 '13 at 23:42
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.