9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Ethan Long <ethandavidlong2@gmail.com>
To: 9front@9front.org
Subject: [9front] troff & eqn sqrt{} output as pdf
Date: Sat, 16 Jan 2021 00:14:32 +1100	[thread overview]
Message-ID: <CA+=0zmf8y8nKddwkp6zEU_m5+m6nUm8Kn4_Rue0eTDLOSUiuUA@mail.gmail.com> (raw)

Hello, unfortunately when using equations in troff there is one
bug/erratic behaviour that I cannot fix, so I was wondering if anyone
here would be able to help.

Basically when using the sqrt function in eqn, everything appears to
work okay and well if you're outputting as ps and viewing in page on
9front.
However, when one uses ps2pdf or views this postscript elsewhere
(ps2pdf on 9front and linux both do this), the horizontal line that
typically covers the whole square root is detached from the radical
that starts the root.

Try this example:

eqn file | troff -ms | dpost | page
eqn file | troff -ms | dpost | ps2pdf | page

.EQ
sqrt {g} = pi
.EN

It doesn't matter how long the root is, you will notice that if you
simply run dpost and pipe into page all is fine, but if you use
ps2pdf, the top of the root is offset by a large gap.

Does anyone have any ways of fixing this or working around this? If
it's a ghostscript bug then it's been there a long while.

             reply	other threads:[~2021-01-15 13:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-15 13:14 Ethan Long [this message]
2021-01-15 13:52 ` Steve Simon
2021-01-17  9:40   ` umbraticus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+=0zmf8y8nKddwkp6zEU_m5+m6nUm8Kn4_Rue0eTDLOSUiuUA@mail.gmail.com' \
    --to=ethandavidlong2@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).