I'll create a pull request for this.
Regards,
Tobias
Den söndagen den 15:e december 2013 kl. 16:59:55 UTC+1 skrev Tobias
Blomberg:
>
> Hi!
>
> This is my first post to this group. I have been using AsciiDoc for a
> while and I'm actually writing more documents now than I did before because
> it's so much easier with AsciiDoc. More fun as well :-)
>
> I wanted better looking and scalable Latex math so I hacked the Latex
> filter a bit. I have tried the different options for getting math formulas
> into documents and the filter approach seem to be the most portable one if
> one wants to generate multiple document formats.
>
> The first annoying problem I encountered was that images did not
> regenerate when I changed the DPI. This was simple to fix by just including
> the dpi value in the generated MD5-sum.
>
> The generated PNG images does not scale well when zooming in on a web page
> for example. This is why I have now added support for generating SVG
> images, which are scalable. The dvisvgm utility is used to do that.
> Generating PNG images is still the default unless the "imgfmt" attribute is
> set to "svg". I also added a "latex-imgfmt" attribute that do the same
> thing. The thought was that the former (the shorter one) can be used to
> change the format of one image while the latter (the longer one) can be set
> globally. I don't know if this is the right thing to do. Please tell me if
> there is a better way of doing it.
>
> After applying the supplied patch the filename of the filter script should
> be changed from latex2png.py to latex2img.py. I have changed all references
> in both the script file and in the conf file.
>
> Usage may look like this:
>
> :latex-imgfmt: svg
>
> [latex]
> --
> \begin{equation*}
> X(\omega) &= \sum_{-\infty}^\infty x(n) e^{-j \omega n}
> \end{equation*}
> --
>
> I hope you like it :-)
>
> Regards,
> Tobias
>
>
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/groups/opt_out.