Generalcustom page numbers and title pages

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
surlygrad
Posts: 2
Joined: Mon May 12, 2008 4:34 pm

custom page numbers and title pages

Post by surlygrad »

I have two questions on customizing page numbers and title pages.

1. I want my page numbers to appear in the upper right hand corner, and have been able to get this result using fancyhdr. However, the page number of the first chapter still appears at the bottom of the page in the center. How do I fix this?

2. When making a custom title page, how can I increase the spacing between the top of the page and the first part of the title?

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

custom page numbers and title pages

Post by Stefan Kottwitz »

Hi surlygrad,

welcome to the LaTeX Community board!

1. use \fancypagestyle{plain}{}, see fancyhdr documentation 7 Redefining plain style.

2. use \vspace (\vspace*). If you still don't know how then show us your code for the titlepage.

Stefan
LaTeX.org admin
surlygrad
Posts: 2
Joined: Mon May 12, 2008 4:34 pm

custom page numbers and title pages

Post by surlygrad »

With regard to the page numbers, I've tried several things. For instance, if I just use \pagestyle{headings}, it sticks the numbers where I want them, except on the first page of each chapter. I've tried using \pagestyle{fancy} with the various options, but that doesn't seem to do anything.

For the title page, I have something like:
\begin{titlepage}
\begin{center}
\vspace{4in}
\begin{Huge}The Nonsense\end{Huge}
\vskip 1in
\begin{large}
surlygrad\
\end{large}
\vskip 1in
\scriptsize SUBMITTED IN PARTIAL FULFILLMENT OF THE \\
\scriptsize REQUIREMENTS FOR THE DEGREE \\
\scriptsize OF DOCTOR OF PHILOSOPHY \\
\vskip 1.5in
\begin{large} Blah University\\
2008
\vfill
\end{large}
\end{center}
\end{titlepage}

However, no matter what I set that \vspace value to, the title always begins at the top of the page, which is not what I want.

Stefan_K wrote:Hi surlygrad,

welcome to the LaTeX Community board!

1. use \fancypagestyle{plain}{}, see fancyhdr documentation 7 Redefining plain style.

2. use \vspace (\vspace*). If you still don't know how then show us your code for the titlepage.

Stefan
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

custom page numbers and title pages

Post by Stefan Kottwitz »

Hi surlygrad,

you did not mention if you tried \fancypagestyle{plain}{} like I recommended above when you use fancyhdr.
If you use \pagestyle{headings} you can just write \thispagestyle{headings} at the beginning of a chapter. Or try globally in your preamble:

Code: Select all

\pagestyle{headings}
\makeatletter
\let\ps@plain\ps@headings
\makeatother
Concerning the titlepage: use \vspace* instead of \vspace:

Code: Select all

\begin{titlepage}
\begin{center}
\vspace*{4in}
\begin{Huge}The Nonsense\end{Huge}
I mentioned it above and gave a link. I thought if you ask a question you would try the answer then and look at the given links. It almost seems as you did not read what I wrote about \fancypagestyle{plain}{} and ignored the links to the documentation of fancyhdr and \vspace. ;)

Stefan
LaTeX.org admin
Post Reply