groff
[Top][All Lists]
Advanced

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

Re: [Groff] header and footer in a cv with -mom


From: Jan-Herbert Damm
Subject: Re: [Groff] header and footer in a cv with -mom
Date: Mon, 14 Sep 2009 11:31:42 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello, 

[Peters answer:]

On Fri, Sep 11, 2009, Jan-Herbert Damm wrote:

> > Briefly, HEADERS_AND_FOOTERS allows you to have both headers and
> > footers on the same page, and to say precisely what goes in them.
> 
> I have just spent several hours trying to get this right. But still can't.
> <snip>
> With the following Code I get a Header on page 1 that is messed up after
> printing the closing ' " ' for a reason I don't understand. 

What's messing things up is \*[SIZE <n>].

>From the docs:
(Inline escapes
  =>Inlines index
    =>Mom's personal inlines
      =>Changing point size)

    +----------------------------------------------------------------+
    | NOTE CONCERNING DOCUMENT PROCESSING: If you're using the       |
    | document processing macros and wish to design your own HEADERS |
    | or FOOTERS using mom's inline escape for changing point size   |
    | inside the left, centre and/or right strings, or in the        |
    | strings for recto and/or verso HEADERS or FOOTERS, or in       |
    | the strings passed to HEADERS_AND_FOOTERS, you must use the    |
    | form \*S[<n>] and enter the inline beginning with \E*, like    |
    | this: \E*S[<+|-><n>].                                          |
    +----------------------------------------------------------------+

Thus, where you've used \*[SIZE 9] and \*[SIZE 8], you should use
instead \E*S[9] and \E*S[8], respectively.

Alternatively, rather than going the "pure mom" route, you can use
the native groff escape \s[<n>] to do the same thing.

Given that this is a significant issue, it would be a great help
if you could suggest a good place in the headers and footers
documentation for me to mention it and thus provide a link to the
above NOTE.
 
> There is no footer on page 1

Add

    .FOOTER_ON_FIRST_PAGE

By default, mom doesn't put a footer on page one.

> and inexplicable header and footer-rules on subsequent pages.

Add

    .HEADER_RULE off
    .FOOTER_RULE off
 
Hope this addresses all your issues.  If there's anything else,
don't hesitate to ask for help.

-- 
Peter Schaffter




reply via email to

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