Ihor Radchenko <yanta...@posteo.net> writes:
Michael <sp...@runbox.com> writes:
Should we perhaps have different variables for preview & Org
source block evaluation?
Likely yes.
In fact, ob-latex is making use of
`org-preview-latex-process-alist'
only in a single cond branch in `org-babel-execute:latex' - when
we have
:file foo.png
However, that branch assumes that
`org-preview-latex-default-process' is
'dvipng (the default value). If one changes it to, say dvisvgm,
the
generated image will not be a .png image:
(setq org-preview-latex-default-process 'dvisvgm)
#+begin_src latex :results file link :file test.png
x^2
#+end_src
#+RESULTS:
[[attachment:test.png]]
^ This is actually an svg image, renamed to "test.png".
So, it makes sense for `org-babel-execute:latex' to override
`org-preview-latex-default-process' temporarily, to something
actually
generating .png file.
Sorry-- got sidetracked by something else. I see what you
mean. OK, so the proposal is: change the ".png" branch in
`org-babel-execute:latex' to override `org-preview-process-alist'
with something that will:
- actually produce a PNG formatted file
- by default, run latex more than once, tho this could of
- course be customized
--
Michael <mherst...@pobox.com>