right kind of angle brackets
svn: r9139 original commit: 526bf71b249df479e8d554a58fef8e446744642f
This commit is contained in:
parent
08270b7361
commit
f531e51b90
|
@ -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 "]"))))
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)]))]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user