From 68e333e0bd6538a649e6c2592b4e6de72aab9a39 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Wed, 8 Sep 2010 16:40:22 +0200 Subject: [PATCH] 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 --- IkiWiki/Plugin/teximg.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.44.0