When exporting org to pdf (LaTeX) I want to export plots as pdf, while the preview inside emacs should be exported to png. I am currently using a function for generating the export path already. This function should be able to detect if exporting, and if so, change the file extension (as emacs can not display inline PDF).
I am using it like this:
#+begin_src gnuplot :file (org-babel-tmp-file)
...
where org-babel-tmp-file
generates a file path using a uuid.
I am looking for something like (is-org-export-p)
.
#+begin_src gnuplot :file (org-babel-tmp-file)
where(org-babel-tmp-file)
generates a file path using a uuid.