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'm trying to have my phone number float to the right margin, but hfill doesn't seem to work within an address in res.cls.

\address{email@email.com (555) 555-5555}

So I try to change that to:

\address{email@email.com \hfill (555) 555-5555}

but it doesn't work. hfill has no effect here, any ideas on how to get this to work? I've poked around res.cls but don't see any obvious fixes... well at least for me, I'm a latex noob. Thanks for your help.

share|improve this question
    
Welcome to TeX.SE! Please revise your posting to include a full MWE (minimum working example) rather than just a couple of code snippets. This will help diagnose the issue (or issues, potentially) and simplify others identify a solution. –  Mico Mar 24 '13 at 2:38

1 Answer 1

The class res.cls is somewhat old and it is not flexible; I would suggest you to consider using a more modern class to typeset your CV (See Writing Applications for a Job / CV). To solve your particular problem, you can use \parboxes:

\documentclass{res}
\usepackage{lipsum}

\begin{document}

\begin{resume}
\name{ABC}
\address{\parbox[t]{.3333\textwidth}{\hfill}\parbox[t]{.3333\textwidth}{\centering email@email.com}\parbox[t]{.3333\textwidth}{\raggedleft (555) 555-5555}}
\opening
\lipsum[4]
\end{resume}

\end{document}

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.