my $default_prefix = <<EOPREFIX;
\\documentclass{article}
+\\usepackage[utf8]{inputenc}
\\usepackage{amsmath}
\\usepackage{amsfonts}
\\usepackage{amssymb}
}
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;
+ $tex =~ s!\\documentclass\{article}!\\documentclass[${height}pt]{article}!g;
+ $tex =~ s!\\documentclass\{scrartcl}!\\documentclass[${height}pt]{scrartcl}!g;
my $tmp = eval { create_tmp_dir($digest) };
if (! $@ &&