[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[mgp-users 00758] mgp2ps output problem with right-justified lines
- To: mgp-users@mew.org
- Subject: [mgp-users 00758] mgp2ps output problem with right-justified lines
- From: Bob Haddleton <bobh@lucent.com>
- Date: 26 Nov 2001 14:56:56 -0600
- Delivered-to: mailing list mgp-users@mew.org
- Mailing-list: contact mgp-users-help@mew.org; run by ezmlm
This is forwarded from a user who does not subscribe to the list:
I've discovered that taking the output of mgp2ps and feeding it to
ps2pdf causes right-justified lines to get botched sometimes.
This appears to be a roundoff error issue, and I was able to fix it
by changing where mgp2ps generates *newlinecheck code of
currentpoint pop add XMARGIN XBODY add gt {
to be
currentpoint pop add XMARGIN XBODY add 1 add gt {
This is accomplished by modifying print.c to replace the following line:
fprintf(fp, " currentpoint pop add XMARGIN XBODY add gt {\n");
with
fprintf(fp, " currentpoint pop add XMARGIN XBODY add 1 add gt {\n");
Can/should this be integrated into the official source?
Thanks
--
Bob Haddleton