Page Layoutepigraph | Start Text of Chapter on same Height

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
gwydion
Posts: 12
Joined: Thu Feb 09, 2012 1:50 pm

epigraph | Start Text of Chapter on same Height

Post by gwydion »

Hi,

Yeah, i know i might sound pretty n00b on this but i haven't figured out how to do it.

I start every chapter with an epigraph (and the package epigraph is very handy for this). As expected, some of the quotations i use are longer than others, so the text after the epigraph does not start at the same height in the page.

How can i manage to start the text at the same height in every chapter (let's say it, start the text 10cm from the bottom of the page). I have tried using \vfill and \vspace but it is more like a try-and-error procedure. Or is this the only way?

Thx :)

Recommended reading 2024:

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

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

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

epigraph | Start Text of Chapter on same Height

Post by localghost »

For an adequate problem description please provide a minimal example that shows what you are doing and perhaps allows to test possible solutions.

As a random shot I'd suggest to try the \dropchapter command that is explained in the epigraph manual.


Thorsten
gwydion
Posts: 12
Joined: Thu Feb 09, 2012 1:50 pm

epigraph | Start Text of Chapter on same Height

Post by gwydion »

Ok, maybe i could not make myself clear, so here it goes an example :)

Code: Select all

\documentclass[11pt,a4paper,twoside]{book}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
\usepackage{epigraph}
\begin{document}
\chapter{chapter 1}
\epigraph{A clever thought}{A clever guy}

\vspace{25mm}
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean felis metus, lacinia a vestibulum quis, aliquet vel nisi. Nunc laoreet luctus nisi, in commodo libero feugiat vitae. In fringilla diam eget lorem commodo mattis. Nulla non erat felis, fringilla mattis mauris. Curabitur quis eleifend leo. Etiam neque diam, porttitor ut gravida id, sagittis nec urna. Pellentesque id urna mauris, ut dapibus lacus. Aenean at malesuada lacus. Sed in orci ut leo adipiscing posuere.

\end{document}
So the point is: how can i manage to specify the height at which the first paragraph after the epigraph ("Lorem ipsum...") is placed in the paper? I'd like that the main text starts at the same point at the begining of the chapters. So far i have used \vspace after \epigraph to set the height of the first paragrah in all chapters. Is there any way besides this try-and-error method? For example, starting the text 10cm from the bottom of the page, maybe.

And no, \dropchapter is for those cases where the epigraph is placed before the chapter, which is not my case.

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

epigraph | Start Text of Chapter on same Height

Post by localghost »

It seems to work by putting every epigraph into a {minipage} (← Link!) environment with a fixed height.

Code: Select all

\documentclass[11pt,a4paper]{book}
\usepackage[T1]{fontenc}
\usepackage[margin=2cm]{geometry}
\usepackage{epigraph}
\usepackage{lipsum}

\begin{document}
  \chapter{Foo}
    \begin{minipage}[t][10\baselineskip][t]{\linewidth}
      \epigraph{A clever thought}{A clever guy}
    \end{minipage}

    \lipsum[1]

  \chapter{Bar}
    \begin{minipage}[t][10\baselineskip][t]{\linewidth}
      \epigraph{The quick brown fox jumps over the lazy dog.}{Test sentence}
    \end{minipage}

    \lipsum[2]
\end{document}
The choice of the height value is up to you.
gwydion
Posts: 12
Joined: Thu Feb 09, 2012 1:50 pm

Re: epigraph | Start Text of Chapter on same Height

Post by gwydion »

Yeap! That does the trick :)

I wasn't aware of the minipage environment (although i'm not completely sure of how it works yet, but i'll get there).

Thanks!
Post Reply