bug-groff
[Top][All Lists]
Advanced

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

groff (troff/eqn) problems on Mac OS X 10.2


From: Duncan Agnew
Subject: groff (troff/eqn) problems on Mac OS X 10.2
Date: Thu, 3 Apr 2003 08:57:12 -0800 (PST)

I wrote in a week or two ago about problems with groff under Mac OS X 10.2;
these remain, but I can be more specific.

The gcc compiler is:

Apple Computer, Inc. GCC version 1006, based on gcc version 3.1 20020105

The g++2 compiler is

Apple Computer, Inc. version gcc-937.2, based on gcc version 2.95.2 19991024

The problem, which is in troff processing of eqn output, does not occur for
groff 1.17.2 on Mac OS X 10.1 (created by SourceForge, which no longer
maintains groff for the Apple), but does occur for

        (A) groff 1.17.2 as installed by Apple on OS X 10.2
        (B) groff 1.18.2 as installed by myself using gcc (source from
                groff-current of 1 April 2003)
        (C) groff 1.18.2 as installed by myself using g++2 (as suggested in
                the response to my previous post).

        My test script is, for (A)

cat text.ms | eqn -Tps > tmpte
cat tmpte | troff -ms  > tmpt.ps

and for (B) and (C):

cat text.ms | groff-current/src/preproc/eqn/eqn -Tps > tmpte
cat tmpte |
groff-current/src/roff/troff/troff -ms -Fgroff-current/font 
-Mgroff-current/tmac > tmpt.ps

(the text.ms file is included below).

The result of the eqn processing is the same for all (and this eqn output is the
same as for groff 1.17.1 on OS X 10.1, so eqn is not the problem).

For (A) and (B), troff is unable to digest some very long lines (beginning with
        .as 10 ....) that are output by eqn. The error message is

        <standard input>:23: warning [p 1, 3.4i]: can't break line

repeated a number of times. The line number is not correct but I gather this
is usual for .as commands. The math part of the output is messed up. If I
remove the long lines the error messages cease but the output is of course
useless.

For (C) troff does not produce any error messages, but the output is certainly
not correct PostScript; I append the input text and part of the output below.

Any suggestions would be welcome. I should say that while I've used Unix for
decades I'm not a C programmer (much) or C++ (at all) or any kind of a Linux
expert. So I hope this is something obvious--if not, I'd be happy to work with
someone more expert to see if this can be resolved.

Thanks
Duncan Agnew
address@hidden

---------------Input file (text.ms)

.EQ
delim $$
.EN
.ps 12
.vs 14
.nr PS 12
.nr VS 14
.LP
Here is an example of subscripts and superscripts:
.EQ
x sub 1 sup 2 = "" sub 3 z sup 4
.EN
.LP
Here is an example of an integral:
.EQ
int from 1 to 0 bold v sup 2 dv ~=~ 1
.EN
.LP
Here is an example of a fraction:
.EQ
{a+b} over {c+d} = y over z
.EN
and here is an inline equation: $grad v ~=~ bold T$

--------------Start of output from option (C) [tmpt.ps]

x T ps
x res 72000 1 1
x init
F -
p1
x font 5 TR
f5
s12000
V86000
H72000
md
DFd
tHere
wh3000
tis
wh3000
tan
wh3000
te
H128796
txample
wh3000
tof
wh3000
tsubscripts
wh3000
tand
wh3000
tsuperscripts:
n14000 0
x font 40 TI
f40
V107518
H268734
tx
f5
s8400
h636
V102478
t2
H274578
       ...... [lots more lines]
n14000 0
x trailer
V792000
x stop




reply via email to

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