groff
[Top][All Lists]
Advanced

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

Re: [Groff] groff -mm output something I don't expect


From: Werner LEMBERG
Subject: Re: [Groff] groff -mm output something I don't expect
Date: Sat, 15 Nov 2008 11:48:33 +0100 (CET)

> Wow, there were so many masters of troff/groff answering my stupid
> question. Thanks a lot.

It's not a stupid question at all.  You are the first one who has ever
reported this problem.

> [...]  I found the problem is caused by the old ``mmt'' macro
> shipped with OpenSolaris.

Aah.

> I found that when I run ``configure; make; make install'', if there
> are already macros under /usr/share/lib/tmac, groff will not
> generate a m.tmac file, instead, it always uses ``mmt'' under
> /usr/share/lib/tmac.

Yes, this is intentional.

> < /F0 10/address@hidden SF 524.18(-- --)0 10 R 2.5(-1-)277.006 58 S
> < (Hello w)69.336 106 Q(orld!)-.1 E 524.18(-- --)0 801.5 R 0 Cg EP
> 
> [...] this results in the two short bars I mentioned.

Actually, you get *four* bars:

  /F0 10/address@hidden SF
  524.18(-- --)0 10 R
  2.5(-1-)277.006 58 S
  (Hello w)69.336 106 Q(orld!)-.1 E
  524.18(-- --)0 801.5 R
  0 Cg EP

Two at the top and two at the bottom.

> Another workaround might be ``mv'' or ``rm'' /usr/share/lib/tmac and
> then build groff, from then on, groff will always use its mm macro
> package.

The correct workaround is documented in the PROBLEMS file, which you
probably haven't read:

  * groff produces wrapper macros for `ms' and friends which call the
    system's original macros.  Then, to get groff's ms macro package I
    have to use `-mgs' instead `-ms'.  Can I avoid this?

  Yes.  Configure and compile groff as usual, but install it with

    make install tmac_wrap=""

  Then no wrapper files are produced, and `-ms' uses groff's `ms'
  macros.


    Werner




reply via email to

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