We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 596d478 commit e1c95b0Copy full SHA for e1c95b0
racket-cas/format.rkt
@@ -107,11 +107,16 @@
107
(parameterize ([output-wrapper values])
108
(define x (verbose~ u))
109
(define y (verbose~ v))
110
+ (when (and (= (string-length x) (+ (string-length y) 1))
111
+ (eqv? (string-ref x 0) #\-))
112
+ (set! y (~a "\\phantom{-}" y)))
113
+ (when (and (= (string-length y) (+ (string-length x) 1))
114
+ (eqv? (string-ref y 0) #\-))
115
+ (set! x (~a "\\phantom{-}" x)))
116
(if (output-brackets-for-up?)
117
(~a "\\begin{bmatrix} " x "\\\\" y "\\end{bmatrix}")
118
(~a "\\begin{pmatrix} " x "\\\\" y "\\end{pmatrix}"))))
119
-
120
;;; Intervals
121
(define (default-output-interval u)
122
(define v~ verbose~)
0 commit comments