Text FormattingHow to make chapter spacing smaller

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Whiteblooded
Posts: 2
Joined: Tue Dec 21, 2010 12:07 pm

How to make chapter spacing smaller

Post by Whiteblooded »

Hi guys,
I've been trying to resolve this problem for about 3 hours now, and have gotten no where, so I thought I'd ask for someone else's input.

Basically, I'm using the report documentclass, and at the start of every chapter there is a HUGE space between the top of the page and the start of the chapter. I have tried using the

Code: Select all

\renewcommand*\chapterheadstartvskip{\vspace*{-10\baselineskip}}
command, but I get the error "\chapterheadstartvskip not defined". I was thinking I needed to include a specific package?

I'm currently using no packages other than graphicx and geometry:

Code: Select all

\documentclass[11pt, a4paper]{report}
\usepackage[top=80pt, bottom=80pt, left=80pt, right=80pt]{geometry}
\usepackage{graphicx}

\renewcommand*\chapterheadstartvskip{\vspace*{-10\baselineskip}}

\begin{document}
(document here)
\end{document}
I got the idea of using the \chapterheadstartvskip command from another page http://www.latex-community.org/forum/vi ... 691&p=6514, where Stefan_K suggested this method.

Any ideas?

Thanks
Last edited by Whiteblooded on Tue Dec 21, 2010 4:46 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

jocom
Posts: 25
Joined: Fri May 07, 2010 4:28 pm

How to make chapter spacing smaller

Post by jocom »

Hi, take a look in the titlesec package.
You can format all your sectioning commands with it.
For example, is use this:

Code: Select all

\usepackage{titlesec}
\titleformat{\chapter}[display]%
    {\relax}{\mbox{}\marginpar{\vspace*{-3\baselineskip}\color{webbrown!60}\chapterNumber\thechapter}}{0pt}%
    {\raggedright\color{webbrown}\spacedallcaps}[\normalsize\vspace*{.8\baselineskip}\titlerule]% 
\titleformat{\section}
    {\relax}{\color{webbrown!80}\textsc{\thesection}}{1em}{\color{webbrown}\normalsize\textsc}
\titleformat{\subsection}
    {\relax}{\color{webbrown!80}\textsc{\thesubsection}}{1em}{\color{webbrown}\normalsize\textsc}        
\titleformat{\paragraph}[runin]
    {\normalfont\small}{\theparagraph}{0pt}{\textit} 

\titlespacing*{\chapter}{0pt}{1\baselineskip}{1.2\baselineskip}
\titlespacing*{\section}{0pt}{\baselineskip}{0pt} 
\titlespacing*{\subsection}{0pt}{\baselineskip}{-.5\baselineskip}
\titlespacing*{\paragraph}{0pt}{\baselineskip}{2em}

\setcounter{secnumdepth}{1}
which actually is a customization of classicthesis.

jocom
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to make chapter spacing smaller

Post by localghost »

Whiteblooded wrote:[…] Basically, I'm using the report documentclass, and at the start of every chapter there is a HUGE space between the top of the page and the start of the chapter. I have tried using the

Code: Select all

\renewcommand*\chapterheadstartvskip{\vspace*{-10\baselineskip}}
command, but I get the error "\chapterheadstartvskip not defined". I was thinking I needed to include a specific package? […]
This suggestion is based on classes of the KOMA Script bundle. From the topic you referred to this is not clear at first sight. But the example file attached by the OP in that topic reveals that actually the »scrreprt« class is used whereas the first example he posted as code used the »report« class. So this has been misleading here. For the standard classes the suggestion of jocom to use the titlesec package is the way to go in this case.


Best regards and welcome to the board
Thorsten
Whiteblooded
Posts: 2
Joined: Tue Dec 21, 2010 12:07 pm

Re: How to make chapter spacing smaller

Post by Whiteblooded »

Thanks a lot guys! Problem resolved :D
Post Reply