[NTG-context] widow/orphan control in columns?

Hans Hagen pragma at wxs.nl
Tue Dec 2 21:59:39 CET 2008


Lars Huttar wrote:
> On 12/2/2008 1:45 PM, Lars Huttar wrote:
>> Hello,
>>
>> We have a document with a 2-column layout where we have section headers
>> that keep ending up at the bottom of columns.
> ....
>> I checked the manual [3] and command
>> reference [4] but couldn't find information about \testpage.
>> Is there a corresponding command to conditionally produce a column break?
>>
>> Thanks,
>> Lars
> 
> I just looked at the implementation of \testpage in base/page-ini.tex
> and found \testcolumn.
> I imagine that should be analogous to \testpage, but hesitate to rely on
> an undocumented feature, as it might be unused or obsolete code. I can't
> find any examples of anyone using \testcolumn.
> 
> Yet it seems that keeping a section header with the following text in a
> column would be a common layout requirement; even Microsoft Word does
> it. Am I missing something?

tex does not know about columns, so any implementation is kind of a 
hack; some time next year in mkiv we will have a more advanced 
skip/penalty model that might handle such cases

> Does anybody know if \testcolumn is intended for public use?

if it works for you ...

Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------


More information about the ntg-context mailing list