Please help me to figure out how to produce with that:

I have the following code:

$$  gcd(0,0) = 0    $$
$$  gcd(u,v) = gcd(v,u) $$
$$  gcd(u,v) = gcd(-u,v) $$
$$  gcd(u,0) = |u| $$

2^{x^3} = x+1/x\ge 2 = \pi\approx 3{,}14


This is what I need:

First requirement

I don't want to align anything, I just want to remove the space between equations because I think it takes too much space. Anyway I don't like the view of my equations, looks like something is not good there (only with gcd, the other equations looks OK). One thing to fix that is probably to use "\gcd" instead of "gcd"... I'd like to have some advice how to make it look better and to resolve the original question with spacing between equations as well. I also looking for the most simple solution, without using complex ams-structures if possible.

  • Surely \gcd should be used; you want to look at the gather* environment of amsmath. Never use $$ in LaTeX (see Why is \[ … \] preferable to $$?). In Plain TeX there's \displaylines for centering multiple equations. – egreg Feb 14 '13 at 13:58

Actually, I've found a way. I started to use the following environment from "amsmath" packages:

    x + y = z \\
    x + z = y \\
    y + z = x \\

The following trick fixes the spacing between the equations inside:


This trick fixes the spacing between text and equation for the both sides:


Now it looks so:


And that is completely OK for me.

|improve this answer|||||
  • I don't think that those setting to \abovedisplayskip and \belowdisplayskip do anything. – egreg Feb 14 '13 at 18:31
  • Actually, they do. The one thing, it seems this settings disappears on every new included page (it is somehow related to the document class), so you probably will see nothing if include this in your preamble. Try to put this settings right before the equation environment (or at the start of the list) and I hope it should work as well as for me. – Mikhail Kalashnikov Feb 14 '13 at 19:28
  • It seems it would work for any kind of environment with amsmath. I used this topic to figure it out: tex.stackexchange.com/questions/3323/… – Mikhail Kalashnikov Feb 14 '13 at 19:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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