* Use dvisvgm to preview latex fragments
@ 2016-05-13 6:44 tumashu
2016-05-13 9:01 ` Rasmus
0 siblings, 1 reply; 2+ messages in thread
From: tumashu @ 2016-05-13 6:44 UTC (permalink / raw
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 477 bytes --]
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).
The questions are:
1. which path we should use: "dvi/xdv -> svg" or "dvi/xdv -> svg -> png" ?
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 ?
[-- Attachment #2: Type: text/html, Size: 741 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Use dvisvgm to preview latex fragments
2016-05-13 6:44 Use dvisvgm to preview latex fragments tumashu
@ 2016-05-13 9:01 ` Rasmus
0 siblings, 0 replies; 2+ messages in thread
From: Rasmus @ 2016-05-13 9:01 UTC (permalink / raw
To: emacs-orgmode
Hi tumashu,
tumashu <tumashu@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. . .
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-16 17:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-13 6:44 Use dvisvgm to preview latex fragments tumashu
2016-05-13 9:01 ` Rasmus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.