8

I'm using the document class book and I am designing my front page atm.

I try it like this:

\documentclass{book}

\begin{document}

\thispagestyle{empty}

\begin{center}
FRONT PAGE \\
\end{center}

\newpage

\chapter{First chapter}

Foo

\end{document}

But this way it isn't really centered.. It's a bit on the left side, isn't it?

I hope you know this issue and know how to fix it!

Thanks for your help!

1
  • 2
    The centering is working. book class sets up large margins on alternate sides of the page for binding purposes. If you use \usepackage{showframe} that will show you how the margins are set and you'll be able to see that your center environment is working. If you want to override the book class defaults and change the margins, you can use the geometry package.
    – A.Ellett
    Dec 30, 2013 at 14:04

1 Answer 1

10

define another page layout for the first page:

\documentclass{book}
\usepackage[showframe]{geometry}
\savegeometry{origin}
\geometry{rmargin=2cm,lmargin=2cm}% for the title page
\begin{document}

\thispagestyle{empty}    
\begin{center}
FRONT PAGE 
\end{center}

\loadgeometry{origin}% restore the orign margin setting
\chapter{First chapter}
Foo

\end{document}

enter image description here

2
  • how can I make the borders invisible?
    – mrbela
    Dec 30, 2013 at 22:56
  • ah. I got it... By using "\usepackage{geometry}". Thanks very much for your help!!!
    – mrbela
    Dec 30, 2013 at 22:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .