2

This question already has an answer here:

I have a table with one column which contains a longer description spanning multiple lines. Therefore I use the column type p, which requires me to specify a fixed column width. Is it possible to specify the column in such a way, that the table column simply "grabs" all available horizontal space?

\documentclass[ngerman]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\begin{document}
    % I would like to avoid hard coding the column width here
    \begin{tabular}{l p{5cm}}
        column 1 & column 2 \\
        name & The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog. \\
    \end{tabular}
\end{document}

marked as duplicate by lockstep, dustin, Claudio Fiandrino, Werner, cmhughes Jul 30 '13 at 12:37

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3

Try the tabularx package:

\usepackage{tabularx}
...

\begin{tabularx}{\linewidth}{l X}
...
\end{tabularx}

Column type X provides what you need.

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