groff
[Top][All Lists]
Advanced

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

Re: [Groff] grog and mom.


From: Peter Schaffter
Subject: Re: [Groff] grog and mom.
Date: Thu, 6 Jun 2002 14:17:02 -0400
User-agent: Mutt/1.3.28i

Bernd --

On Thu, Jun 06, 2002, Bernd Warken wrote:
> On Thu, Jun 06, 2002 at 12:19:33PM -0400, Peter Schaffter wrote:
> > On Thu, Jun 06, 2002, Ralph Corderoy wrote:
> > > As for adding -mom detection, that's easy enough by checking for
> > > .PRINTSTYLE or .START.
> > 
> > This works for mom documents that are, in fact, fully
> > document-processed using mom.  However, mom also has standalone
> > typesetting capabilities (see typesetting.html in the docs) that don't
> > require .PRINTSTYLE or .START.  That could make detecting mom
> > difficult.  A simple fix would be requiring that all mom documents
> > start with a commented out keyword, say
> > 
> >     \#MOM
> > 
> > Not very elegant, I know, but all I'd have to do is add a note in the
> > documentation.
> > 
> Another possibility is
> 
> .if !dPRINTSTYLE \
> .  mso om.tmac

I'd prefer, if possible, to avoid requiring groff primitives in mom
documents.  How about a macro -- .MOM -- that does what you suggest
and which would be entered at the top of all mom documents?

Also, I'm not clear why .mso om.tmac is necessary if om.tmac is
installed in site-tmac as recommended.

-- 
PTPi
Peter Schaffter
31, Curé-André-Préseault
Appt. 22
Gatineau (Québec)
CANADA  J8T 6E4

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

reply via email to

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