groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 01/06: eqn(1): "left" and "right" are brace kryptonite.


From: G. Branden Robinson
Subject: [groff] 01/06: eqn(1): "left" and "right" are brace kryptonite.
Date: Sun, 11 Jun 2023 01:50:55 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 2362562996c1a22ef93c888b75d1b9312f65c0aa
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Jun 9 10:42:00 2023 -0500

    eqn(1): "left" and "right" are brace kryptonite.
    
    Thanks to Damian McGuckin for pointing this out.
    
    Also tweak dead-tree pagination.  Recast description of "vcenter" to say
    a bit more in a bit less space, and to model eqn macro definitions more
    plainly for the reader.
---
 src/preproc/eqn/eqn.1.man | 24 ++++++++++++++++--------
 1 file changed, 16 insertions(+), 8 deletions(-)

diff --git a/src/preproc/eqn/eqn.1.man b/src/preproc/eqn/eqn.1.man
index f22f940fe..f3824011d 100644
--- a/src/preproc/eqn/eqn.1.man
+++ b/src/preproc/eqn/eqn.1.man
@@ -296,6 +296,13 @@ e sup { a b } .
 .EN
 .\}
 .
+When immediately preceded by a
+.RB \[lq] left \[rq]
+or
+.RB \[lq] right \[rq]
+primitive,
+a brace loses its special meaning.
+.
 .
 .TP
 .B "\[ha] \[ti]
@@ -335,7 +342,7 @@ or components of an equation.
 .
 .
 .br
-.ne 2v
+.ne 4v
 .P
 .I Primitives
 are fundamental keywords of the
@@ -977,21 +984,22 @@ about the
 a horizontal line upon which fraction bars and characters such as
 \[lq]\[pl]\[rq] and \[lq]\[mi]\[rq] are aligned.
 .
-For example,
+MathML already behaves this way,
+so
+.I @g@eqn
+ignores this primitive when producing that output format.
+.
+The built-in
 .B sum
-is defined as follows.
+macro is defined as if by the following.
 .
 .RS
 .IP
 .EX
-{ type "operator" vcenter size +5 \[rs](*S }
+define sum ! { type "operator" vcenter size +5 \[rs](*S } !
 .EE
 .RE
 .
-.IP
-.B vcenter
-is silently ignored when generating MathML.
-.
 .
 .br
 .ne 8v



reply via email to

[Prev in Thread] Current Thread [Next in Thread]