emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Generated graphic not included in exported TeX/PDF


From: Loris Bennett
Subject: Re: Generated graphic not included in exported TeX/PDF
Date: Thu, 07 Jan 2021 11:03:39 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

"Loris Bennett" <loris.bennett@fu-berlin.de> writes:

> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>
>> "Loris Bennett" <loris.bennett@fu-berlin.de> writes:
>>
>>> Hi,
>>>
>>> I have just re-exported an org beamer presentation, which I created two
>>> years ago with a version of Org which was fairly up-to-date then.
>>> Everything still works fine, except for the fact that the images
>>> generated by the org file are not included in the exported PDF and
>>> indeed are missing from the generated TeX file.
>>>
>>> In the org file I have
>>>
>>>   #+NAME: backfill-tikz
>>>   #+HEADER: :fit yes :file ./generated/backfill_tikz.png :imagemagick yes 
>>> :iminoptions -density 600
>>>
>>>   #+HEADER: :headers '("\\usepackage{pgfplots}\\usepackage{sansmath}")
>>>   #+HEADER: :results raw
>>>
>>>   #+BEGIN_SRC latex :cache yes
>>>     \usepgfplotslibrary{colorbrewer}
>>>     \begin{tikzpicture}
>>>     ... 
>>>     \end{tikzpicture}
>>>   #+END_SRC
>>>
>>>   #+RESULTS[e2d28096fe9dceffb0b63ad4a441160ff2a0d1a7]: backfill-tikz
>>>   [[file:./generated/backfill_tikz.png]]
>>>
>>> As I say, the image itself is created, but not included when exported, 
>>> although it is
>>> displayed if I do org-toggle-inline-images in the org buffer.
>>>
>>> My current Org version is
>>>
>>>   Org mode version 9.4 (9.4-9-gab0052-elpaplus @ 
>>> /home/loris/.emacs.d/elpa/org-plus-contrib-20200928/)
>>>
>>> Any ideas what might be happening?
>>
>> I have just noticed that this only affects images generated with tikz.
>> One image created with ditaa is included correctly.  All images are PNGs. 
>
> Just updated to 
>
>   Org mode version 9.4.4 (9.4.4-4-g99eafe-elpa @ 
> /home/loris/.emacs.d/elpa/org-20210104/)
>
> but the problem remains.

As I was having problems with the caching of the images, I replaced

  #+BEGIN_SRC latex :cache yes

with

  #+BEGIN_SRC latex :cache yes :eval never-export

and now the images are not only not regenerated but are now also
exported properly.

Is this a bug?

Cheers,

Loris

-- 
This signature is currently under construction.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]