X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/f398ad035b973608d380c9939ea845d8e2a0cdc2..f4e2bd9c142d16b99a893b755111090c3d01186f:/IkiWiki/Plugin/teximg.pm?ds=sidebyside

diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm
index 521af499f..3d6fa9942 100644
--- a/IkiWiki/Plugin/teximg.pm
+++ b/IkiWiki/Plugin/teximg.pm
@@ -13,6 +13,7 @@ use IkiWiki 3.00;
 
 my $default_prefix = <<EOPREFIX;
 \\documentclass{article}
+\\usepackage[utf8]{inputenc}
 \\usepackage{amsmath}
 \\usepackage{amsfonts}
 \\usepackage{amssymb}
@@ -143,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;