# Tag Info

2

Simulating HTML is the algorithm used by the tabulary package (named because y comes after x) by David Carlisle: \documentclass{article} \usepackage{tabulary} \begin{document} \begin{tabulary}{0.4\linewidth}{|LL|} foo & this is a longer text\newline with a few lines that might be even without\newline sense\\ bar & not so long ...

1

You can obtain this also with the tabularx package, but look better without vertical rules and the horizontal rules of booktabs package. \documentclass{scrartcl} \usepackage{tabularx,booktabs} \begin{document} \noindent\begin{tabularx}{.4\linewidth}{lX} \toprule foo & this is a longer text\par with a few lines that might be even without\par sense \\ ...

4

@StephanLehmke gave me the hint: \documentclass[paper=a4]{scrartcl} \usepackage{tabu} \begin{document} \begin{tabu}spread 0pt{|X[-1]|X|} \hline foo & this is a longer text\par with a few lines that might be even without\par sense \\ bar & not so long \\ \hline \end{tabu} \end{document} which gives:

Top 50 recent answers are included