Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-18 Thread Max Nikulin
On 19/04/2024 00:58, Корякин Артём wrote: shell-file-name ; "pwsh.exe" system-type ; windows-nt (w32-shell-dos-semantics) ; nil I have no idea what style of escaping is expected by pwsh.exe. If it is the same as for cmd.exe then I would try to add it to

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-18 Thread Корякин Артём
Max Nikulin writes: > Please, evaluate the following expressions e.g. in the scratch buffer: > > shell-file-name ; "pwsh.exe" > system-type ; windows-nt > (w32-shell-dos-semantics) ; nil > (w32-shell-name) ; "pwsh.exe" For clarification: I specifically configured[1] MS pwsh as

Re: [DISCUSSION] "quick-help" popup for org-columns (column view)

2024-04-18 Thread Sławomir Grochowski
Philip Kaludercic writes: > Sławomir Grochowski writes: > >> Philip Kaludercic writes: >>> I have pushed the changes to master. >> >> Thank you Philip for your help. It works. >> >> But there is one more small thing. >> A message that is displayed in the minibuffer. >> It contains two

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-18 Thread Корякин Артём
Karthik Chikmagalur writes: > As a temporary measure, could you try replacing calls to > shell-quote-argument with identity in the following two functions? > > org-latex-preview--tex-compile-async > org-latex-preview--image-extract-async I did[1] exactly this. It works, but only if I eval it

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-18 Thread Yaroslav Drachov
My system-configuration-features are "ACL GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS ZLIB". RSVG is in the list. org-latex-preview-check-health diagnostic info:

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-18 Thread Karthik Chikmagalur
> I hope I understand correctly how to use this mail-thread. Thank you > very much for such a great enhancement of Org-mode LaTeX preview > capabilities. I am on macOS Big Sur and have some troubles with > dvisvgm preview in your particular fork. Everything works just fine in > stable release of

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Fraga, Eric
On Thursday, 18 Apr 2024 at 15:38, Leo Butler wrote: > Eric, > I think there is a bug in the way the exporter handles odt fragments. > > Explanation: Maxima can print output in mathml. Oh, this is actually excellent news! I use maxima all the time... > But when I export to odt, something weird

Re: strange export problem with a file: link

2024-04-18 Thread Fraga, Eric
On Thursday, 18 Apr 2024 at 21:46, Max Nikulin wrote: > Sorry that I was not clear enough. Org code should be fixed. For a > while you may revert that commit in your local repository. Ah, okay! Thank you. I'll leave my documents as they are then. :-) -- : Eric S Fraga, with org

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Fraga, Eric
Hi Max, On Thursday, 18 Apr 2024 at 22:05, Max Nikulin wrote: > I am still curious if pandoc can handle your math expressions. The short answer: not quite but definitely much better than latexmlmath. The longer answer: my equation has a number of terms with subscripts where the subscripts

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Leo Butler
On Thu, Apr 18 2024, "Fraga, Eric" wrote: > Hello all, > > I am having (for my sins) to write some Word documents. I don't even > have Word on my system but that's by the by. The documents have some > mathematical expressions. In the past, I have used LaTeX to create > images of these

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-18 Thread Max Nikulin
On 18/04/2024 03:11, Корякин Артём wrote: Maybe I could somehow rewrite shell-quote-argument using advices ? Maybe some more global changes is needed for emacs on windows ? Please, evaluate the following expressions e.g. in the scratch buffer: shell-file-name system-type

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Max Nikulin
On 18/04/2024 22:03, Fraga, Eric wrote: PS - also thanks for details on latexmlmath. I am still curious if pandoc can handle your math expressions.

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Fraga, Eric
Hi Max, On Thursday, 18 Apr 2024 at 21:44, Max Nikulin wrote: > #+begin_export odt > ... > #+end_export I thought I had tried that but must have done something different/wrong. This works beautifully, once I figured out I had to wrap the ... within a . Many thanks, eric PS - also thanks for

Re: strange export problem with a file: link

2024-04-18 Thread Max Nikulin
On 18/04/2024 21:37, Fraga, Eric wrote: On Thursday, 18 Apr 2024 at 19:08, Max Nikulin wrote: It is a side effect of 72b0e9ff0 2024-02-05 16:39:05 +0100 Ihor Radchenko: org-export: Do not strip link type by default during export I have now checked the ORG-NEWS file, which I probably should

Re: MathML and ODT export: inline possible?

2024-04-18 Thread Max Nikulin
On 18/04/2024 19:14, Fraga, Eric wrote: The question I have is: can I replace the link to a Math ML file (which does work, as noted in the org info manual) with the actual Math ML code inline within the org file? #+begin_export odt ... #+end_export [1] exporting LaTeX fragments directly,

Re: strange export problem with a file: link

2024-04-18 Thread Fraga, Eric
On Thursday, 18 Apr 2024 at 19:08, Max Nikulin wrote: > It is a side effect of > > 72b0e9ff0 2024-02-05 16:39:05 +0100 Ihor Radchenko: org-export: Do not > strip link type by default during export Thank you Max. I have now checked the ORG-NEWS file, which I probably should have looked at before

`org-element-cache-map' misses elements at end of buffer

2024-04-18 Thread Morgan Smith
Hello! I may or may not have been trying to rewrite `org-clock-sum' for like the 5th time. Anyways I was wanting to parse a file using `org-element-cache-map' that looked roughly like this: * clock :LOGBOOK: CLOCK: [2024-03-24 Sun 15:18]--[2024-03-24 Sun 15:39] => 0:21 :END: ===

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-04-18 Thread Корякин Артём
I've got problem when I use this version of org-latex preview: RUNNING: dvisvgm --page=1- --optimize --clipjoin --relative --no-fonts --bbox=preview -o c\:/Users/artsi0m/AppData/Local/Temp/org-tex-DAJVTr-%9p.svg c\:/Users/artsi0m/AppData/Local/Temp/org-tex-DAJVTr.dvi ERROR: can't open file

Re: [BUG] LaTeX preview should use a subdirectory in /tmp

2024-04-18 Thread Emmanuel Charpentier
Le mercredi 17 avril 2024 à 22:41 +0200, Emmanuel Charpentier a écrit : [ Snip... ] A couple more data points : * The problem I described happens when I run `emacs` on files belonging in a Windows tree, symlinked to the Linux tree. Running `emacs` on files outside this symlinked tree works

MathML and ODT export: inline possible?

2024-04-18 Thread Fraga, Eric
Hello all, I am having (for my sins) to write some Word documents. I don't even have Word on my system but that's by the by. The documents have some mathematical expressions. In the past, I have used LaTeX to create images of these expressions (and hence my earlier post today). But I'm told

Re: strange export problem with a file: link

2024-04-18 Thread Max Nikulin
On 18/04/2024 17:50, Fraga, Eric wrote: #+begin_src latex :results file raw :exports results :file function.png \[ y = f(x) \] #+end_src org-odt-export-to-odt: OpenDocument export failed: Opening input file: No such file or directory, /tmp/file:function.png It is a side effect of 72b0e9ff0

org syntax: is \begin{equation} a latex-fragment?

2024-04-18 Thread Max Nikulin
Hi, Is it expected that 8< \begin{equation} >8 is parsed by (org-element-parse-buffer) as the following? (latex-fragment ... :value "\\begin{equation}") \begin{something} is quite special in LaTeX, so despite it is similar to `latex-fragment' definition, it almost

strange export problem with a file: link

2024-04-18 Thread Fraga, Eric
Hello all, I have a file that consists of these three lines: --8<---cut here---start->8--- #+begin_src latex :results file raw :exports results :file function.png \[ y = f(x) \] #+end_src --8<---cut here---end--->8--- With

Re: [POLL] Should we enable or disable automatic tag alignment by default everywhere

2024-04-18 Thread Max Nikulin
On 17/04/2024 17:21, Ihor Radchenko wrote: Or maybe should we keep the status quo with ~org-auto-align-tags~ sometimes respected and sometimes not? I am rather neutral in respect to this change. I like that tags are aligned (so I am not going to set `org-auto-align-tags' to nil), but