Skip to content

Commit a236b42

Browse files
committed
Handle (vec OA) in (- (vec OB) (vec OA))
1 parent d2f2292 commit a236b42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

racket-cas/format.rkt

+2-2
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,8 @@
706706
[(list 'diff u x) (~a "\\dv{" (~var x) "}(" (v~ u #t) ") ")]
707707

708708
[(list 'percent u) (~a (v~ u) (~sym '|%|))]
709-
[(list 'abs u) ((output-format-abs) u)]
710-
[(list 'vec u) (let ([s (v~ u)])
709+
[(list 'abs u) ((output-format-abs) u)]
710+
[(list 'vec u) (let ([s (~a u)])
711711
(if (= (string-length s) 1)
712712
(~a "\\vec{" s "}")
713713
(~a "\\overrightarrow{" s "}")))] ; TODO: only for TeX

0 commit comments

Comments
 (0)