Page Layoutincrease headsep for one page only

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
stepec
Posts: 18
Joined: Fri Aug 06, 2010 11:36 pm

increase headsep for one page only

Post by stepec »

Hi again

I'm still compiling my book in documentclass {book}. I've designed my own title page (to comply with submission guidelines) and the next page comprises a couple of quotes. I'd like the first quote to start about 30mm down the page, but obviously I don't want this setting to apply to other pages. Not sure how much code to supply:

Code: Select all

\documentclass[12pt,a4paper,oneside]{book}
\setlength{\parindent}{6mm}
\setlength{\headheight}{15pt}  % to get rid of error message re 12pt
\usepackage{fancyhdr}
\pagestyle{fancy}
\fancyhead{}
\rhead{\small\emph{cashmore/ghosts/\thepage}}
\renewcommand{\headrulewidth}{0pt}

\fancyfoot{}

\linespread{1.6}

\usepackage{titlesec} %to decrease the space between sections
\titlespacing*{\section}%
   {0em}% horizontal space to the left of section title, if any
   {-1.5\baselineskip}% vertical space before section title, set to 0 lines
   {-1\baselineskip}% vertical space after section title, set to 0 lines

\titlespacing*{\chapter}%
   {0em}% horizontal space to the left of chapter title, if any
   {2\baselineskip}% vertical space before chapter title, set to 0 lines
   {1\baselineskip}% vertical space after chapter title, set to 0 lines

\titleformat{\chapter}{\normalfont\Large}  %to reduce font in chapter title
{\chaptertitlename\ \thechapter}{20pt}{\Huge}


\usepackage{verse}
\usepackage{setspace}  % for single line spaces later in document

\usepackage[none]{hyphenat} %to remove the right align
\raggedright
\setlength{\parindent}{6mm} %make sure this is after the raggedright
\begin{document}

\begin{titlepage} %  custom alternatve to \title

blah title stuff 

\end{titlepage}
 

\begin{quote}
\small{
blah first quote

\textsl{Carnacki the Ghost-finder}

William Hope Hodgson
 

\vspace{30mm}
blah second quote

\textsl{The Search for Joseph Tully}

William Hallahan
} 

\end{quote}


\chapter{} 
I'm also having trouble right aligning (ie ragged-lefting) the sources and author names for the quotes. I presume I use \begin(raggedleft} and \end{raggedleft} somehow, but the syntax baffles me.

Thanks in advance for any help. I hope this constitutes a proper MWE!

stepec
Last edited by stepec on Tue Aug 10, 2010 5:03 pm, edited 1 time in total.

Recommended reading 2024:

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

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: increase headsep for one page only

Post by frabjous »

For your first problem, why not just put in \vspace*{30mm} much like you do between the quotes? (The starred version will work at the top of a page.)

For the second, perhaps you want \begin{flushright} ... \end{flushright}?
stepec
Posts: 18
Joined: Fri Aug 06, 2010 11:36 pm

Re: increase headsep for one page only

Post by stepec »

Hi, thanks for getting back to me, but...

\vspace{30mm} has no effect. I tried it already, but I just checked again.

\flushright works, but I can't stop it from flush-rightng everything rather than just the two lines. I had the same problem with \raggedleft.

stepec
stepec
Posts: 18
Joined: Fri Aug 06, 2010 11:36 pm

Re: increase headsep for one page only

Post by stepec »

well, I got the \flushright to work by cancelling it out with a \flushleft afterwards. So that's one down.

However, \vspace{30mm} won't work for me, wherever I put it at the top of the quotes page. Any thoughts?

stepec
torbjorn t.
Posts: 162
Joined: Wed Jun 17, 2009 10:18 pm

increase headsep for one page only

Post by torbjorn t. »

stepec wrote:However, \vspace{30mm} won't work for me, wherever I put it at the top of the quotes page. Any thoughts?
Use the starred version, as frabjous mentioned: \vspace*{30mm}
stepec
Posts: 18
Joined: Fri Aug 06, 2010 11:36 pm

Re: increase headsep for one page only

Post by stepec »

Aha! Yes, that works - sorry, didn't notice the *. What effect does that have, anyway?

stepec
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: increase headsep for one page only

Post by frabjous »

You didn't read my post very carefully did you?

The difference between the starred version and unstarred version is that the starred version inserts the space anywhere, even if you’re at the top of a page. A lot of spacing commands default so that they don’t add blank space at the top of a page. (Consider, e.g., the space before an equation or quotation: you couldn't want that to offset the entire page down if it so happened to start at the top of a page; the page break would be enough separation.)
Post Reply