I'm using a standard template for my title page of my document as found at the latex wikibook
However, for some reason, the minipage on the right, with my supervisor's information, renders about one inch left of where it should.
I wonder if anyone can help me with this. Here's my source:
\documentclass{article}
\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
\usepackage{graphicx}
\usepackage{url}
\begin{document}
\raggedright
\begin{titlepage}
\begin{center}
\textsc{\LARGE University of Blah} \\
\vspace{1cm}
\textsc{\Large School of Egg Decoration} \\
\vspace{0.8cm}
\rule{\linewidth}{0.5mm} \\[0.35cm]
\bfseries{\huge On the decoration of Ostrich Eggs}
\rule{\linewidth}{0.5mm}
\end{center}
\begin{minipage}{0.4\textwidth}
\begin{flushleft}
\emph{Author:} \\
\textsc{Edward Eggman} \\
\url{E.Eggman@ublah.edu}
\end{flushleft}
\end{minipage}
\begin{minipage}{0.4\textwidth}
\begin{flushright}
\emph{Supervisor:} \\
\textsc{Dr James Eggthusiast} \\
\url{J.Eggthusiast@ublah.edu}
\end{flushright}
\end{minipage} \\
\vfill
\begin{center}
\large \emph{30\textsuperscript{th} June 2015}
\end{center}
\end{titlepage}
% document content here
\end{document}
Many thanks.


\end{minipage}\hfillin order to get the second minipage flushed right. – LaRiFaRi Jun 15 '15 at 11:42\raggedrightbefore the\begin{titlepage}doesn't help. There seems to be no reason to have it before thetitlepageinstead of after it. – Astrinus Jun 15 '15 at 11:49