From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id YJe8HsufImRqMQAASxT56A (envelope-from ) for ; Tue, 28 Mar 2023 10:05:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8E/EHsufImTMXAAA9RJhRA (envelope-from ) for ; Tue, 28 Mar 2023 10:05:31 +0200 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 2FD892FBB4 for ; Tue, 28 Mar 2023 10:05:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=christianmoe.com header.s=x header.b=e3m2WkRn; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679990731; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1S+Zkztmijmmcl7BZBc/cL6oIo2UJGTdysz3Yazhm0g=; b=fMTgI9hJRAyfO7aZpmKs8V/MJ78gwwGa1v5JLObv72q0S5mE+x9xJt/1ok/HA2SeZNeFNq gX/UCtVm/2TDuYp8Fg6nX8O3HcL0xmozWhQkJI0e3SzpdQZk78pqZsncn/6J5uC+O2KLsh guPJJJN5d/e72yleIlL4WTVAnav5bH8BMfrrJdtzr+wNcgf6yMG+FjxY0AahCLp/TOYXtm LWI/wyQS4nIsAir7d/6cJaE4HjhA6nbOTgykRmXNs7ZtvoTnyvQdpA8FW1Y7oiHYK6R6W4 bjchLKFygQ5z0Og6rP2qk4sPACyEfUbxEys9800zw0AJN05Afa+mBOdNVoq8MA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679990731; a=rsa-sha256; cv=none; b=UIfByW9G8xafk6YAkCn65wkIRGgFuRsfkAjoigDyckqNodbcyTf3bQqEjF4sKLqTgmuDpX BGx2SNX2vzjSgvBNV/XWdNlvRrupRplEuLrfkopXaJVNif3QvbVunnoRiAghWG85tTUwQz Bi8pmvPiZEZwkAESI8rM3SQEChiyYuT5Ap5LZ861i25EyaDHbjcUdsFa6ZhKyAuvjamGJh PuDFGhR5ftzVSm6xYYCq8MLALim9k3usSD/JG3zDMc9LCRCJnZj4yr5DNEwH7htKLzCNKs vsZv7TkOa5JctzeMoDNq+zUxC+YV/Ll4YVUQ+53HOu59eemmpZRyQfXzvqz6KA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=christianmoe.com header.s=x header.b=e3m2WkRn; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph4Jm-0006m0-8f; Tue, 28 Mar 2023 04:04:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph4Jk-0006lm-GF for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 04:04:32 -0400 Received: from mailer-211-152.hitrost.net ([91.185.211.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph4Ji-0004Jp-EO for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 04:04:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=christianmoe.com; s=x; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=1S+Zkztmijmmcl7BZBc/cL6oIo2UJGTdysz3Yazhm0g=; b=e3m2WkRnFBDsQxuDLuIzNqX2Z9 JWbgM68YJbvj2cig+OQO8kpFABWIRLl7XtzfV3ThhbwGaULTSdH1THzO/UqWRvvj7PRKIBSrNc01b XbW+G39tFiUy+EKPoYncQEh89AS3WVfKMSs1eedk6Dt+KtS86XdkNRbezu3ArPWC7vQs0Ebq21DB1 kg3LUrloTkyjukRYlvCfnLx5R449JmbvWi7taeiGpBCq6Mp9j5QdygoMCJRK3X6GuuDVl0+RyKA0r 4lRKv5BNo5SfdQhiG6Me4Tjv4aBjsjPbreDXtA/cGKmEiEHd/t75SqnrtVnc0Ip1baj9Wn0mCt+ET tY2DiDCQ==; Received: from 92-63-16-127.dynamic.telemach.net ([92.63.16.127] helo=Tauriel) by b1.hitrost.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ph4Jc-002WwZ-2d; Tue, 28 Mar 2023 10:04:24 +0200 User-agent: mu4e 1.2.0; emacs 27.2 From: Christian Moe To: Orgmode Subject: File generation from LaTeX src fails due to temporary PDF in wrong directory Date: Tue, 28 Mar 2023 10:04:24 +0200 Message-ID: <877cv147zr.fsf@christianmoe.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-GeoIP: Country [IP], SI [92.63.16.127] X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-Authenticated-Id: mail@christianmoe.com Received-SPF: pass client-ip=91.185.211.152; envelope-from=mail@christianmoe.com; helo=mailer-211-152.hitrost.net 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, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, 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.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Queue-Id: 2FD892FBB4 X-Spam-Score: -3.83 X-Migadu-Spam-Score: -3.83 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: aP5GclCvjIIh Hi, I'm trying and failing to export images from TikZ code, apparently because the temporary PDF is misplaced. Here is a minimal example just exporting the PDF: #+LATEX_HEADER: \usepackage{tikz} #+header: :fit yes #+begin_src latex :exports results :file ./test-tikz-triangle.png \begin{tikzpicture} % \draw[draw=3Dblack, fill=3Dblue!10] (0,4) -- (3,0) -- (-3,0) -- cycle; \end{tikzpicture} #+end_src Execution fails with an error message like this: org-compile-file: File "/tmp/babel-Tay2kl/latex-IJVI84.pdf" wasn=E2=80=99t produced. See "*Org PDF LaTeX Output*" for details It turns out, however, that the missing temporary file, here latex-IJVI84.pdf, is in fact correctly produced. The problem is that it is produced in the same directory as the source org file, not in the temp directory. I've had a quick look at org-compile-file, but don't understand what is going wrong. I'm running Org 9.6.2 on GNU Emacs 27.2 under Linux Mint, all very vanilla. Any suggestions? Yours, Christian