From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YHQ8HHT/72LZhAAAbAwnHQ (envelope-from ) for ; Sun, 07 Aug 2022 20:07:48 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id 2HFUG3T/72IG0gAAG6o9tA (envelope-from ) for ; Sun, 07 Aug 2022 20:07:48 +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 E7BBADE8B for ; Sun, 7 Aug 2022 20:07:47 +0200 (CEST) Received: from localhost ([::1]:50568 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKkgl-0007R5-2P for larch@yhetil.org; Sun, 07 Aug 2022 14:07:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60108) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKkgI-0007QI-Gd for emacs-orgmode@gnu.org; Sun, 07 Aug 2022 14:07:18 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:40914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKkgD-0006We-Gr for emacs-orgmode@gnu.org; Sun, 07 Aug 2022 14:07:18 -0400 Received: by mail-wm1-x331.google.com with SMTP id ay36-20020a05600c1e2400b003a4e30d7995so6337749wmb.5 for ; Sun, 07 Aug 2022 11:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc; bh=ZnFPpmV9Hdy7Xrp17Ib6CfoWE9Scn/CD3gqkAQMY+VU=; b=R+PP66OYQiNt13LA/izLZqO6CUBmB0syOS0UVSx5niqddTctmQQTvbbwRUDLCo3MGB /Oq81a4C1OcogojOY4O7GRqAn1AEuUzGhHxZRNyqbIn6KnPTzFxXmyPLJrMq27AHS6lA ZP7ixNQq1zHc+xFjaehxQ4ODCwFZCj+gfnVRaIVFQj1kobYJgIEWbqoqzJjKl3gk6lKU HEDaD6FYPGj+i7m51ypgvDg9Bb5GW+b6bHdwC3G72Cd1HgKzABCUo5SDjxFXPwL/mTk+ Ip7Xbb0bUehWza8ROuxHDK1N9JuR0Yc/FRpqXE2Cos4mxe+Us0gHqHN2hkwpgFHxo2qK gsXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc; bh=ZnFPpmV9Hdy7Xrp17Ib6CfoWE9Scn/CD3gqkAQMY+VU=; b=w4F0cENOwQDRwOgkuwsQMju4NUoftLfvAyD6jrc4BhJkp0GFpyVtZkl2JGbs3PFt4R ZaSyAvZvQVocXGanix5KFW5nosh6m0gFRLdEZzeSgOw/GA6W2saCGFka66wUuSEPBPGx MsvChhqdXnZ/QH8mwFJ2QggXfG7/7oeJ4TGiSDfW2wi2WHN0+OmNXgvMAEWzHP/aAtMC f2PnK+jmXTm7vElhivMLKiDxN5nJnFBuUmb/SvgD+m3MLYpEe8hgM2r7s9h8SRriQG0X cPkVjWUKACwtIexutH2t0URs30TKGvvsWFCnX/5pgtCUnJZifF4A1XKLAALksJS8YQJR Tt4g== X-Gm-Message-State: ACgBeo3MjI99zPoIvYT+uHs7vgWiLK2CdNMrl8qNwMbhBGmnVTJcamA7 VigDiNlhMotRjjHchNy6dvgk/IQslag= X-Google-Smtp-Source: AA6agR6DdQJN/T386qzkrmRXqrw/ji5n4cOqBDCiYOe9EcGlNmOH9oA604prBtNhDdLsOhAF6izNVA== X-Received: by 2002:a05:600c:1449:b0:3a5:3973:55d6 with SMTP id h9-20020a05600c144900b003a5397355d6mr2352882wmi.89.1659895631318; Sun, 07 Aug 2022 11:07:11 -0700 (PDT) Received: from [192.168.0.97] (static-227-109-26-46.ipcom.comunitel.net. [46.26.109.227]) by smtp.gmail.com with ESMTPSA id i20-20020a05600c481400b003a539792542sm2704142wmo.7.2022.08.07.11.07.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Aug 2022 11:07:10 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------jktYgTur90NVb94NyUp0F0Tq" Message-ID: Date: Sun, 7 Aug 2022 20:05:13 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: org-latex preview on Windows Content-Language: en-GB To: emacs-orgmode@gnu.org, jeremiejuste@gmail.com References: From: Ypo In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=ypuntot@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=0.01 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659895668; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZnFPpmV9Hdy7Xrp17Ib6CfoWE9Scn/CD3gqkAQMY+VU=; b=HGEHNVXa52Ke8JxN898F64GuREIVW8O3SCiwpdmr60dnAFExLFBeIbG4wm0Ra50uhmb/FE 5HXF8ELFnk84IjzohItKjyqw6tSh6CRf+OCLk0VImQvWmvSQag0MLqVqszZ+GrdIH3IvvK yu3PnKGwI2FbeYpQfzdeXFlRAnitZJhHnkNnLQBsXL/AnHFoRvArVB2omhd+4T1hpuvAFu mYNfDncVyfudCqUBE9bgj4U8J6h0vo7kcLUByoKKHRZkrXzu1lFzPmXwUb61rWOpJlzz52 3JEnHOcrRUrYo3nn86uRzBE+b2wyhVVvQzXHvd5DCIJxEsctc0/nGSE/l/acNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659895668; a=rsa-sha256; cv=none; b=U1+Biwi8gcSI12DtEiAgzi598twq8Y5EX3G+tqj8LU6uA3Fmv/tmo1QUG0qN91E/GUGJis REsxQnTkLiy2iE+OhYu8yS3K8a+AhG/65+XgWXo8URb+om88KrolRO+iaodu/mQ3e5RlOu fosSesw4fj6T77Yr7QXYdA8rCG/vP3GRzDojeAAH1Po0Dw/yzeH08A36zmVCy+QskfbhL1 Oz8GCb66EkSBZuZ2+CQRPGMVJAXOSSYmi+/yCsrufj1O0yNFCwyR6my80Syi3YUyzm9qcz BiTwg4PaQEsueiX3N/+q0t6bXB9917A2bACb7Ja7Y08wd2FMqXPcN5J0vKQ3lA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=R+PP66OY; 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: -5.19 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=R+PP66OY; 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: E7BBADE8B X-Spam-Score: -5.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5CQGXoYr/8Un This is a multi-part message in MIME format. --------------jktYgTur90NVb94NyUp0F0Tq Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 > To:emacs-orgmode@gnu.org > Subject: org-latex preview on Windows > Message-ID:<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 --------------jktYgTur90NVb94NyUp0F0Tq Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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>
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 
--------------jktYgTur90NVb94NyUp0F0Tq--