|
|
(12 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | [[category:XmlWiki]][[Category:Examples]] | + | #redirect [[Enabling math markup]] |
− | ;Example
| |
− | The following maths code
| |
− | <table class=document-code><tr><td>
| |
− | <tt><math>
| |
− | :e^x = \sum_{n = 0}^{\infty} {x^n \over n!} = 1 + x + {x^2 \over 2!} + {x^3 \over 3!} + {x^4 \over 4!} + \cdots
| |
− | </math></tt>
| |
− | </table>
| |
− | Gives the following output
| |
− | <table class=document-code><tr><td>
| |
− | <math>e^x = \sum_{n = 0}^{\infty} {x^n \over n!} = 1 + x + {x^2 \over 2!} + {x^3 \over 3!} + {x^4 \over 4!} + \cdots</math>
| |
− | </table>
| |
− | | |
− | | |
− | ;Transparency
| |
− | I added the following ugly hack to the ''/wiki/math/render.ml'' file and then issued a ''make clean'' and ''make'',
| |
− | <table class=document-code><tr><td>
| |
− | <pre>
| |
− | let cmd_convert tmpprefix finalpath = "convert -quality 100 -density 120 " \
| |
− | ^ tmpprefix ^ ".ps -negate " ^ finalpath ^ " >/dev/null 2>/dev/null \
| |
− | && convert " ^ finalpath ^ " -fill black -colorize 100% " ^ finalpath ^ ".png \
| |
− | && composite -compose CopyOpacity " ^ finalpath ^ " " ^ finalpath ^ ".png " ^ finalpath
| |
− | </pre>
| |
− | </table>
| |
− | | |
− | | |
− | | |
− | | |
− | ;See also
| |
− | *[http://www.wikitex.org www.wikitex.org]
| |
− | *[http://www.wikisophia.org www.wikisophia.org]
| |