groff
[Top][All Lists]
Advanced

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

Re: [Groff] gpresent problem


From: Bob Diertens
Subject: Re: [Groff] gpresent problem
Date: Wed, 7 Aug 2002 13:11:57 +0200
User-agent: Mutt/1.3.25i

On Wed, Aug 07, 2002 at 03:01:17AM +0200, Werner LEMBERG wrote:
> 
> > It appeards gpresent is having difficulties with groff-1.18
> > generated .ps files (ps2pdf failure). I used ps2pdf from Ghostscript
> > 5.xx and Ghostrscript 7.05. Probably a groff problem then. Anyhow,
> > if someone has ps2pdf working with 1.18 please report.
> 
> Well, Bob hasn't properly encapsulated his internal strings, macros,
> and variables names into a macro-specific namespace; most notably, he
> uses a string named `color' which is now used by groff itself.  But
> this doesn't cause the problem.  Doing a quick test with
> 
>   groff -pet -ww -M. -mtrace -mm -mpresent demo.rof > demo.pps 2> demo.log
> 
> (replacing the smiley image with something different since it is
> missing in the package) shows that there is a recursive call of the
> address@hidden' macro which isn't changed in tmac.present.  J?rgen, can
> you help here?  gpresent is available from
> 
>   www.science.uva.nl/~bobd/useful/gpresent/

Well, it is good to know gpresent is used by some of you.

I have tracked down the problem.
Make the following changes in tmac.present:
    line 413
        .nr pg*footer-size 3
    to
        .nr pg*footer-size 3v
    line 417
        .nr pg*footer-size \\$
    to
        .nr pg*footer-size (v;\\$1)

This solves the problem with the recursive call of address@hidden

But the header on the first page is ''%''.
This is caused by a bug in the mm macros
Make the following change in gm.tmac:
    line 1409 (macro VM)
        .el \{
    to
        .el \{\

This last change also resolves problems with ps2pdf (at least it is
working here).

Enjoy using gpresent.

Greetings,
    Bob

reply via email to

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