GNU Emacs 25.1.50.2
Org-mode version 8.3.5
At some point in the past I could put down a block like this
#+begin_src latex :exports results :results {latex|html}
\begin{equation}
a = 1 + b
\end{eqation}
#+end_src
For either html or latex and make it export to the corresponding format. This functionality have for some reason disappeared and now it exports the src block as a code block instead of the results that exports to nice native latex or html math and rendered that way.
I find it convenient to be able to do this, for a number of reasons, so it would be nice if there was a way to make this work again.
by-backend
macro). The commented out version is the one I used with some older version of Org.C-c C-c
on the code block with the macro). You then used#+HEADER: :results (by-backend (pdf "latex") (t "raw"))
in your latex code block. The results were actually produced, but without change (rather than, for example, Org exporter dying silently, while leaving the results from the previous export).(setq org-export-babel-evaluate nil)
which according to the documentation disregards all header arguments. Looks like more than just this issue just got solved for me... Not sure if I should delete this question or rewrite it to be more relevant.