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 trying to write my resume with LaTeX, and if you see the following image, the contents of the address is left-adjusted.

enter image description here

What do I do to make them center-adjusted? The code I used is as follows:

\documentclass[margin]{res} 
\begin{document} 
\name{\LARGE \bf MY NAME\\[12pt]} % the \\[12pt] adds a blank line after name
\address{ADDRESS STREET APT NUMBER\\ CITY, STATE ZIPCODE   \\ 
    PHONE-NUMBER }
\end{document} 
share|improve this question
    
Welcome to TeX.SE! have you tried \begin{center}...\end{center}? –  cmhughes Nov 2 '12 at 3:15

1 Answer 1

up vote 3 down vote accepted

You can redefine \@tablebox used internally by res.cls to typeset the name and address; the original definition is

\def\@tablebox#1{\begin{tabular}[t]{@{}l@{\extracolsep{\fill}}}#1\end{tabular}}

and he'res the necessary redefinition:

\documentclass[margin]{res} 

\makeatletter
\def\@tablebox#1{\begin{tabular}[t]{@{}c@{}}#1\end{tabular}}
\makeatother

\name{\LARGE \bf MY NAME\\[12pt]} % the \\[12pt] adds a blank line after name
\address{ADDRESS STREET APT NUMBER\\ CITY, STATE ZIPCODE   \\ 
    PHONE-NUMBER }

\begin{document} 

\begin{resume}
test
\end{resume}

\end{document}

enter image description here

Perhaps you should consider using a more modern class to typeset your CV? The moderncv class is one of the classes available (you can get templates and examples here); other possibilitiescan be explored in CTAN: Writing Applications for a JOB/CV.

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.