all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Bug report: org-preview-latex fails when using tramp
@ 2021-12-30  5:44 Dov Grobgeld
  2021-12-30  8:50 ` Timothy
  0 siblings, 1 reply; 3+ messages in thread
From: Dov Grobgeld @ 2021-12-30  5:44 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 916 bytes --]

Hello,

Since the instructions say that bugs should be reported on the mailing
list, I do so here.

When visiting a file by tramp over ssh, doing latex preview fails.

* Version

Tag 9.4.6 (commit:652430128)

* To reproduce:

Create the following org file:

#+begin_example
* Testing formulas
\[\xi^2+\chi^2\]
#+end_example

and invoke =org-latex-preview=.

The result is that org-latex preview fails finding the temporary tex file
(which was saved on the remote server)

#+begin_example
This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017) (preloaded
format=latex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `/tmp/orgtexq5rOVI.tex'.
<*> /tmp/orgtexq5rOVI.tex

(Press Enter to retry, or Control-D to exit)
Please type another input file name
! Emergency stop.
<*> /tmp/orgtexq5rOVI.tex

No pages of output.
Transcript written on /tmp//texput.log.
#+end_example


Regards,
Dov

[-- Attachment #2: Type: text/html, Size: 3675 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug report: org-preview-latex fails when using tramp
  2021-12-30  5:44 Bug report: org-preview-latex fails when using tramp Dov Grobgeld
@ 2021-12-30  8:50 ` Timothy
  2022-10-06  9:00   ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Timothy @ 2021-12-30  8:50 UTC (permalink / raw)
  To: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 806 bytes --]

Confirmed.

I just tried this by creating an Org file on a Debian server (I run OpenSUSE
with TexLive 2021). From looking at the `*Org Preview LaTeX Output*' buffer, it
appears that the temp file is created on my local machine, and then the process
is called on the remote machine.

┌────
│ This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=latex)
│  restricted \write18 enabled.
│ entering extended mode
│ ! I can't find file `/tmp/orgtexToEnS4.tex'.
└────

Having a look at `org-create-formula-image', I suspect this is due to the
`make-temp-name' call at
<https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org.el#n16521>.
Perhaps `tramp-make-tramp-temp-name' could be useful?

All the best,
Timothy

[-- Attachment #1.2: Type: text/html, Size: 8348 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug report: org-preview-latex fails when using tramp
  2021-12-30  8:50 ` Timothy
@ 2022-10-06  9:00   ` Ihor Radchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Ihor Radchenko @ 2022-10-06  9:00 UTC (permalink / raw)
  To: Timothy; +Cc: emacs-orgmode

Timothy <tecosaur@gmail.com> writes:

> Confirmed.
>
> I just tried this by creating an Org file on a Debian server (I run OpenSUSE
> with TexLive 2021). From looking at the `*Org Preview LaTeX Output*' buffer, it
> appears that the temp file is created on my local machine, and then the process
> is called on the remote machine.
>
> ┌────
> │ This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=latex)
> │  restricted \write18 enabled.
> │ entering extended mode
> │ ! I can't find file `/tmp/orgtexToEnS4.tex'.
> └────
>
> Having a look at `org-create-formula-image', I suspect this is due to the
> `make-temp-name' call at
> <https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/org.el#n16521>.
> 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?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-10-06  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-30  5:44 Bug report: org-preview-latex fails when using tramp Dov Grobgeld
2021-12-30  8:50 ` Timothy
2022-10-06  9:00   ` Ihor Radchenko

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.