Hi tumashu, tumashu <tuma...@163.com> 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 value. Rasmus -- I hear there's rumors on the, uh, Internets. . .