Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove spacing before \chapter in LaTeX [closed]

Tags:

latex

I am using the book style to write a research report and would like to know how to remove the top vertical space before a chapter heading. I need this for the 'Abstract' page. I would like it to start nearer to the top than standard chapters.

like image 795
ssn Avatar asked Jul 19 '10 07:07

ssn


People also ask

How do I reduce space before sections in LaTeX?

To control each space individually you can simply use: \vspace{5mm} or \vspace{1em} or \vspace{1cm} to increase (to add space) and; \vspace{-5mm} or \vspace{-1em} or \vspace{-1cm} to decrease (take from the standard space). It is most suitable to control few sections of the standard space.

How do I stop spacing in LaTeX?

To remove random unwanted space in LaTeX-style maths in matplotlib plot, we can use "\!" which will reduce the extra spacing.

How do I reduce the space between chapter and section in LaTeX?

Just needed an extra line of code. In \titlespacing{\chapter}{1cm}{2cm}{3cm} adjust 1 to adjust the left margin, adjust 2 to adjust the vertical space before the title, adjust 3 to adjust the separation between title and non-sectioning text.


1 Answers

Having the same issue, i tried out the titlesec solution, which somehow didn't work as expected (too many errors with Texshop 2.47 on OsX).

However, i worked out a simpler solution (at least for my case) with the geometry package. The deal is to call a new page geometry only for the page of interest and then restore the page geometry defined by fncychap.

% in the preamble
\documentclass[11pt,a4paper,twoside,openright]{book}
\usepackage{geometry}
\usepackage[Sonny]{fncychap}

% in the document
\frontmatter

% adapt geometry options to your needs
\newgeometry{textwidth=16cm,textheight=28cm,voffset=-2cm,bottom=0cm}
\chapter*{Abstract}
\markboth{}{}
\addcontentsline{toc}{chapter}{Abstract}
% text
\restoregeometry
% from now on fncychap takes over again
\mainmatter
like image 74
neurino Avatar answered Oct 24 '22 13:10

neurino