[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Suppressing tbl header on first page
From: |
Robert Goulding |
Subject: |
Re: [Groff] Suppressing tbl header on first page |
Date: |
Tue, 5 Aug 2003 19:28:56 -0500 |
User-agent: |
Internet Messaging Program (IMP) 3.2.1 |
Quoting Werner LEMBERG <address@hidden>:
>
> > I can't find any description of how to do this simple task anywhere.
> > Having set up a multi-page table with
> >
> > .TS H
> > <header>
> > .TH
> > ...
> >
> > is there any way to ensure that the continuation header does *not*
> > appear on the first page of the table?
>
> No. The ms macros don't have this feature. Here a quick hack to do
> it:
>
> .rn tbl*print-header tbl*print-header-old
> .
> .de tbl*print-header
> . mk #T
> ..
> .
> .TS H
> <header>
> .TH
> .
> .rn tbl*print-header-old tbl*print-header
> ...
> .TE
>
Thanks, Werner. I applied this idea also to the -me macros, with success:
.rn TH TH-OLD
.\" The definition of TH follows, simply without the line .|h which
.\" outputs the heading diversion.
.de TH
.nr T. 0
.T# 0
.di
.nr _T \\n(?T
.nr ?T 0
.ne \\n(dnu+1v
.nr ?T \\n(_T
.nr _i \\n(.i
.in 0
.in \\n(_iu
.rr _i
.mk #T
..
.TS H
<header>
.TH
.
.rn TH-OLD TH
...
.TE
--
Robert Goulding
Program of Liberal Studies
University of Notre Dame