0

This question already has an answer here:

How to reduce or make the space equal of linespacing before and after the $$ something $$ ?

marked as duplicate by barbara beeton, Red, ChrisS, Peter Jansson, Martin Schröder Feb 27 '14 at 21:17

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 4
    Are you coding in TeX or LaTeX? If the latter, you should read tex.stackexchange.com/questions/503/why-is-preferable-to. – jub0bs Dec 3 '13 at 16:45
  • 2
    TeXlive is your TeX distribution; Texmaker is your IDE (Integrated Development Environment) or, loosely speaking, editor. Those don't dictate which TeX format (plain TeX, LaTeX, etc.) you use. – jub0bs Dec 3 '13 at 16:51
  • 2
    @DeepeshPatel Can you show an example of code? – egreg Dec 3 '13 at 17:17
  • 1
    \begin{proof} Also we have $$x+2y-5z=9$$ and $$3x+5y-8z=0,$$ where $x,y,z>0$. \end{proof} – Deepesh Patel Dec 3 '13 at 17:23
  • 1
    @DeepeshPatel Please edit your question and add the code there, not in a comment. Also, if you indent lines by 4 spaces or enclose words in backticks `, they'll be marked as code, as can be seen in my edit. You can also highlight the code and click the "code" button (with "{}" on it). – jub0bs Dec 3 '13 at 17:24
3

The use of $$...$$ is depricated in LaTeX. Instead you should use \[...\].

You can change the spacing before an after by doing something along the following lines:

  \abovedisplayskip0pt                                                 
  \belowdisplayskip0pt                                                 
  \abovedisplayshortskip0pt                                            
  \belowdisplayshortskip0pt                                            
  \[x+2y-5z=0\]

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