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 writing a resume using res.cls. I would like to write a non-indented paragraph under a section heading but can't figure out how to override the heavily indented margins used for columns under sections. I have tried \flushleft and a few other things but that nothing has worked. Anyone have any suggestions?

A minimal working example illustrating the undesired indentation:

\documentclass{res}
\usepackage{lipsum}% just to generate text for the example

\begin{document}

\section{Test Section}
\lipsum[4]

\end{document}

enter image description here

share|improve this question
2  
Would you be able to include a small example of a resume to work with, rather than having to generate something from scratch? We call this an minimal working example (MWE). –  Werner Jul 26 '12 at 17:56
    
\noindent won't work? –  JLDiaz Jul 26 '12 at 18:04
2  
Unless you've committed a lot of time to using this class (which is very old, and poorly documented) you might want to consider some of the more modern CV/resume classes. See this question for some possibilities: LaTeX template for resume/curriculum vitae. –  Alan Munn Jul 26 '12 at 18:40
    
I added a MWE example with its image to your question; I hope it's OK. –  Gonzalo Medina Jul 26 '12 at 23:27
add comment

1 Answer

As Alan Munn suggests in his comment, you should consider using another document class (res.cls is very old, and poorly documented). That being said, according to the comments on res.cls, you can solve your problem using the \newsectionwidth{<length>} command which controls the amount that the section titles go in the left margin; a little example:

\documentclass{res}
\usepackage{lipsum}% just to generate text for the example

\newsectionwidth{0cm}

\begin{document}

\section{Test Section One One}
\lipsum[4]

\end{document}

enter image description here

The above solution moves the section title to the right; now that I reread the question, perhaps the desired effect is to leave the title as it is and move the block of text to the left; if this is the case, \parshape will do the job:

\documentclass{res}
\usepackage{lipsum}% just to generate text for the example

\begin{document}

\section{Test Section One}
\lipsum[4]

\section{Test Section Two}
\parshape 1 -\sectionwidth \resumewidth
\lipsum[4]

\section{Test Section Three}
\lipsum[4]

\end{document}

enter image description here

share|improve this answer
    
\parshape 1 -\sectionwidth \resumewidth worked great. Thanks so much! –  Joslyn Jul 31 '12 at 18:25
    
@Joslyn you're welcome! Don't forget to accept the answer (this is different from up-voting it), In case of doubt, please see How do you accept an answer?. –  Gonzalo Medina Jul 31 '12 at 18:27
add comment

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.