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 a LaTeX beginner and under a heading (e.g. Interests) I want to have the text laid out as above. Specifically, my problem is getting the part on the right to stay aligned to the line above when it goes onto the next line.

share|improve this question
    
Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. –  doncherry Oct 9 '12 at 21:28
    
Do you know that there are several classes for CV on CTAN? If not, please have for example a look to the answer of @schlimmchen. It does not answer your concrete question but gives you a hint building your CV a little bit easier without doing everything by your own ... –  Kurt Oct 9 '12 at 23:20

4 Answers 4

up vote 4 down vote accepted

This looks like a case for a table using tabular. (Note that that is different from the table environment!)

\documentclass{article}

\usepackage{array,booktabs} % array is for formatting an entire column as bold
                            % booktabs is good for every table, see its documentation

\begin{document}
\noindent\begin{tabular}{>{\bfseries}lp{7cm}}
        % >{...} specifies commands to be executed for the entire column
        % p{...} is a left-aligned column that breaks lines (p = paragraph)
Tennis & Enjoy playing doubles in tournaments at my local club \\
Cricket & Member of school and College teams \\
Travel & Enjoy independent travel and have visited Germany, Canada, east USA; plus
         several visits to India and Kenya \\
\end{tabular}
\end{document}

output

If you haven't already read it, I highly recommend The Not So Short Introduction to LaTeX2ε to beginners; 2.11.6 is on tabular, 2.12 is on table. The unofficial LaTeX reference manual also has a useful overview of table (9.22) and tabular (9.23).


As Gonzalo suggested, this is a version slightly tweaked in terms of spacing: @{...} changes whatever is in between the columns -- in this case nothing anymore (instead of the space \tabcolsep); \renewcommand{\arraystretch}{1.2} inserts 1.2 times the normal space between the table rows, which makes the rows slightly easier on the eye.

\documentclass{article}

\usepackage{array,booktabs}

\renewcommand{\arraystretch}{1.2}

\begin{document}
\noindent\begin{tabular}{@{}>{\bfseries}lp{7cm}@{}}
Tennis & Enjoy playing doubles in tournaments at my local club \\
Cricket & Member of school and College teams \\
Travel & Enjoy independent travel and have visited Germany, Canada, east USA; plus several visits to India and Kenya \\
\end{tabular}
\end{document}

output

share|improve this answer

If you like that particular structure for your CV, you should have a look into the moderncv package:

http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv/

Notice the example subdirectory. The alignment problem you described is handled by the package's design. So if you like the overall design (multiple are possible), you should probably use the moderncv package.

share|improve this answer

There is a huge package from EuroCV that makes for a very nice formatting tool on CTAN. It is a nice set of macros in all languages.

share|improve this answer

I have found the resume package to be very useful. In the very small example below you can see that the section command is used to create the kind of titles you have as bold "headings" in your own example. The usepackage sequence is just to get the sans serif font droidsans. The regular text will appear to the left of the heading and is not restricted to a single line. Hopefully this could help to some extent. There is of course a lot more to the package than is shown below

\documentclass[margin,line,a4paper]{resume}

\usepackage[utf8]{inputenc} %utf8
\usepackage[english,swedish]{babel}
\usepackage[defaultsans]{droidsans}
\renewcommand*\familydefault{\sfdefault}
\usepackage[T1]{fontenc}

\begin{document}
{\sc\sffamily\Large \textbf{Curriculum Vitae -- Your name}}

\begin{resume}

\section{\mysidestyle Education/\\ Promotions}\vspace{1mm}
\emph{Professor}  1 Jul., 2004

\end{document}
share|improve this answer
    
I can't really get this to compile. Could you provide a link to the class file? Accordingly this seems to be an obsolete class file. –  azetina Oct 9 '12 at 22:31
    
@azentina: I think you can find the resume class here. –  Kurt Oct 9 '12 at 23:14

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.