]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
teximg: Use `\[` and `\]` instead of not recommended `$$`.
authorPaul Menzel <paulepanter@users.sourceforge.net>
Wed, 8 Sep 2010 14:40:22 +0000 (16:40 +0200)
committerJoey Hess <joey@kitenet.net>
Sun, 26 Dec 2010 18:46:29 +0000 (14:46 -0400)
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>
IkiWiki/Plugin/teximg.pm

index 195792acaa593bd627626061c4d5cfac6f31aa72..3d6fa9942c11f3dd304026458655b22ab30e5e50 100644 (file)
@@ -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;