[Tex/LaTex] \hfill doesn’t work between minipages

alignhorizontal alignmentminipagevertical alignment

I'm hoping to achieve something like this:
enter image description here
hopefully

  • height of "large text" is twice the height of "small text".
  • "small text 1" and "small text 2" should be right aligned.

I implemented with 3 minipage (1 for "large text" and 2 for "small text"), only to get

enter image description here

I have 2 questions regarding my code:

  • why \hfill doesn't work between mini pages?
  • Is there a way to align "small text 1" with the upper of "large text" and align "small text 2" with the bottom of "large text"? Should I insert a \vfill between 2 mini pages containing "small text"?
\begin{minipage}[t][2\baselineskip]{0.7\textwidth}
    {\LARGE large Text}
\end{minipage}%
{\hspace*{0pt}{\hfill}%
\begin{minipage}[t][2\baselineskip]{0.5\textwidth}
    \begin{minipage}[t][1\baselineskip]{0.5\textwidth}
    {\hfill} small text 1
    \end{minipage}\\
    \begin{minipage}[t][1\baselineskip]{0.5\textwidth}
    {\hfill} small text 2
    \end{minipage}\\
\end{minipage}

Best Answer

You have no \hfill between minipages.

There's a much simpler solution:

\documentclass{article}

\usepackage{showframe} % to show page boundaries

\begin{document}

\noindent
{\Huge Large text}\hfill
\begin{tabular}[b]{@{}r@{}} small text 1 \\ small text 2 \end{tabular}

\end{document}

enter image description here

Related Question