Skip to content

Commit

Permalink
Improve formatting of (vec AB)
Browse files Browse the repository at this point in the history
  • Loading branch information
soegaard committed Dec 8, 2022
1 parent 1151bd7 commit c3906d7
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 @@ -947,8 +947,8 @@
[(list 'percent u) (~a (v~ u) (~sym '|%|))]

[(list 'abs u) ((output-format-abs) u)]
[(list 'vec u) (~a "\\overrightarrow{" (v~ u) "}")] ; TODO: only for TeX
[(list 'vecfun u v) (~a "\\overrightarrow{" (v~ u) "}" "(" (v~ v) ")" )]
[(list 'vec u) (~a "\\overrightarrow{" (~a u) "}")] ; TODO: only for TeX, Note vector AB needs italic
[(list 'vecfun u v) (~a "\\overrightarrow{" (~a u) "}" "(" (v~ v) ")" )]
[(list 'deg u) (~a (v~ u) "° ")] ; TODO: only for TeX
[(list 'hat u) (~a "\\hat{" (v~ u) "}")] ; TODO: only for TeX
[(list 'bar u) (~a "\\bar{" (v~ u) "}")] ; TODO: only for TeX
Expand Down

0 comments on commit c3906d7

Please sign in to comment.