emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: org-latex preview on Windows


From: Ypo
Subject: Re: org-latex preview on Windows
Date: Sun, 7 Aug 2022 20:05:13 +0200
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0

Hi Jeremie

In my emacs it works great. Even org-fragtog that allows you to edit in an interactive manner.

- Just in case it could be helpfult, these are the lines in my init file that I can find related to LaTeX:

(custom-set-variables

 '(org-preview-latex-image-directory "~/borrar/ltximg/")

 '(preview-TeX-style-dir "~/.emacs.d/elpa/auctex-13.0.11/latex" t))


- I installed LaTeX following these instructions:

https://ikaruga2.wordpress.com/2011/06/14/latex-emacs-and-orgmode-in-windows/


- I have edited the Windows System Variable "Path" and added to it:

C:\Program Files\MiKTeX\miktex\bin\x64\


I hope that helps




El 07/08/2022 a las 18:00, emacs-orgmode-request@gnu.org escribió:
Date: Sat, 06 Aug 2022 18:11:46 +0200
From: Jeremie Juste <jeremiejuste@gmail.com>
To: emacs-orgmode@gnu.org
Subject: org-latex preview on Windows
Message-ID: 87h72pwdvh.fsf@gmail.com" moz-do-not-send="true"><87h72pwdvh.fsf@gmail.com>
Content-Type: text/plain

Hello everyone,

I have had difficulties using  org-latex-preview to run properly on Windows.
The main issue seems to be that the user name on windows gets abbreviated
with ~. As far as I understand this generate problems as the temporary
folder cannot be found.

see for instance these posts
https://emacs.stackexchange.com/a/70119

and an old post from Vincente Vera
https://list.orgmode.org/CAMfbzvDPLS1eqXJ=7TZH1035Z3Vq4q4-yJMqsVBcGxzP8kDUjw@mail.gmail.com/

Vincente, suggests altering the temporary environment variable
(setenv "TEMP" "C:\Temp"). I have tried this option and place it in my
.init file but the Temporary file in org-mode uses does not change. 


As a work around I modified the function org-compile-file in lisp/org/
org-macs.el
by adding altering the source variable as such

 (let* ((source (replace-regexp-in-string "JEREMI~1" "JeremieJuste"
source))

This is obviously not an ideal solution but I cannot find any other
solution immediately. Have someone else come across the same issue on
Windows? Do you have any suggestions?

Best regards,
Jeremie
Org mode version 9.5.4
GNU Emacs 28.1 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]