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: Andrew J. Piziali
Subject: Re: [Groff] Odd ms Macro Page Offset Register Behavior
Date: Thu, 15 Jan 2004 09:34:43 -0600 (CST)

Werner, you wrote:
    
    >     .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
       .  \}
       .\}

It does not.  Enclosing the second "if" command in braces does not
prevent the mis-formatting of the page footers.
    


-- 
                                                        |
address@hidden                       ________------+------________
                                                       / \
                                                      *---*
    http://pgp.mit.edu:11371/pks/address@hidden&op=index

"It is not for honor or glory or wealth that we fight, but for freedom
alone, which no good man gives up except with his life."
        -- Scottish Declaration of Arbroath, 1320

reply via email to

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