groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Copying blocks of troff input to a file


From: Werner LEMBERG
Subject: Re: [Groff] Copying blocks of troff input to a file
Date: Wed, 24 Dec 2003 15:57:34 +0100 (CET)

> I'm trying to devise a pair of macros (say .TO and .TQ)
> such that
> 
> .TO
> one or more lines of troff input
> .TQ
> 
> would
> 
> a) append these input lines verbatim to another file
> b) leave them stilll available as troff input

.de TO
.  opena TOCout TOC.tr
.  write TOCout .XA \\n[PN]
.  de address@hidden TQ
..
.
.de TQ
.  writem TOCout address@hidden
.  write TOCout .XE
.  close TOCout
.  address@hidden
..


    Werner

reply via email to

[Prev in Thread] Current Thread [Next in Thread]