tech@mandoc.bsd.lv
 help / color / mirror / Atom feed
* eqn(7): Precedence of from/to/sub/sup
@ 2017-07-04  3:56 Anthony J. Bentley
  2017-07-06  0:26 ` Ingo Schwarze
  0 siblings, 1 reply; 2+ messages in thread
From: Anthony J. Bentley @ 2017-07-04  3:56 UTC (permalink / raw)
  To: tech

Hi,

Kernighan & Cherry's "Typesetting Mathematics: User's Guide" (2e) says:

    If you don't use braces, eqn(1) will do operations in the order
    shown in this list.

    dyad vec under bar tilde hat dot dotdot
    fwd back down up
    fat roman italic bold size
    sub sup sqrt over
    from to

Now consider this example:

.EQ
int from a sub 1 to b sup 2 dx
.EN

groff treats this correctly, as "int from {a sub 1} to {b sup 2} dx".
mandoc instead treats it as "int from {a sub {1 to {b sup 2}}} dx".

-- 
Anthony J. Bentley
--
 To unsubscribe send an email to tech+unsubscribe@mandoc.bsd.lv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-07-06  0:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-04  3:56 eqn(7): Precedence of from/to/sub/sup Anthony J. Bentley
2017-07-06  0:26 ` Ingo Schwarze

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).