[Tex/LaTex] Three columns for only part of the page

columnsformatting

Currently I'm working on a resume, but I'm having trouble getting the formatting I want. An example of what I'm trying to do can be seen here – however, I couldn't even get that to work right (LibreOffice) because the whole document is in 3 columns, when I just need the header as displayed in 3 columns.

I've tried using \hfill, but that makes the center column uneven due to the length of the text in the right column. I've tried using a table, but can't seem to get that right. The closest I've gotten is when using the tabularx package:

\documentclass{article}
\usepackage[margin=1in]{geometry} % set margins to 1 inch
\usepackage{tabularx} % format of addresses at top of document

\begin{document}
\begin{center}
{\Huge DaimyoKirby}\\
\end{center}
\begin{tabularx}{\textwidth}{XXX}
123 Main Street & abc1234@myUni.edu & 123 Campus Postoffice \\
MyTown, USA 12345 & 123.456.7890 & CollegeTown, MyState 09876 \\
\end{tabularx}
\end{document}

This leaves the columns, however, offcenter like I mentioned before. Is there a way I could have these 3, nicely formatted columns for the top of my resume?

Best Answer

I think three minipages are enough:

\documentclass{article}
\usepackage[margin=1in]{geometry} % set margins to 1 inch

\begin{document}

\begin{center}
{\Huge DaimyoKirby}\par\bigskip
\begin{minipage}[b]{0.33333\textwidth}
\raggedright
123 Main Street \par
MyTown, USA 12345 
\end{minipage}%
\begin{minipage}[b]{0.33333\textwidth}
\centering
abc1234@myUni.edu \par
123.456.7890
\end{minipage}%
\begin{minipage}[b]{0.33333\textwidth}
\raggedleft
123 Campus Postoffice \par
CollegeTown, MyState 09876
\end{minipage}
\end{center}

\end{document}

enter image description here

For the electronic address, you could use

\texttt{abc1234@myUni.edu}

or

\url{abc1234@myUni.edu}

from the url or hyperref packages.

Related Question