[Tex/LaTex] Strange indent using tabular in titlingpage

memoirspacingtables

I need to create a simple problem description page for my thesis. This will also be the title page of the document. I'm using the memoir class. I tried to use the tabular environment to align some fields, but it produces some annoying indentation I'm not able to remove.

Here's an illustration of what I mean

enter image description here

and here's a minimal working example

\documentclass[a4paper,11pt]{memoir}

\begin{document}

\begin{titlingpage}

\begin{tabular}{p{5cm}l}
Project title:          & Title \\
Student's name:         & Name\\
Problem description:    & \\
\end{tabular}

\vspace{4ex}
Lorem ipsum dolor sit amet...
\vspace{4ex}

\begin{tabular}{@{}p{5cm}l}
\noindent Assignment given:     & 01.01.2012 \\
\noindent Supervisor:           & Name\\
\noindent Co-Supervisor:        & Name  \\
\end{tabular}

\end{titlingpage}

\end{document}

Best Answer

The \noindent should also precede the tabular structures:

\documentclass[a4paper,11pt]{memoir}

\begin{document}

\begin{titlingpage}

\noindent% <----------------- added
\begin{tabular}{@{}p{5cm}l}% <--- modified column specification
Project title:          & Title \\
Student's name:         & Name\\
Problem description:    & \\
\end{tabular}

\vspace{4ex}
Lorem ipsum dolor sit amet...
\vspace{4ex}

\noindent% <----------------- added
\begin{tabular}{@{}p{5cm}l}
\noindent Assignment given:     & 01.01.2012 \\
\noindent Supervisor:           & Name\\
\noindent Co-Supervisor:        & Name  \\
\end{tabular}

\end{titlingpage}

\end{document}

A tabular starts a paragraph, and therefore also inserts a \parindent space. \noindent removes it, as expected. Using \hspace*{-\parindent} would too.