7

I have two boxes which to shows text to the left and right of a document.

\begin{minipage}[t][1in][t]{2in}
{\Huge First line box 1}\\
{\footnotesize Second line box 1}
\end{minipage}
\hfill
\begin{minipage}[t][1in][t]{2in}
    \begin{flushright}
{\footnotesize
First line box 2\\
Second line box 2
}
\end{minipage}

These boxes align based on the baseline, however it looks ugly because of the huge text of box 1. I know I can raise box 2 a bit with \raisebox so that they are aligned based on top border of box 1, but it's kind of hacky. Is there any more elegant way to do it?

5
\documentclass[a4paper,12pt]{article}
\setlength\parindent{0pt}
\begin{document}

\begin{minipage}[t][1in][t]{2in}\vspace{0pt}
\rule{\linewidth}{0.5pt}\\
\Huge First line box 1\\
\footnotesize Second line box 1
\end{minipage}
\hfill
\begin{minipage}[t][1in][t]{2in}\vspace{0pt}
\footnotesize\raggedleft
\rule{\linewidth}{0.5pt}\\
First line box 2\\
Second line box 2 \par
\end{minipage}

\end{document} 

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.