groff
[Top][All Lists]

Re: In eqn(1), shouldn't a brace be in roman?

 From: Dale Snell Subject: Re: In eqn(1), shouldn't a brace be in roman? Date: Mon, 15 Nov 2021 20:00:24 -0800

On Mon, Nov 15, 2021 at 3:50 PM G. Branden Robinson
<g.branden.robinson@gmail.com> wrote:
>
> Hi folks,
>
> Given this input:
>
> \$ cat EXPERIMENTS/simple-equation.ms
> .LP
> .DS
> .EQ
> S = "{" x | x \[mo] Z, x > pi "}"
> .EN
> .DE
>
> The braces show up in italics in the output (using groff 1.22.4, "groff
> -e -ms").  Isn't that wrong?

I would say no, that isn't wrong.  According to the EQN user's
guide* §14, Quoted Text:

“   Any input entirely within quotes ("...") is not subject to any
of the font changes and spacing adjustments normally done by the
equation setter.  This provides a way to do your own spacing and

italic "sin(x)" + sin (x)
is
sin(x) + sin(x)  <== Roman text
^---- Italic text

Quotes are also used to get braces and other EQN keywords printed:

"{ size alpha }"
is
{ size alpha }  <== all set in Italics
and
roman "{ size alpha }"
is
{ size alpha }  <== all set in Roman”

* Typesetting Mathematics -- User’s Guide (Second Edition)
B. W. Kernighan and L. L. Cherry, Aug. 15, 1978
(stand-alone file)

So to get roman braces in your example above, you would need:

.LP
.DS
.EQ
S = roman "{" x | x \[mo] Z, x > pi roman "}"
.EN
.DE

--Dale

--
Gideon: “I thought you said you never hold a grudge.”
Galen: “I don’t.  I have no surviving enemies.  At all.”