right kind of angle brackets

svn: r9139

original commit: 526bf71b249df479e8d554a58fef8e446744642f
This commit is contained in:
Matthew Flatt 2008-04-02 16:57:56 +00:00
parent 08270b7361
commit f531e51b90
3 changed files with 8 additions and 8 deletions

View File

@ -50,9 +50,9 @@
(define BNF-etc "...") (define BNF-etc "...")
(define/kw (nonterm #:body s) (define/kw (nonterm #:body s)
(make-element #f (append (list 'lsaquo) (make-element #f (append (list 'lang)
(list (make-element 'italic (decode-content s))) (list (make-element 'italic (decode-content s)))
(list 'rsaquo)))) (list 'rang))))
(define/kw (optional #:body s) (define/kw (optional #:body s)
(make-element #f (append (list "[") (decode-content s) (list "]")))) (make-element #f (append (list "[") (decode-content s) (list "]"))))

View File

@ -138,8 +138,8 @@
(case (string-length s) (case (string-length s)
[(0) (void)] [(0) (void)]
[else [else
(printf "{\\mytexttt{~a}}" (printf "{~a}"
(regexp-replace* #rx"." s "~"))]))] (regexp-replace* #rx"." s "\\\\hphantom{\\\\mytexttt{x}}"))]))]
[(newline) (printf "\\\\")] [(newline) (printf "\\\\")]
[else (error 'latex-render "unrecognzied style symbol: ~s" style)])] [else (error 'latex-render "unrecognzied style symbol: ~s" style)])]
[(string? style) [(string? style)
@ -317,8 +317,8 @@
[(rarr) "$\\rightarrow$"] [(rarr) "$\\rightarrow$"]
[(alpha) "$\\alpha$"] [(alpha) "$\\alpha$"]
[(infin) "$\\infty$"] [(infin) "$\\infty$"]
[(lsaquo) "$\\langle$"] [(lang) "$\\langle$"]
[(rsaquo) "$\\rangle$"] [(rang) "$\\rangle$"]
[else (error 'render "unknown symbol element: ~e" i)]))] [else (error 'render "unknown symbol element: ~e" i)]))]
[else (display-protected (format "~s" i))]) [else (display-protected (format "~s" i))])
null) null)

View File

@ -89,8 +89,8 @@
[(ndash) "\U2013"] [(ndash) "\U2013"]
[(ldquo) "\U201C"] [(ldquo) "\U201C"]
[(rdquo) "\U201D"] [(rdquo) "\U201D"]
[(lsaquo) ">"] [(lang) ">"]
[(rsaquo) "<"] [(rang) "<"]
[(rarr) "->"] [(rarr) "->"]
[(nbsp) " "] [(nbsp) " "]
[else (error 'text-render "unknown element symbol: ~e" i)]))] [else (error 'text-render "unknown element symbol: ~e" i)]))]