On Wednesday, 8 Jun 2022 at 21:01, Denis Maier wrote: > :exports code works. But the problem with the other options is that the > compilation fails. But I cannot tell why. It just tells me "Code block > produced no output".
This is not surprising as the LaTeX src blocks are expected to be LaTeX body only, not preamble etc. I.e. in your case, just the line that says "This is a test". You may wish to look at org-format-latex-header, org-babel-latex-preamble, org-babel-latex-end-env, ... > How can you diagnose such an issue? You can sometimes find the org babel files created in /tmp. -- : Eric S Fraga, with org release_9.5.4-521-g1105da in Emacs 29.0.50