Re: Kolomindeling van tekst met onbekende breedte

Piet van Oostrum <[email protected]>
Newsgroups gmane.comp.tex.dutch
Message-ID <[email protected]>
Johan Wevers wrote:

 > Hallo,
 > 
 > Ik wil soms tekst opmaken als volgt:
 > 
 > Stelling: dit is de uitleg van de stelling. Als deze
 >           te breed is moet er  een regelovergang  in
 >           zitten  en de tekst  moet  links en rechts
 >           uitgelijnd zijn.
 > 
 > 
 > Nu doe ik dat met
 > 
 > \begin{tabular}{@{}p{0.30\textwidth}@{}p{0,70\textwidth}@{}}
 > Stelling:&dit is...  \end{tabular}
 > 
 > Maar nu moet ik altijd experimenteren zodat de kolommen passen, en de
 > constructie overleeft een aanpassing van het font niet. Dat moet
 > netter kunnen lijkt me: TeX die de breedte van de eerste kolom zelf
 > bepaald en de 2e op \textwidth - breedte 1e kolom zet. Weet iemand
 > hoe?

\usepackage{tabularx}
\begin{document}
Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. Some text. 

\begin{tabularx}{\textwidth}{lX}
Stelling:&dit is de uitleg van de stelling. Als deze
          te breed is moet er  een regelovergang  in
          zitten  en de tekst  moet  links en rechts
          uitgelijnd zijn.
\end{tabularx}
-- 
Piet van Oostrum <[email protected]>
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]
_______________________________________________
TeX-NL mailing list
[email protected]
http://www.ntg.nl/cgi-bin/mailman/listinfo/tex-nl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.