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 using parcolumns package for my resume. I have following section in it:

enter image description here

The LaTeX code corresponding to this section is as follows:

\begin{parcolumns}[nofirstindent, colwidths={1=.15\linewidth}]{2}
  \colchunk[1]{%
  \fontsize{8pt}{8pt}\selectfont{}%
  EDUCATION\\*
  \\*
  \\*
  \\*
  [.5\baselineskip]
  }
  \colchunk[2]{%
  \textbf{University of California, XYZ}\hfill 2011 - 2013 (Expected)\\*
  Master of Science, Computer Science, 4.0/4.0\\*
  [0.5\baselineskip]
  \textbf{University of California, ABC}\hfill 2007 - 2011\\*
  Bachelor of Science, Computer Science, 4.0/4.0
  }
\end{parcolumns}

As you can see, I am having trouble aligning heights of two columns, 'EDUCATION' doesn't start from the top of the column. How do I achieve that?

share|improve this question
2  
I suggest using a tabular or longtable environment rather than parcolumns –  egreg Oct 2 '12 at 16:28
    
@egreg: The problem with tabular is that it doesn't occupy full width of the line. –  abhinavkulkarni Oct 2 '12 at 16:41
2  
It does, if you tell it to. –  egreg Oct 2 '12 at 17:00
    
@egreg: Thanks, your suggestions solved my problem. –  abhinavkulkarni Oct 2 '12 at 17:17
add comment

1 Answer

up vote 3 down vote accepted

You can use a tabular or a tabularx, depending on your preferences:

\documentclass{article}

\usepackage{array,calc}
\usepackage{tabularx} % needed only for the second example

\newcolumntype{L}[1]{@{}>{\raggedright}p{#1\linewidth-\tabcolsep}}
%%% for the first example you need also these
\newcolumntype{C}[1]{>{\raggedright}p{#1\linewidth-2\tabcolsep}}
\newcolumntype{R}[1]{>{\raggedright\arraybackslash}p{#1\linewidth-\tabcolsep}@{}}

\textwidth=420pt% just for the example
\parindent=0pt
\renewcommand{\arraystretch}{1.8}

\begin{document}

\hrule

\bigskip

\begin{tabular}{L{.15}C{.5}R{.35}}
\textsc{Education}
&
\textbf{University of California, XYZ}\newline
Master of Science, Computer Science, 4.0/4.0
&
2011 - 2013 (Expected)
\\
&
\textbf{University of California, ABC}\newline
Bachelor of Science, Computer Science, 4.0/4.0
&
2007 - 2011
\\
\end{tabular}

\bigskip

\hrule

\bigskip

\begin{tabularx}{\textwidth}{L{.15}>{\raggedright}Xl@{}}
\textsc{Education}
&
\textbf{University of California, XYZ}\newline
Master of Science, Computer Science, 4.0/4.0
&
2011 - 2013 (Expected)
\\
&
\textbf{University of California, ABC}\newline
Bachelor of Science, Computer Science, 4.0/4.0
&
2007 - 2011
\\
\end{tabularx}

\end{document}

The \hrule commands are just to show the full line width.

enter image description here

share|improve this answer
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.