groff
[Top][All Lists]
Advanced

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

[Groff] vpt request in diversions


From: Peter Schaffter
Subject: [Groff] vpt request in diversions
Date: Fri, 2 May 2003 02:40:23 -0400
User-agent: Mutt/1.0.1i

Hi, all!

What is the reason I can't disable and then re-enable vertical
position traps within a diversion?

.da FOO
\!.vpt 0
<stuff that goes in the diversion>
\!.vpt 1
..

disables the traps (.vpt 0), but .vpt 1 is not turning them back
on.

I'm working on the Table of Contents for the mom macro set.
Processing each entry so that the entry itself, the leaders and
the page number all end up on the same line requires setting each
by itself and backing up on the page for the next bit (i.e
entry=>go back a line=>leaders=>go back a line=>page number).
Naturally, the bottom entry on Table of Contents pages trips the
page footer macro, meaning that I end up with the entry at the
bottom of the page, but the leaders and page number are on the next.

I assumed it would be a simple matter to disable the footer trap
with .vpt 0, process the entry, leaders and page number, then
re-enable the trap with .vpt 1.  Apparently, I'm wrong.

-- 
+----------------------------------------------------------------+
| I've spoken to some people who think Governor George W. Bush   |
| is "doing the right thing."  Consider the following quote from |
| Bush, Jr.:                                                     |
|                                                                |
|     "Redefining the role of the United States from             |
|      enablers to keep the peace to enablers to keep            |
|      the peace from peacekeepers is going to be an             |
|      assignment."                                              |
|                                                                |
| How could a man capable of such an utterance *ever* do the     |
| right thing?                                                   |
+----------------------------------------------------------------+

PTPi
Peter Schaffter
320 Gordon Street
Fergus, Ontario
CANADA  N1M 2W3

A confirmed GNU/Linuxer. Sorry, I don't do Windows.

reply via email to

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