Is it possible to decrease the top margin in just one single page to be? I tried to use
\vspace{-1.5em}
but it doesn’t work unlike \hspace{} . Can anyone help me in solving this ?.
Is it possible to decrease the top margin in just one single page to be? I tried to use
\vspace{-1.5em}
but it doesn’t work unlike \hspace{} . Can anyone help me in solving this ?.
I assume you have a blank line before your align as shown in the following example:
\documentclass{article}
\usepackage{amsmath,lipsum}
\begin{document}
\lipsum[1-4]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet rutrum
velit, ac fermentum risus. Aliquam erat volutpat. Suspendisse tristique tempus
turpis vitae sollicitudin. Etiam mattis quis turpis eget feugiat. Praesent at
turpis sed nibh sodales facilisis. In fermentum scelerisque pulvinar. Quisque
vitae ultricies tortor. Aliquam a elit ante. Donec sagittis tincidunt eros,
eget eleifend ligula lobortis sit amet. Mauris vestibulum justo et volutpat
tempus. Aenean luctus turpis massa, id suscipit purus blandit non.
\begin{align}% Space between paragraph and align
f(x) &= ax^2 + bx + c \\
ix^2 + jx + k &= g(x) \\
f(x) &= ax^2 + bx + c \\
ix^2 + jx + k &= g(x)
\end{align}
\lipsum[5-7]
\clearpage
\lipsum[1-4]
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet rutrum
velit, ac fermentum risus. Aliquam erat volutpat. Suspendisse tristique tempus
turpis vitae sollicitudin. Etiam mattis quis turpis eget feugiat. Praesent at
turpis sed nibh sodales facilisis. In fermentum scelerisque pulvinar. Quisque
vitae ultricies tortor. Aliquam a elit ante. Donec sagittis tincidunt eros,
eget eleifend ligula lobortis sit amet. Mauris vestibulum justo et volutpat
tempus. Aenean luctus turpis massa, id suscipit purus blandit non.
\begin{align}% No space between paragraph and align
f(x) &= ax^2 + bx + c \\
ix^2 + jx + k &= g(x) \\
f(x) &= ax^2 + bx + c \\
ix^2 + jx + k &= g(x)
\end{align}
\lipsum[5-7]
\end{document}
As can be seen from the above example, if you do not leave a blank line, the preceding paragraphs final line ties to the align.
If you do need to use negative vertical spacing, ensure that you're in vertical mode. If you're at the top of the page, use the starred version \vspace*.
\vspace*-1.5em}. – Bernard Nov 19 '16 at 01:35\alignpackage. As Known, using such a command for typesetting formulas creates a little space up and down the formula. I hope to remove the space preceding the formula so that the top margin of the page starting with the formula looks familiar. @Werner – Hussein Eid Nov 19 '16 at 01:52\centercommand and it works. Though, using\alignis much better for typing formulas. – Hussein Eid Nov 19 '16 at 01:55