From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Problems producing TikZ PNGs from LaTeX src blocks Date: Sun, 30 Sep 2018 20:56:10 +0200 Message-ID: <87pnwubyr9.fsf@christianmoe.com> References: <87efdenepr.fsf@christianmoe.com> <87mus1x6ft.fsf@gmail.com> <87mus18z8t.fsf@christianmoe.com> <87sh1tsmm0.fsf@delle7240.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g6gtS-0007IV-Mg for emacs-orgmode@gnu.org; Sun, 30 Sep 2018 14:56:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g6gtO-0006KC-Kn for emacs-orgmode@gnu.org; Sun, 30 Sep 2018 14:56:38 -0400 Received: from mailer-211-194.hitrost.net ([91.185.211.194]:41747) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g6gtO-0006JG-Dy for emacs-orgmode@gnu.org; Sun, 30 Sep 2018 14:56:34 -0400 In-reply-to: <87sh1tsmm0.fsf@delle7240.chemeng.ucl.ac.uk> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Eric S Fraga , emacs-org list Eric S Fraga writes: > On Friday, 28 Sep 2018 at 16:37, Christian Moe wrote: >> Hi, Eric >> >> Thanks for looking into this. >> >>> | executing Latex code block... >>> | (Shell command succeeded with no output) >>> | Code block evaluation complete. >> >> executing Latex code block... >> Code block evaluation complete. >> >> Nothing obvious here that I can see. > > Well, for some reason my case outputs that extra line about shell command succeeding... Yes, that may be where the problem lies. I also have a problem outputting PDFs instead of PNGs with the same setup (just changing .png extension to .pdf). This gives me a message that the file wasn't produced, but in fact a PDF with the correct image is produced -- however, it has a temporary file name, not the one I assigned to it. > Have you tried with emacs -Q to make sure it's not a configuration error? I should probably try this with a minimal init file (need one loading latex as a babel language and probably a few other things). Didn't get around to that. > I do have > > (add-to-list 'org-latex-packages-alist '("" "tikz")) > > in my configuration so maybe that's the key even though you are specifying that this package should be included in the babel header spec. I have tried this without success. Also tried adding the LATEX_HEADERS keyword to the document. Doesn't solve the problem, but changes the output from an image of the code to an empty image. Yours, Christian