From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kmWVEd1w/F+dUAAA0tVLHw (envelope-from ) for ; Mon, 11 Jan 2021 15:38:05 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cJQvDd1w/F8XeQAAbx9fmQ (envelope-from ) for ; Mon, 11 Jan 2021 15:38:05 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B266A9403AA for ; Mon, 11 Jan 2021 15:38:04 +0000 (UTC) Received: from localhost ([::1]:57500 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyzGd-0007Xx-NN for larch@yhetil.org; Mon, 11 Jan 2021 10:38:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyzFd-0007V3-8J for emacs-orgmode@gnu.org; Mon, 11 Jan 2021 10:37:01 -0500 Received: from ciao.gmane.io ([116.202.254.214]:58024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyzFX-0006Ll-OE for emacs-orgmode@gnu.org; Mon, 11 Jan 2021 10:37:01 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1kyzFV-000ANE-4r for emacs-orgmode@gnu.org; Mon, 11 Jan 2021 16:36:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: "Loris Bennett" Subject: Re: Generated graphic not included in exported TeX/PDF Date: Mon, 11 Jan 2021 16:36:45 +0100 Message-ID: <87o8hvjxiq.fsf@hornfels.zedat.fu-berlin.de> References: <87v9c9rwd4.fsf@hornfels.zedat.fu-berlin.de> <8735za88ol.fsf@ucl.ac.uk> <87zh1g6g50.fsf@ucl.ac.uk> <87a6tgnepw.fsf@hornfels.zedat.fu-berlin.de> <87mtxf6c0a.fsf@ucl.ac.uk> <87czybn170.fsf@hornfels.zedat.fu-berlin.de> <87bldv4pee.fsf@ucl.ac.uk> <87zh1fliys.fsf@hornfels.zedat.fu-berlin.de> <878s8z38hk.fsf@ucl.ac.uk> <87eeirlgdu.fsf@hornfels.zedat.fu-berlin.de> <87pn2b1qpc.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:K7XEVtUE5NG+GwuSo1ptaXhLerI= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.85 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B266A9403AA X-Spam-Score: -1.85 X-Migadu-Scanner: scn0.migadu.com X-TUID: /tv0RT4rAR3u Eric S Fraga writes: > On Monday, 11 Jan 2021 at 15:03, Loris Bennett wrote: >> I'm only exporting to PDF not HTML and I am creating the image in the >> source block as a PNG. I am then viewing the resulting PDF file either >> using a PDF viewer (evince) or directly in Emacs. The file >> blackboxmodel.png is created, but not inserted into the final ecm.pdf. > > Okay, thanks for clarifying. If I export ecm.org to PDF via LaTeX, > asking for a PNG image, it works just fine for me. Strange. > > Hopefully somebody else can chime in and maybe give some clue as to > where to look. I've attached the ecm.org file again. This exports to > both article and beamer PDF and, for that matter, to HTML. With #+header: :results file raw rather than just #+header: :results raw it works for me too. Thanks! The workaround with :cache yes :eval never-export seems just to have prevented an existing file:blackboxmodel.png from getting clobbered by evaluating the source block without :file. Cheers, Loris -- This signature is currently under construction.