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 ms5.migadu.com with LMTPS id ICkxJqufPmMNowAAbAwnHQ (envelope-from ) for ; Thu, 06 Oct 2022 11:28:11 +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 kNlWJqufPmOWagAA9RJhRA (envelope-from ) for ; Thu, 06 Oct 2022 11:28:11 +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 5DE8A137D1 for ; Thu, 6 Oct 2022 11:28:11 +0200 (CEST) Received: from localhost ([::1]:46682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ogNAn-0004PL-Km for larch@yhetil.org; Thu, 06 Oct 2022 05:28:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ogMjC-0005Tq-Jw for emacs-orgmode@gnu.org; Thu, 06 Oct 2022 04:59:40 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:46992) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ogMj7-00013j-JW for emacs-orgmode@gnu.org; Thu, 06 Oct 2022 04:59:38 -0400 Received: by mail-pj1-x102a.google.com with SMTP id t12-20020a17090a3b4c00b0020b04251529so1079675pjf.5 for ; Thu, 06 Oct 2022 01:59:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=87fFksCmLIMUQ0UJkU4ypRgz1WTb5GWGSW2kkdH6pf4=; b=oEZW7Hn9uzRRwLbECZuVjEqMyvNy9dMdzgcxC4wb23yGjfCWeCPd35fTw3bGfsrCMO WBdJU5zDiCy72kzPtBCuqw2h1caw3vzqBfQ+4h42Ns/4cjjvRRd3SjIXo1p9Y7oBmES2 +7dWyWpDR2o1PWjtjVQPe2D4lJNksEzk3svofPNCAnESmeMAzsEcvzIl/UaL+7iAVN/O BrjM9XecGAkEL5FcnV0vVncvHiM3BdGvf/cAJ0Dbv9wmB0BMz0PjPGUaFiXsEnBt1Pcy t4zUpn4BTR37ptsdcOBB7Mz8zo8WDpc0Wo2W6NtLv26Op8QSVixbWwj46N1iR/6dOeAY h/QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=87fFksCmLIMUQ0UJkU4ypRgz1WTb5GWGSW2kkdH6pf4=; b=cN/Y9fD6mryVrWVLsTz9nmUej653w77FreN7IhSHyeWNwNQRLNpiO/LKFOZRj6Ki3m c5Wk5AtBoBWmUi3Uaftse+LVatDyIxBMsyRqAT3xxx/fjwo87ZVJCV0NcCLqfyb3LdSB TH0NEx2JJGPERKsW7v7jA957ChbYqggIAaSjXii5LOUAWelq0LzeLnGeT9D2x13Zg97x cAu6EQQwKfRbKD370dBMMPeAMHzXl190nu8AtTKBxGqLS7fQcdnDC3hWxyrbv2mojzvW 4j93L8ZY2lpt45C3dK/Doyd6kG0SmBPNL+qfkW2b+AR48DbZ4E8dNWBV3ofjI67P7D5w cv7A== X-Gm-Message-State: ACrzQf1gAo5SLrAfwwsuAmD9bs0aDDjQzw3n523pX2z99ihvmLMagIPX L5JIhQ7VtcF0PcMn7rQ99LM= X-Google-Smtp-Source: AMsMyM6qRDwGxArZ2gH9nJETnYrfhWCWsHXvV+BlmtfNwg3LC+CW2k7Dmk5YqhuN83k9gywGDM7CDw== X-Received: by 2002:a17:90a:302:b0:205:d769:dd04 with SMTP id 2-20020a17090a030200b00205d769dd04mr9543830pje.215.1665046771432; Thu, 06 Oct 2022 01:59:31 -0700 (PDT) Received: from localhost ([1.83.154.214]) by smtp.gmail.com with ESMTPSA id u1-20020a626001000000b00553d573222fsm12392614pfb.199.2022.10.06.01.59.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 01:59:29 -0700 (PDT) From: Ihor Radchenko To: Timothy Cc: emacs-orgmode@gnu.org Subject: Re: Bug report: org-preview-latex fails when using tramp In-Reply-To: <87sfuaqxk5.fsf@gmail.com> References: <87sfuaqxk5.fsf@gmail.com> Date: Thu, 06 Oct 2022 17:00:21 +0800 Message-ID: <87mta94996.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102a.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1665048491; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=87fFksCmLIMUQ0UJkU4ypRgz1WTb5GWGSW2kkdH6pf4=; b=X24GQTvt4i4T3mqh4Prm8JP2t94g+hUHD045mXFJ+2Tjnl1/TgrRdVqI7tZYifa5HpzZEc Pdj6MMocxMRelvx9UJM+dOL/Xb51orDBlGw0ooK8TQ6tMPZYvMMPkAb84CQNndQKrfyKqE CwKsazGytbU8pUwLztl7HStGltA54QnT5G41J5I467SMZ2IUbISUhAM38j83rsUwQXjjlS zBPAjK2YoJNpgD1skrwKg11iAMS878Y23wNNLShFQ2Nrzn4te67Zynr+jLExI//n4bX+9Q h3+urJxYc7YwlXj5VEaEDn1H9Kg4V+SXJbaYvTZNQYQ8mEez6/9iHe4491/QSg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1665048491; a=rsa-sha256; cv=none; b=o0EGgxSoRA0HcgXFVAuQc/cGv4jSuxVhrO/aUOdzkCO3nUQ5Enzdss5kdFxuu42FZRkzxT hA0TNphhqEb8wKf0j7QrORB8pEF4wJ/b4G6YFvV/QkmdLJ+k5haAauA45Y2L3UhsnlrPcm Kx/HGK9rmzu7Uf7ZIZFVVeCRr8L6XNRKY2TW2a9xyXSDieTqOIRedaeCproQa07oRhbVV6 lEuO9JwXOEzM7YcGE3A8iJrXWpTe1DCyRY5kJ6UF07l69EN0vjln1PLAPLvxRpVjK9UGus n/keeJfUlFrHinfttDN5Ur4XEaLLK8K7uzkn9SkngUjEIXKnr6xPPy5o3ITUlw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oEZW7Hn9; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -4.87 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=oEZW7Hn9; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 5DE8A137D1 X-Spam-Score: -4.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: YT2kWQS+xKYT Timothy writes: > Confirmed. > > I just tried this by creating an Org file on a Debian server (I run OpenS= USE > with TexLive 2021). From looking at the `*Org Preview LaTeX Output*' buff= er, it > appears that the temp file is created on my local machine, and then the p= rocess > is called on the remote machine. > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/d= ev/Debian) (preloaded format=3Dlatex) > =E2=94=82 restricted \write18 enabled. > =E2=94=82 entering extended mode > =E2=94=82 ! I can't find file `/tmp/orgtexToEnS4.tex'. > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > Having a look at `org-create-formula-image', I suspect this is due to the > `make-temp-name' call at > . > Perhaps `tramp-make-tramp-temp-name' could be useful? But will it be efficient? We will need to transfer images between the remote host and the Emacs host. Should we instead arrange the LaTeX call to be done on user side all the time? --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at