9front - general discussion about 9front
 help / color / mirror / Atom feed
From: umbraticus@prosimetrum.com
To: 9front@9front.org
Subject: Re: [9front] troff & eqn sqrt{} output as pdf
Date: Sun, 17 Jan 2021 22:40:11 +1300	[thread overview]
Message-ID: <660510E0270E77DED8E00AEC95B135D7@prosimetrum.com> (raw)
In-Reply-To: <88469C36-F9E3-4537-8AFD-C2F8496C1E4E@quintile.net>

So we discovered that this change:

diff -r 6086ad8502ee sys/lib/postscript/prologues/dpost.ps
--- a/sys/lib/postscript/prologues/dpost.ps	Fri Jan 15 19:32:02 2021 +0100
+++ b/sys/lib/postscript/prologues/dpost.ps	Sun Jan 17 22:17:45 2021 +1300
@@ -188,1 +188,1 @@
-	/radicalex		[-50 0 500 0]
+	/radicalex		[-50 0 500 1]

makes this:

; echo '.EQ
sqrt {g} = pi
.EN' | eqn | troff -ms | dpost | ps2pdf | page

work but have no idea why.
Making the changes suggested at:

B /sys/lib/postscript/prologues/dpost.ps:169,176

didn't help but changing that 0 to 1 (or anything else!)
seems to do the trick for whatever reason.
Any thoughts? or just push it?

Ethan → can confirm on a 5 page report that it fixes all instances of roots

I also checked man -t eqn | dpost | ps2pdf | page

umbraticus

      reply	other threads:[~2021-01-17 10:13 UTC|newest]

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

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=660510E0270E77DED8E00AEC95B135D7@prosimetrum.com \
    --to=umbraticus@prosimetrum.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).