# Changes between Version 18 and Version 19 of MathJaxPlugin

Show
Ignore:
Timestamp:
05/21/11 14:25:04 (3 years ago)
Comment:

Update

Unmodified
Removed
Modified
• ## MathJaxPlugin

v18 v19
2828
2929
30 === How to handle the backslash ===
30=== Special characters ===
3131
32 Latex requires the backslash character \ for its commands, while !WikidPad uses the same character as its escape character. There are two ways to get around this conflict.
32Latex requires the backslash character \ for its commands, while !WikidPad uses the same character as its escape character. Similarly, Latex formulas will often use _ and * , which are the special characters for italic and bold text in !WikidPad. There are two ways to get around these conflicts, depending on whether one wishes to stay closer to the orginial !WikidPad syntax or whether on prefers to optimize things for Latex.
3333
34 The first option is to always use a double backslash \\ for Latex commands, or to enclose Latex passages in angled brackets << ... >> so that !WikidPad does not process these passages and passes them directly to the renderer.
34The first option is to escape these characters when they arise in Latex formulas, so WikidPad does not process them. You can escape single characters by prefixing them with a backslash \ , or escape entire passages with angled brackets << ... >> . For example, Latex commands like \sin would be entered as \\sin.
3535
36The second, more elegant option is to switch the Wiki language in the !WikidPad options dialog to "!MathJax". This is a per-wiki setting. This alternative parser modifies the !WikidPad syntax as follows:
3637
37 The second, more elegant option is to switch the Wiki language in the !WikidPad options dialog to "!MathJax". This is a per-wiki setting. This alternative parser changes the !WikidPad escape character to | and is otherwise identical to the default one. This means that the backslash is now passed correctly to !MathJax and you can enter Latex formulas as usual.
38 * The escape character is now @
39 * Italics are encoded by __youritalictext__ (rather than _youritalictext_)
40 * Bold is encoded by **yourboldtext** (rather than *youritalictext*)
41
42These changes ensure you can enter most Latex formulas as usual.
3843
3944

4146
4247 * Because !WikidPad renders pages as HTML, indentations and line breaks can sometimes cause problems in multiline Latex expressions. Usually, removing the indentation fixes this issue.
48
49 * In rare instances, !WikidPad may interpret some part of a formula in ways which prevent the Latex from rendering properly. In this case, try escaping the sequence as described above.
4350
4451 * The Webkit renderer allows zooming by holding down CTRL and using the mouse scrollwheel.

6673}}}
6774
75
76[[BR]]
77== Changelog ==
78
791.0    Initial release
801.1    Change MathJax parser to better avoid conflicts: escape character is now @ instead of |, italic and bold is encoded by __ and **