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 put some text at the same height in my page, and I'm trying to do it with a minipage, but I'm not able to do it since they get centre-aligned.

enter image description here

This is the LaTeX for the figure I've uploaded:

\begin{minipage}[]{0.5\textwidth}
    \begin{flushleft}
        {\large \textit{Author}:\vspace*{0.5cm} \\ 
        Me}
    \end{flushleft}
\end{minipage}%
%
\begin{minipage}[]{0.5\textwidth}
    \begin{flushright}
        {\large \textit{Supervisor}:\vspace*{0.5cm} \\ 
        Him}\\
        \vspace*{0.5cm}
        {\large \textit{Advisor}:\vspace*{0.5cm} \\ 
        Other Guy}
    \end{flushright}    
\end{minipage}%

Can you please explain me what I'm doing wrong?

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

Use [t] as the option -- \begin{minipage}[t]{0.5\textwidth}:

\documentclass{article}
\begin{document}
  \begin{minipage}[t]{0.5\textwidth}
    \begin{flushleft}
        \large \textit{Author}:\vspace*{0.5cm} \\
        Me
    \end{flushleft}
\end{minipage}%
%
\begin{minipage}[t]{0.5\textwidth}
    \begin{flushright}
        \large \textit{Supervisor}:\vspace*{0.5cm} \\
        Him\\
        \vspace*{0.5cm}
        \large \textit{Advisor}:\vspace*{0.5cm} \\
        Other Guy
    \end{flushright}
\end{minipage}%
\end{document}

enter image description here

share|improve this answer
    
It was a really silly question...thks ;) –  Matteo Nov 8 '12 at 16:21
    
If you use a command like \large always include a paragraph end (\par or blank line) before the } that closes the scope, I know the ones here are just copied from the MWE:-) In this case you could more simply not have the { } and just let the \large end naturally at the end of the flushright environment. –  David Carlisle Nov 8 '12 at 19:16
    
@Matteo Nothing is silly here, once one doesn't know how to do something then it is important. It is after you see the solution that it becomes obvious. –  azetina Nov 8 '12 at 19:20
    
@DavidCarlisle: You caught me. :-) I blindly copied and looked only at [t]. You are right. Thank you. :-) –  Harish Kumar Nov 8 '12 at 22:21
    
@azetina - thks for your kindness, for sure the next time it will be silly... :) –  Matteo Nov 9 '12 at 8:25
show 2 more comments

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.