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

  • 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

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:


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