[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Use dvisvgm to preview latex fragments

From: Rasmus
Subject: Re: [O] Use dvisvgm to preview latex fragments
Date: Fri, 13 May 2016 11:01:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

Hi tumashu,

tumashu <address@hidden> writes:

> I find a new tool: dvisvgm (https://github.com/mgieseki/dvisvgm)
> ,which we can use it to preview latex fregments, it can deal with
> xetex's xdv file as well (it will available in texlive2016).

That looks very cool.  Thanks for the pointer!

Will you be working on a patch for supporting dvisvg?

> The questions are:
> 1.  which path we should use:   "dvi/xdv -> svg" or "dvi/xdv -> svg -> png" ?

Depends on which format Emacs supports.  If it’s compiled with svg support
I’d guess it’s better since it’s vector graph and potentially could scale
nicer when increasing font size.  But I don’t know how easy it would be to
incorporate inlined svg display.  At the very minimum you will have to
look at e.g. org-create-formula-image and "surrounding" functions, which
will bark at "dvisvg" ATM.

It might also be nice to make it possible to incorporate svg images for
math in odt where formula support is a bit lackluster.

> 2. if we use the first path, how to deal with
> org-latex-preview-ltxpng-directory?  should we rename it to
> org-latex-preview-ltximg-directory or
>    org-latex-preview-ltxpic-directory ?

If you provide a patch that enables svg support you can change the default


I hear there's rumors on the, uh, Internets. . .

reply via email to

[Prev in Thread] Current Thread [Next in Thread]