Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have to insert the cover page of my thesis as a title page, so it will also move from the center of the page to openright, I guess.

The titlepage code is this:

\begin{titlepage}
\begin{center}
{{\Large{\textsc{Alma Mater Studiorum $\cdot$ Universit\`a di
Bologna}}}} \rule[0.1cm]{15.8cm}{0.1mm}
\rule[0.5cm]{15.8cm}{0.6mm}
{\bf FACULTY OF ENGINEERING \\ Master degree in Electrical Engineering\\
\small{Curriculum:\\ Electronic systems for information processing}}
\end{center}
\vspace{15mm}
\begin{center}
{\LARGE{\bf Power consumption analysis }}\\
\vspace{3mm}
{\LARGE{\bf for self diagnosis of }}\\
\vspace{3mm}
{\LARGE{\bf Wireless Sensor Nodes}}\\
\vspace{19mm} {\large{\bf Master thesis in Electronic Calculators M}}
\end{center}
\vspace{40mm}
\par
\noindent
\begin{minipage}[t]{0.50\textwidth}
{{\bf Supervisors:\\ \large{Prof. Salmon Cinotti Tullio \\ Dr. Aly Aamer Syed}}}
\end{minipage}
\hfill
\begin{minipage}[t]{0.47\textwidth}\raggedleft
{{\bf Author:\\
\large{Bacchiani Claudio}}}
\end{minipage}
\vspace{20mm}
\begin{center}
{\large{\bf Session 1\\ Year 2011-2012}}
\end{center}
\end{titlepage}

When this is used as cover it works well, but if I \include it in the thesis it comes out oddly centered:

enter image description here

The preamble of the document, packages excluded, looks like this:

\documentclass[12pt, a4paper, titlepage, twoside, openright]{book}
\usepackage{graphicx}   %Figures management
\linespread{1.2}

Can I get it centered without having to include it as a pdf page?

Even better, can I reuse the code for the cover and the title page, and just changing settings externally?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

You can use geometry:

\documentclass[12pt, a4paper, titlepage, twoside, openright]{book}
\usepackage[pass]{geometry}
\usepackage{graphicx}   %Figures management
\linespread{1.2}

\begin{document}
\newgeometry{margin=2cm}
\begin{titlepage}
\linespread{1}
\centering

{\Large\scshape Alma Mater Studiorum $\cdot$ Universit\`a di Bologna}

\rule[0.1cm]{15.8cm}{0.1mm}
\rule[0.5cm]{15.8cm}{0.6mm}

{\bfseries FACULTY OF ENGINEERING \\ Master degree in Electrical Engineering

\small Curriculum:\\ Electronic systems for information processing\par}

\vspace{15mm}

{\LARGE\bfseries Power consumption analysis\\
 for self diagnosis of\\
 Wireless Sensor Nodes\par}

\vspace{19mm}

{\large\bfseries Master thesis in Electronic Calculators M\par}

\vspace{40mm}

\begin{minipage}[t]{0.50\textwidth}
\bfseries Supervisors:\\
\large Prof. Tullio Salmon Cinotti \\ Dr. Syed Aly Aamer
\end{minipage}%
\hfill
\begin{minipage}[t]{0.47\textwidth}\raggedleft
\bfseries Author:\\
\large Claudio Bacchiani
\end{minipage}

\vfill

{\large\bfseries Session 1\\ Year 2011-2012}
\end{titlepage}
\restoregeometry

The rest of the document

\end{document}

The pass option won't change the default parameters of the class, but will allow to use \newgeometry.

Notice the simplifications in the input: \large and \bfseries are declarations, so they don't have arguments. Beware that \bf is obsolete.

A style remark: in Italian the given name goes always before the family name. Whoever says the contrary is simply a bureaucrat.


You might consider using the package frontespizio:

\documentclass[a4paper]{book}

\usepackage{frontespizio}

\begin{document}

\begin{frontespizio}

\Istituzione{ALMA MATER STUDIORUM $\cdot$ UNIVERSIT\`A DI BOLOGNA}
\Divisione{Faculty of Engineering}
\Scuola{Master degree in Electrical Engineering\\
  Curriculum:\\
  Electronic systems for information processing}
\Titolo{Power consumption analysis \\
  for self diagnosis of \\
  Wireless Sensor Nodes}
\Sottotitolo{Master thesis in Electronic Calculators M}

\Candidato{Claudio Bacchiani}
\Relatore{Prof. Tullio Salmon Cinotti}
\Relatore{Dr. Syed Aly Aamer}

\NCandidato{Author}
\NRelatore{Advisor}{Advisors}
\Piede{Session 1 \\ Year 2011--2012}

\Margini{2.5cm}{1cm}{2.5cm}{2cm}


\end{frontespizio}
share|improve this answer
    
What should the package xcolor do? It doesn't find it and returns an error –  clabacchio Jul 11 '12 at 6:47
    
@clabacchio You have a broken TeX distribution. –  egreg Jul 11 '12 at 7:58
    
no, it worked :) I think it was because of some trouble with authorizations to download –  clabacchio Jul 11 '12 at 8:40
    
@clabacchio: Keep in mind that the options of the package geometry also influence the appearence. I had still some troubles (with the first part answer) until I set: \usepackage[pass,includemp=false]{geometry} –  strpeter Jan 23 at 13:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.