[OS X TeX] pagebreak within a paragraph in a twocolumn setup

Reich Ingo ireich at online.de
Sun Apr 20 11:43:57 CEST 2008


Am 19.04.2008 um 18:49 schrieb Alan Munn:
> At 11:33 AM +0200 4/19/08, Reich Ingo wrote:
>> Hi everybody,
>> I'd like to set text in two essentially independent columns:
>
> [snip]
>
>> 1. Suppose there is a long paragraph in one of the columns which is  
>> too long to fit on the page. Then, what I'd like to have, is an  
>> automatic pagebreak *within* the paragraph, i.e. (i) fill the page  
>> with the first part of the paragraph, then continue on the next  
>> page with the rest of the paragraph in twocolumn mode.
>>
>> 2. I'd like to have different background colors for the two colums  
>> (also extending across the page).
>>
>
> Hi Ingo,
>
> The parallel package (or better the pdfcolparallel package (part of  
> the oberdiek bundle)) will do the two column stuff that you want, if  
> I understand your request correctly.
>
> Different backgrounds, however, will be much more of a problem.  
> Usually you can do this with a single column using the shaded  
> environment from framed.sty.  Unfortunately, the shaded environment  
> doesn't play nicely with parallel. If simply having different colour  
> text for the two columns would work, that would be easy:
>
> \documentclass{article}
> \usepackage[margin=1in]{geometry}
> \usepackage{pdfcolparallel, lipsum, xcolor}
> \begin{document}
> \begin{Parallel}{3in}{2in}
> \ParallelLText{\color{red}\lipsum}
> \ParallelRText{\lipsum}
> \end{Parallel}
> \end{document}
>
> Alan
>
>

Hi Alan,
yes, this is exactly what I was looking for, at least as far as point  
1. is concerned. As for 2., I actually meant to have different colour  
backgrounds for the respective columns ("colour blocks"), not  
differently coloured text.  So this  problem remains. Any suggestions?
Herzliche Grüße nach Michigan,
Ingo




More information about the macostex-archives mailing list