Page LayoutTitlepage on right hand side

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Titlepage on right hand side

Post by Zetison »

I want to have my titlepage.tex on the odd page (the first side of my document). I can get my document to start on odd page (left hand side) if I do not include the titlepage (I just use \stepcounter{page} in front of the document}. It seems like the titlepage have to start at even page?

my code is

Code: Select all

\documentclass[twoside,openany]{report}
\usepackage{lipsum}
\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\addtolength{\oddsidemargin}{-.875in}
\addtolength{\evensidemargin}{-.875in}
\addtolength{\textwidth}{1.75in}
\addtolength{\topmargin}{-.875in}
\addtolength{\textheight}{1.75in}
\usepackage[pdftex]{graphicx}
\begin{document}
	\stepcounter{page}
	\input{titlepage.tex}
\chapter{Example}
\section{Example}
\lipsum
\end{document}
How do I fix this?

Thanks for help! :)
Last edited by Zetison on Wed Dec 07, 2011 4:28 pm, edited 3 times 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.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

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

Re: Titlepage on odd page

Post by Stefan Kottwitz »

Hi,

generally odd pages are right pages, just have a look into a book. So there's nox fix necessary.

A PDF viewer can show odd pages on the left or on the right though, depending on its setting.

Stefan
LaTeX.org admin
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Re: Titlepage on odd page

Post by Zetison »

That's the strange thing, my first page start's at even page, no matter what I do. Try to compile the code above...

I only have this problem when I include my titlepage.tex file, which is strange, since it's an standard Titlepagefile.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Re: Titlepage on odd page

Post by Stefan Kottwitz »

I tried your example. The first page starts with number 2, but that's because of \stepcounter{page}. If I remove this, the firstpage starts at 1, which is an odd, right hand page.

Stefan
LaTeX.org admin
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Titlepage on right hand side

Post by Zetison »

Did you add any titlepage.tex? Because it still does not work for me. Without this file, it works fine. Try add the following:

Code: Select all

\begin{titlepage}
\begin{center}
% Upper part of the page
\includegraphics[width=0.3\textwidth]{ntnu.png}\\[1cm]    
\textsc{\LARGE Norges Teknisk-Naturvitenskapelige Universitet}\\[1.5cm]
\HRule \\[0.4cm]
{ \huge \bfseries MA2001 - Matematisk prosjekt}\\[0.4cm]
\HRule \\[1.5cm]
% Author and supervisor
\begin{minipage}{0.4\textwidth}
\begin{flushleft} \large
\emph{Kandidat:}\\
Jon Vegard \textsc{Venås}
\end{flushleft}
\end{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright} \large
\emph{Veileder:} \\
 Fredrik \textsc{Skau}
\end{flushright}
\end{minipage}
\vfill
% Bottom of the page
{\large \today}
\end{center}
\end{titlepage}
Last edited by Zetison on Tue Dec 06, 2011 11:31 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Titlepage on right hand side

Post by Stefan Kottwitz »

Please use the Code button for posting code, to make it better readable. It would be good if you edit your post above. Have a look at your edited first post above, and compare.
Zetison wrote:That's the strange thing, my first page start's at even page, no matter what I do.
So you mean the first page of your first chapter. The first page is the title page.

You used the option openany to the document class. Just change that to openright, and chapters will start at right hand (odd) pages.

Stefan
LaTeX.org admin
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Re: Titlepage on odd page

Post by Zetison »

Sorry for being a bit noob here :)

But no, it isn't the chapters I want to have at odd pages. It is only the titlepage, and when I tried openright, my titlepage was not affected.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Titlepage on right hand side

Post by Stefan Kottwitz »

With this example, the title page is page 1, so an odd page, so a right hand page.

For example, modify titlepage.tex to see that:

Code: Select all

\begin{titlepage}
\thispagestyle{plain}
\begin{center}
...
When I do this with your code, I see the number 1. What do you see?

Stefan
LaTeX.org admin
User avatar
Zetison
Posts: 17
Joined: Fri Dec 02, 2011 2:05 pm

Re: Titlepage on odd page

Post by Zetison »

I think I have to clarify something. The titlepage is ofcourse the first page, and therefore (imaginary) numbered 1. But I need to have the titlepage on right hand side. No matter what I do when I insert my tilepage.tex, I allways get titlepage on left hand side. And if this first page is numbered with the number 1, then ofcourse, any righthandside-page is numbered with an even number. I really do not understand how you get it right...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Titlepage on right hand side

Post by Stefan Kottwitz »

Zetison wrote:The titlepage is ofcourse the first page, and therefore (imaginary) numbered 1. But I need to have the titlepage on right hand side. No matter what I do when I insert my tilepage.tex, I allways get titlepage on left hand side.
How does it happen that you see the (imaginary) numbered 1 page as left hand page? Number 1 is a right hand page. Books start with number 1 on the right.

Could it be that you are confused because
  • the appearance of the margins give you the impression that it looks like a right hand page?
  • your PDF viewer (which one?) shows the page 1 on the left of your screen?
Or how do you define right hand pages? I define a right hand page as a page with an odd number, such as 1. Number (even or odd) define the side.

Stefan
LaTeX.org admin
Post Reply