[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Include LaTeX source and compiled result
From: |
Ihor Radchenko |
Subject: |
Re: Include LaTeX source and compiled result |
Date: |
Sat, 11 Jun 2022 16:38:32 +0800 |
Denis Maier <denismaier@mailbox.org> writes:
> Am 08.06.2022 um 10:28 schrieb Fraga, Eric:
>> On Wednesday, 8 Jun 2022 at 09:43, Denis Maier wrote:
>>> However, I cannot manage to get this to work:
>> If you want to show the LaTeX, you need to add ":exports code" to the
>> src block, or ":exports both :results file" if you want to show both
>> code and the resulting PDF.
>>
>
> :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".
>
> How can you diagnose such an issue?
Hmm... Actually, I cannot reproduce the problem using emacs -Q and the
latest main.
Having bug.org:
-------------------
Blabla
#+begin_src latex :file test.pdf
\documentclass{article}
\begin{document}
This is a test
\end{document}
#+end_src
Blabla
-------------------
I ran C-c C-e l o
And got the expected pdf file open.
Best,
Ihor