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 am working on a resume using \documentclass{res} but I'd like it to left-align the name and address while using the \name and \address commands. I have tried using \begin{tabular}... and \begin{ncolumn}{2}... but this causes the name to not show up at all. Is there a way to do this?

My document has the following structure:

\documentclass{res} 

\newsectionwidth{0pt}
\setlength{\textheight}{10.2in}
\topmargin=-.5in
\oddsidemargin=-.5in

\begin{document}

%Name and address commands are placed here
\name{John Q. Doe}
\address{Address 1\\1111 Anywhere St\\Anytown, USA 00000\\(555) 555-1111}
\address{\empty}

\begin{resume}
% Rest of resume is here and rendering correctly
\end{resume}
\end{document}

The example I followed had the following code, which placed one address on either side.

\address{Address 1\\1111 Anywhere St\\Anytown, USA 00000\\(555) 555-1111}
\address{Address 2\\9999 Anywhere St\\Anytown, USA 00000\\(555) 555-9999}

With a minor modification this did what I wanted

\address{Address 1\\1111 Anywhere St\\Anytown, USA 00000\\(555) 555-1111}
\address{\empty}

Thus I tried the following, but it still only placed the name in the center

\name{John Q. Doe}
\name{John Q. Doe} %Would be changed to \empty if it worked

This doesn't render the name at all

\begin{tabular}{p{3.5in}l}
\name{ John Q. Doe} 
1111 Anywhere St       & \empty\\
Anytown, USA 00000     & \empty\\
(555) 555-1111         & \empty
\end{tabular}
share|improve this question
3  
It's a good idea to give us a minimum working example that demonstrates your problem. That way we can copy and paste it, then have a tinker. –  qubyte Nov 17 '11 at 5:04
2  
For professional and more modern-looking CV's, consider using the moderncv package. –  Werner Nov 17 '11 at 6:36

1 Answer 1

The easiest way to achieve this would be to place the name inside a box of width \textwidth and left-align the contents. This is achieved by using \makebox[\textwidth][l]{<name>}:

\name{\makebox[\textwidth][l]{John Q. Doe}}

enter image description here

share|improve this answer

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.