emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Previewing inline-LaTeX with imagemagick?
@ 2012-07-02 20:17 Mike Gauland
  0 siblings, 0 replies; only message in thread
From: Mike Gauland @ 2012-07-02 20:17 UTC (permalink / raw)
  To: emacs-orgmode

I've been playing with tikz to create a flowchart in my org file. The image is
rendered correctly when I export to PDF, of course, and setting the 'latex'
option to 'imagemagick' generates a PNG when I export the file to HTML. However,
if I try to preview that block with org-preview-latex-fragment (C-c C-x C-l), I
 just get a blank square (a placeholder).

I think this is because dvipng doesn't handle the postscript generated by tikz.
I've worked around this by shadowing the system dvipng with a script in my local
bin directory, that sends the dvi through dvips then convert to generate the
png. This also works for HTML export (using latex:dvipng).  

The new 'latex:imagemagick' option is a cleaner solution. Would it be possible
to use the same code for previewing fragments?

I'm happy to help with the necessary changes, if some knowledgeable with the
relevant source code can get me started in the right direction.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-07-02 20:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-02 20:17 Previewing inline-LaTeX with imagemagick? Mike Gauland

Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).