diff options
author | Paul Menzel <paulepanter@users.sourceforge.net> | 2010-09-08 16:40:22 +0200 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-12-26 14:46:29 -0400 |
commit | 68e333e0bd6538a649e6c2592b4e6de72aab9a39 (patch) | |
tree | b6a91d8b8727669047065e9319a9db0d2512bcdd /IkiWiki/Plugin | |
parent | 724d58d4cffb3ba91c7c33cf2ef02b907cd36be5 (diff) |
teximg: Use `\[` and `\]` instead of not recommended `$$`.
It is not recommended to use the double dollar symbol `$$` to set displayed math [1][2].
[1] http://en.wikibooks.org/wiki/LaTeX/Mathematics
[2] http://www.math.uiuc.edu/~hildebr/tex/displays.html
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/teximg.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm index 195792aca..3d6fa9942 100644 --- a/IkiWiki/Plugin/teximg.pm +++ b/IkiWiki/Plugin/teximg.pm @@ -144,7 +144,7 @@ sub gen_image ($$$$) { } my $tex = $config{teximg_prefix}; - $tex .= '$$'.$code.'$$'; + $tex .= '\['.$code.'\]'; $tex .= $config{teximg_postfix}; $tex =~ s!\\documentclass{article}!\\documentclass[${height}pt]{article}!g; $tex =~ s!\\documentclass{scrartcl}!\\documentclass[${height}pt]{scrartcl}!g; |