I'm writing a short tabular CV that I have to add to my thesis. I thought a quick way would be to use a table for that purpose:
\begin{tabular}{ll}
2009-present & very long text 1, very long text 2, very long text 3 , very long text 4, very long text 5, very long text 6, very long text 7, very long text 8, very long text 9, very long text 10\\
2009 & Masters\\
2006 & Bachelors\\
\end{tabular}
Unfortunately, LaTeX does not break the lines at the spaces. The only solutions I found so far, are
- "adding additional rows to the table"
- "use fixed table size +
\newline
".
Manually adjusting texts is not very efficient.
Is there also a way to automate this (e.g. by define a cell/column as "text-cell/column")?
\begin{tabular}{lp{12cm}}
2009-present & very long text 1, very long text 2, very long text 3 , very long text 4, very long text 5, very long text 6, very long text 7, very long text 8, very long text 9, very long text 10\\
2009 & Masters\\
2006 & Bachelors\\
\end{tabular}
Could be a solution, but the right column does not automatically reach the right "border" of the page.
Best Answer
As requested, an answer with
tabularx
. I also added a solution withlistliketab
. I still prefer adescription
list because of the vertical alignment.Code
Output