groff
[Top][All Lists]
Advanced

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

Re: Truncate the last lines of a diversion to another diversion


From: Tadziu Hoffmann
Subject: Re: Truncate the last lines of a diversion to another diversion
Date: Thu, 5 Jan 2023 19:45:00 +0100
User-agent: Mutt/1.11.4 (2019-03-13)

Since you're already diverting into TEXT when you expect the
overflow to occur, you have to use a diversion trap instead
of a page trap:


  .ll 20m
  .de CUT
  .di       \" stop diverting into TEXT...
  .di TEXT2 \" ...and divert into TEXT2.
  ..
  .di TEXT
  .dt 1v CUT \" 1v into the diversion, redivert into TEXT2.
  A paragraph that is long enough to be used as an example
  for my question.
  .br
  .di
  .nf
  .TEXT
  -----
  .TEXT2
  .fi





reply via email to

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