Index: trunk/extensions/Math/math/lexer.mll |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | |
20 | 20 | rule token = parse |
21 | 21 | space + { token lexbuf } |
22 | | - | "\\text" space * '{' boxchars + '}' |
| 22 | + | "\\text" space * '{' aboxchars + '}' |
23 | 23 | { Texutil.tex_use_ams (); let str = Lexing.lexeme lexbuf in |
24 | 24 | let n = String.index str '{' + 1 in |
25 | 25 | BOX ("\\text", String.sub str n (String.length str - n - 1)) } |
— | — | @@ -34,6 +34,11 @@ |
35 | 35 | { let str = Lexing.lexeme lexbuf in |
36 | 36 | let n = String.index str '{' + 1 in |
37 | 37 | BOX ("\\vbox", String.sub str n (String.length str - n - 1)) } |
| 38 | + | "\\text" space * '{' boxchars + '}' |
| 39 | + { Texutil.tex_use_ams (); let str = Lexing.lexeme lexbuf in |
| 40 | + let n = String.index str '{' + 1 in |
| 41 | + Texutil.tex_use_nonascii(); |
| 42 | + BOX ("\\text", String.sub str n (String.length str - n - 1)) } |
38 | 43 | | "\\mbox" space * '{' boxchars + '}' |
39 | 44 | { let str = Lexing.lexeme lexbuf in |
40 | 45 | let n = String.index str '{' + 1 in |