aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2010-09-08 16:40:22 +0200
committerJoey Hess <joey@kitenet.net>2010-12-26 14:46:29 -0400
commit68e333e0bd6538a649e6c2592b4e6de72aab9a39 (patch)
treeb6a91d8b8727669047065e9319a9db0d2512bcdd /IkiWiki
parent724d58d4cffb3ba91c7c33cf2ef02b907cd36be5 (diff)
downloadikiwiki-68e333e0bd6538a649e6c2592b4e6de72aab9a39.tar
ikiwiki-68e333e0bd6538a649e6c2592b4e6de72aab9a39.tar.gz
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')
-rw-r--r--IkiWiki/Plugin/teximg.pm2
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;