TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am creating a new LaTeX class, necessarily the equations must be aligned to the left so I use the file fleqn.clo in the class code. The problem is that when using the equation environment the result equation is well constructed but not appears any space between it and the paragraphs, like as if the equation be a normal paragraph. This is different to what happens when using the article class with fleqn option, and basically the article class does the same thing that me when including fleqn.clo.

I think important part of the code I wrote

%Load Packages

\DeclareOption*{\ClassWarning{RCIULApaper}{Unknown `\CurrentOption', default language used is spanish}}

%Align equations to left
\renewcommand \theequation {\@arabic\c@equation}

%Set the document font size
\abovedisplayskip 1.5ex plus4pt minus2pt%
\belowdisplayskip \abovedisplayskip%
\abovedisplayshortskip 1.5ex plus4pt minus2pt%
\belowdisplayshortskip 1.5ex plus4pt minus2pt

%Using Times Roman font 


What should I add to have a good behavior?

The problem, display style vs the equation environment


share|improve this question
You're setting \abovedisplaysshortskip to 0pt (plus some glue). You may notice that if your paragraph ends with a short line, this is a problem, but it the paragraph has a long ending line, then it's not a problem. Is this the case? – Werner May 14 '12 at 20:24
Thanks @Werner but nothing changes by placing a different value for \abovedisplayshortskip. Also the article class does not use any configuration of these commands, just use \input{fleqn.clo} and \renewcommand \theequation {\@arabic\c@equation}, wherefore I failed to find the solution based on the existent class. – OSjerick May 14 '12 at 20:44
up vote 5 down vote accepted

fleqn doesn't use displaymath it is a trivlist so the vertical spacing is governed by \topsep \partopsep and the other list parameters. You presumably have these set to 0 in your class?

enter image description here



\noindent aaaaaaaa\[1=2\]bbbbbbbbbbb


\noindent aaaaaaaa\[1=2\]bbbbbbbbbbb

share|improve this answer
Thanks @DavidCarlisle I put the complete code for you to see, \topsep is never used, however, had already tried some value for it and work, but this affects other environments like center, I just wanted to know what I can do to affect only the equation environment. – OSjerick May 14 '12 at 21:06
The displaystyle works perfectly with the settings for \abovedisplayskip and the others. – OSjerick May 14 '12 at 21:11
I upload an image where see the problem, and the use of $$ for display a equation without numbering. – OSjerick May 14 '12 at 21:18
@osjerick The value of \topsep after loading the class is 0pt and this, as David says, explains the issue. You can cure it by loading also \RequirePackage[fleqn]{amsmath}. However you should also set sensible values for \topsep and the other list parameters. – egreg May 14 '12 at 21:51
Well, I accept this as the solution. Thanks! – OSjerick May 14 '12 at 21:54

Your Answer


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.