Text FormattingVertical spacing around headings

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
ck9
Posts: 7
Joined: Tue May 19, 2009 10:26 am

Vertical spacing around headings

Post by ck9 »

Hi I'm currently using the following in the preamble: -

Code: Select all

Code, edit and compile here:
\titlespacing{\section}{0pt}{*0}{*-2}
\titlespacing{\subsection}{0pt}{*1}{*-2}
\titlespacing{\subsubsection}{0pt}{*1}{*-2}
\titlespacing{\bodymath}{0pt}{*-12}{*-12}
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And it produces spacing like what can be seen in the two attached images. Could you please suggest some better values so the gap beneath the section headings and the math is closer to the text below?

Also the materials and methods title shouldn't have all that space above it (the top margin is ~2.5cm and looks ok on other pages).

Thanks
Attachments
spacingb.gif
spacingb.gif (30.94 KiB) Viewed 2384 times
spacinga.gif
spacinga.gif (34.9 KiB) Viewed 2384 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
steno
Posts: 4
Joined: Thu Aug 20, 2009 3:55 pm

Re: Vertical spacing around headings

Post by steno »

I guess you could try \vspace{-3mm} for the first problem and \cleardouble page before the title for the second problem. Hope this helps.
Steno
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Vertical spacing around headings

Post by localghost »

Clarify especially the setup of your interline spacing by means of a minimal working example (MWE). There could be a clash between two packages.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply