groff
[Top][All Lists]
Advanced

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

Re: [Groff] Odd ms Macro Page Offset Register Behavior


From: Werner LEMBERG
Subject: Re: [Groff] Odd ms Macro Page Offset Register Behavior
Date: Wed, 14 Jan 2004 00:09:54 +0100 (CET)

>     .ie \n[FormatterPass]=1 \{
>     .  open SecondPassFile /tmp/defs
>     .\}
>     .el .if \n[FormatterPass]=2 \{
>     .  so /tmp/defs
>     .  sy rm -f /tmp/defs
>     .\}
>
> 
> If -rFormatterPass=2 is omitted from the groff command line or the
> .ie/.el command sequence is removed, commented out or replaced by
> ".if 0", the page footers format properly.

Without analyzing your problem in detail, I wonder whether the
following works:

   .ie \n[FormatterPass]=1 \{
   .  open SecondPassFile /tmp/defs
   .\}
   .el \{
   .  if \n[FormatterPass]=2 \{
   .    so /tmp/defs
   .    sy rm -f /tmp/defs
   .  \}
   .\}


    Werner

reply via email to

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