Page LayoutTitle page not in center

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
poeli
Posts: 19
Joined: Tue Mar 11, 2014 10:59 am

Title page not in center

Post by poeli »

Hi all,
I have an official titlepage i have to use for my thesis. I used the correct logos and so on, but if I use \input in my main file, the title page is not centered and it seems not all of it is on it.
While my friend who uses the exact same code as me, sees the titlepage as centered. Is it because a different userpackage or what can be the cause of this?
If you want I can upload the code of the titlepage to see if there's any problem in that document.
Attachments
rsz_screensakke.png
rsz_screensakke.png (155.19 KiB) Viewed 10965 times

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

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Title page not in center

Post by Johannes_B »

Right now, there is just not enough information to give any specific reasons.
You can try boiling down your code to a minimal working example and add \listfiles to the very first line of the code. In the log-file is a summary of all the used packages (and their version), so you can compare with your friends run. Or you can share your minimalised code here using the code-button. This way, you can also really simply check the code by clicking on »open in wrightlatex«, which will be just above your code.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
poeli
Posts: 19
Joined: Tue Mar 11, 2014 10:59 am

Title page not in center

Post by poeli »

Code: Select all

\begin{titlepage}
\selectfont
\sffamily
%\addtolength{\oddsidemargin}{-.875in}
\vspace*{-2.5cm}
\begin{flushleft}
\hspace*{-1.75cm}
\includegraphics[width=8cm]{Vubsymbool}\\
\end{flushleft}
\vspace*{-1cm}
\begin{leftbar}
\hspace*{0.3cm}
FACULTEIT INGENIEURSWETENSCHAPPEN\\

\vspace{2cm}
\hspace*{0.5cm}
\huge 
\textbf{Experimentele bepaling van de\\
\hspace*{0.5cm}
karakteristieken van een kleine\\
\hspace*{0.5cm} 
straalmotor}
\\
\vspace{1cm}

\noindent\rule{8cm}{0.4pt}\\
\\
\vspace{0.25cm}
\hspace*{0.5cm}
\LARGE 
\textbf{Sander Janssens}\\
\noindent\rule{8cm}{0.4pt}\\
\begin{flushleft}
\mdseries
\hspace*{0.5cm}
\large 
Promotor: Prof.~S. Bram\\
\hspace*{0.5cm}
\large 
Co-promotor: S. Kubera en L. Vercammen\\ 
\vspace{0.5cm}
\hspace*{0.5cm}
\large 
\textbf{Academiejaar 2013-2014}\\
\vspace{0.5cm}
\hspace*{0.5cm}
\normalsize Masterproefscriptie ingediend met het oog op de toekenning van de graad\\ \hspace*{0.5cm} 
van Master in de Industri\"{e}le Wetenschappen:\\
\hspace*{0.5cm} 
Elektromechanica - Luchtvaarttechnologie
\vspace{0.75cm}
\end{flushleft}
\begin{flushright}
\includegraphics[width=3.5cm]{Vubsymbool2}\\
\thispagestyle{empty}
\end{flushright}
\end{leftbar}
\end{titlepage}
This is the code, but the images are not included, so I can't see it in writelatex.
I wonder if it's not the usepackages I use in my main file which are the cause of this.

Code: Select all

\usepackage{amssymb,amsmath,nccmath,graphicx}
\usepackage[section]{placeins}
\usepackage{fixltx2e}
\usepackage{titlesec}
\usepackage{hyperref}
\usepackage{fancyhdr}
\pagestyle{headings}
\usepackage{caption}
\usepackage{nomencl}
\usepackage{graphicx}
\usepackage[scale=0.7]{geometry}
\usepackage[utf8]{inputenc}
\usepackage{epstopdf}
\usepackage{textcomp}
I will check with my friend too. Thanks for the tips!
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Title page not in center

Post by Johannes_B »

You did not provide a minimal working example, so i can't test anything. Please follow the link above.

One additional tip: try adding \usepackage{showframe} to see how your textblock is laid down on the page.

btw: package hyperref is usually the last to be loaded.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Title page not in center

Post by Johannes_B »

For better understanding, i constructed a little example:

Code: Select all

\documentclass{article}
\usepackage{geometry}
\geometry{outer=10cm,showframe}
\begin{document}
\begin{center}
	\Huge Hello
\end{center}
\end{document}
You can click on »open in writelatex« to see the output.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply