Commit e745ea06ebcd501f9b8b044f6256e012a22068cb

Authored by Olivier Duvernois
1 parent 92f0770e

*** empty log message ***

Showing 1 changed file with 8 additions and 7 deletions   Show diff stats
anubis_dev/library/tools/maml.anubis
... ... @@ -99,7 +99,8 @@ define String
99 99 $image(my_file.jpg)
100 100 $par
101 101 Now, we begin a new paragraph. $big(Text may $big(be $big(written)) bigger.)
102   -
  102 + $par
  103 + Special latex characters : % # { } _ \ ^ ~
103 104 ".
104 105  
105 106  
... ... @@ -154,7 +155,7 @@ define List(SimpleMark)
154 155 mark("dollar", "$", "\\$", "The character $ itself."),
155 156 mark("lpar", "(", "(", "The left (opening) parenthese."),
156 157 mark("rpar", ")", ")", "The right (closing) parenthese."),
157   - mark("par", "<br>", "\n\n", "Vertical spacing between paragraphs."),
  158 + mark("par", "<br>", "\\\\", "Vertical spacing between paragraphs."),
158 159 mark("redrule", "<span><hr color=\"#b40000\" size=1></span>", "", ""),
159 160 mark("item", "<li>", "\\item", "Starting an item in a list.")
160 161  
... ... @@ -175,7 +176,7 @@ define List(CompoundMark)
175 176 =
176 177 [
177 178 mark("bold", cmark("<strong>","</strong>"),
178   - cmark("{\\bf", "}"),
  179 + cmark("{\\bf ", "}"),
179 180 "Print the enclosed text in bold face."),
180 181  
181 182 mark("italic", cmark("<em>", "</em>"),
... ... @@ -203,7 +204,7 @@ define List(CompoundMark)
203 204 "Print the enclosed text in blue."),
204 205  
205 206 mark("big", cmark("<big>","</big>"),
206   - cmark("\\Large{","}"),
  207 + cmark("{\\Large ","}"),
207 208 "Print the text in big caracters."),
208 209  
209 210 mark("image", cmark("<img src=\"","\">"),
... ... @@ -280,9 +281,9 @@ define List(SpecialChar)
280 281 schar('{', "{", "\\{"),
281 282 schar('}', "}", "\\}"),
282 283 schar('_', "_", "\\_"),
283   - schar(92, "&#92;", "\\textbackslash"),
284   - schar(94, "&#136;", "\\textasciicircum"),
285   - schar(126, "&#152;", "\\textasciitilde")].
  284 + schar('\\', "&#92;", "\\textbackslash"),
  285 + schar('^', "&#136;", "\\textasciicircum"),
  286 + schar('~', "&#152;", "\\textasciitilde")].
286 287  
287 288  
288 289 define Maybe(SpecialChar)
... ...