How to reduce or make the space equal of linespacing before and after the $$ something $$ ?
Asked
Active
Viewed 124 times
0
-
4Are you coding in TeX or LaTeX? If the latter, you should read http://tex.stackexchange.com/questions/503/why-is-preferable-to. – jub0bs Dec 03 '13 at 16:45
-
I am using texlive (tex) and texmaker – Deepesh Patel Dec 03 '13 at 16:49
-
2TeXlive 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 03 '13 at 16:51
-
one possibility is that you have a blank line before your display math. don't do that -- it always adds extra space, and may cause other undesirable effects as well. – barbara beeton Dec 03 '13 at 17:09
-
yes I understand but There is no such conditions. – Deepesh Patel Dec 03 '13 at 17:13
-
2@DeepeshPatel Can you show an example of code? – egreg Dec 03 '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 03 '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 ```](http://meta.tex.stackexchange.com/q/863), 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 03 '13 at 17:24
-
Related: Why does \[…\] do the wrong thing at the top of a page?. – Ian Thompson Dec 03 '13 at 22:02
1 Answers
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\]
A.Ellett
- 50,533