3

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?

  • 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
3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.