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.

How can I define a tabular with two columns in LaTeX, where the first column fills 30% of the page width and the second column fills the rest?

share|improve this question
    
I guess you meant the "second column" and not the "second tabular", right? I corrected that for you. –  Hendrik Vogt Mar 28 '11 at 18:48
    
yeah, thank you :) –  MBZ Mar 28 '11 at 19:17
add comment

3 Answers

up vote 6 down vote accepted

You could use the tabularx package.

For example:

\usepackage{tabularx}
...
\noindent%
\begin{tabularx}{\textwidth}{p{.3\textwidth}X}
...
\end{tabularx}

tabularx has the advantage, that you can specify the whole width and use X type columns which fill up the remaining space.

share|improve this answer
add comment

You could try something likes this:

\documentclass{article}

\begin{document}

\noindent\begin{tabular}{p{\dimexpr.3\textwidth}p{\dimexpr.7\textwidth-4\tabcolsep}}
some text some text some text &  some text some text some text text text text text text text text text text   text text text text text text text text text   text text text text text text text text text   text text text text text text text text text 
\end{tabular}

\end{document}

The first column takes 30% of the \textwidth; the second column takes .7\textwidth minus 4 times \tabcolsep (the space between the column and its contents).

share|improve this answer
add comment

This can be done using the tabularx package.

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.