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've been writing my CV in LaTeX and used a template. The issue is that where I've put all my entries into this specific section it's grouped all of my entries together in one block and put them on the next page leaving half a page blank.

The relevant code that came with the template is below, I am wondering how I can change it so that it will allow the entries to spill across multiple pages instead of putting it all together on the next page with the requisite space?

Thanks.

\setlength{\tabcolsep}{0pt}
\newenvironment{entrylist}{%
  \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll}
}{%
  \end{tabular*}
}
\renewcommand{\bfseries}{\headingfont\color{headercolor}}
\newcommand{\entry}[4]{%
  #1&\parbox[t]{11.4cm}{%
    \textbf{#2}%
    \hfill%
    {\footnotesize\addfontfeature{Color=lightgray} #3}\\%
    #4\vspace{\parsep}%
  }\\}

Implementing the above code:

\section{Experience}
\begin{entrylist}
\entry
{This text is the wrong colour}
{Text}
{Text}
{\emph{Bold text} \\
Text.}
%------------------------------------------------
\entry
{This text is the wrong colour}
{Text}
{Text}
{\emph{Bold text} \\
Text.}
%------------------------------------------------
\entry
{This text is the wrong colour}
{Text}
{Text}
{\emph{Bold text} \\
Text.}
%------------------------------------------------
\entry
{This text is the wrong colour}
{Text}
{Text}
{\emph{Bold text} \\
Text.}
%------------------------------------------------
\end{entrylist}
share|improve this question
2  
Welcome to TeX.SE! You will find that the help you receive will be better and quicker if you can distill your question down to a minimum working example. Additionally, once you create the MWE, put all of the code here in this question so it is still available when someone reads this much later. –  cslstr Apr 1 at 19:40
    
I have edited my question now. :) –  Stormie Apr 1 at 19:53

1 Answer 1

up vote 3 down vote accepted

With only code fragments to go by, I can't be entirely confident that this will work. You could use a longtable environment instead of a tabular* environment, along the following lines:

\usepackage{longtable}
\newenvironment{entrylist}{%
  \setlength\LTleft{0pt}
  \setlength\LTright{0pt}
  \begin{longtable}{@{}l@{\extracolsep{\fill}}l@{}} % this tells 'longtable' to take up 
                                                    % the full width of the textblock
  }{%
  \end{longtable}
}
\renewcommand{\bfseries}{\headingfont\color{headercolor}}
\newcommand{\entry}[4]{%
  #1&\parbox[t]{11.4cm}{%
    \textbf{#2}%
    \hfill%
    {\footnotesize\addfontfeature{Color=lightgray} #3}\\%
    #4\vspace{\parsep}%
  }\\}
share|improve this answer
    
That's brilliant, it's all perfectly formatted now. Thanks a lot. :D –  Stormie Apr 1 at 20:51
    
@Stormie - I'm delighted that my guess was on target! –  Mico Apr 1 at 20:55
    
I do have one more question now though, after applying the fix it's changed the text colour for the left column, any idea on how I can change the colour back? –  Stormie Apr 1 at 20:58
    
@Stormie - Could you augment your posting to show the use of the \entry macro in action? I see it takes four arguments, but I have no idea what the arguments are: Text, numbers, macros? –  Mico Apr 1 at 21:03
    
Updated, though I had to remov the actual text. I hope this helps! –  Stormie Apr 1 at 21:07

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.