Karthik Chikmagalur <karthikchikmaga...@gmail.com> writes: > One more question about `org-babel-execute:latex': > > The default value of `org-babel-default-header-args:latex' is > > '((:results . "latex") (:exports . "results")) > > This means that the result will be wrapped in a `begin_export latex' > block. This is fine when the output of the LaTeX src block is LaTeX > code. > > When :results is `file', it should just generate an Org link to the > file. But the `(:results . "latex")' default value is interfering with > this. Here's an example: > > #+begin_src latex :file /tmp/test02.svg :results file > \[ x = \frac{1}{x} + 4 \] > #+end_src > > #+RESULTS: > #+begin_export latex > [[file:/tmp/test02.svg]] > #+end_export > > This output is clearly wrong. Should we remove "latex" from the > :results specification if "file" is present? If yes, how do I do that?
Just use :results file link? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>