Skip to content

Commit

Permalink
Handle (vec OA) in (- (vec OB) (vec OA))
Browse files Browse the repository at this point in the history
  • Loading branch information
soegaard committed Sep 20, 2024
1 parent d2f2292 commit a236b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions racket-cas/format.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@
[(list 'diff u x) (~a "\\dv{" (~var x) "}(" (v~ u #t) ") ")]

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

0 comments on commit a236b42

Please sign in to comment.