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 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}
share|improve this question

1 Answer 1

up vote 2 down vote accepted

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.

share|improve this answer
    
I've already tried that. It mitigates the problem somewhat, but a small indent still remains. –  hakoja Jun 18 '12 at 14:38
    
@hakoja: Note the modification in the column specification. The @{} removes any intercolumn space, which also shows as a small indent. –  Werner Jun 18 '12 at 14:39
    
I tried removing that as well :) Look at the first tabular environment in my example, it doesn't contain a @{}. And the (small) indent still remains when I use \noindent –  hakoja Jun 18 '12 at 14:42
    
Never mind! I messed up, sorry. I edited the wrong document, therefore I didn't see the changes. Your suggestion worked indeed :) Thanks! –  hakoja Jun 18 '12 at 14:45

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.