TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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:



\address{\parbox[t]{.3333\textwidth}{\hfill}\parbox[t]{.3333\textwidth}{\centering email@email.com}\parbox[t]{.3333\textwidth}{\raggedleft (555) 555-5555}}


enter image description here

share|improve this answer

Your Answer


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.