Am Donnerstag, den 16.09.2010, 14:06 -0400 schrieb Joey Hess:
> Paul Menzel wrote:
> > As far as I can see it, this issues was not fixed in the upload and both
> > reports were merged mistakenly. Therefore I am unmerging and reopening
> > this report and I hope this will work.
> 
> Notice that your patch attached to both bug reports was identical. Do
> you have a patch for #596084?

I am sorry for that extra work.

(Now you should be able to use `git am --scissors`.)

1. Patrick I am adding you to CC, because you are the author of the
plugin.
2. In my opinion it would be even better to get rid of the assumption,
that a formula is supposed to be set at all and let the user specify, if
he wants to use `\[ … \]` or for example `\begin{align} … \end{align}`.
At least this should be documented in the Wiki.

8<---------------------------------------------------------------------->8
From: Paul Menzel <[email protected]>
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 <[email protected]>
---
 IkiWiki/Plugin/teximg.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/IkiWiki/Plugin/teximg.pm b/IkiWiki/Plugin/teximg.pm
index 195792a..b755b26 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;
-- 
1.7.1

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to