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

2024-04-19 Thread Ihor Radchenko
Max Nikulin writes: > Is it expected that > > 8< > \begin{equation} > >8 > > is parsed by (org-element-parse-buffer) as the following? > > (latex-fragment ... :value "\\begin{equation}") Yes. It matches https://orgmode.org/worg/org-syntax.html#LaTeX_Fragments >

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-04-19 Thread Alexander Adolf
Ihor Radchenko writes: > [...] >> `make compile` didn't complain at all, and `make test` ended with the >> following: >> ... >> 4 unexpected results: >>FAILED ob-calc/matrix-inversion >>FAILED test-ob-shell/bash-uses-assoc-arrays >>FAILED

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-04-19 Thread Ihor Radchenko
Alexander Adolf writes: >> Also, if you mention a variable in the manual, please add #+vindex: >> entry. Maybe even #+cindex: entry for "formatter", to make the parameter >> more discoverable. > > I kept it to the format of the existing parameter descriptions, which > don't create index entries.

Re: MathML and ODT export: inline possible?

2024-04-19 Thread Max Nikulin
On 18/04/2024 22:51, Fraga, Eric wrote: In LaTeX, something like $a_{b_c}$. Pandoc generates a b c (where the a, b, and c are ...) whereas, by hand, I use a b c MathJax may be your friend. LaTeXML and katex do not add as well. Actually I asked to confirm that your troubles are not

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-04-19 Thread Alexander Adolf
Ihor Radchenko writes: > Alexander Adolf writes: > >> Subject: [PATCH 1/2] lisp/org-colview.el: add formatter parameter to colview >> dynamic block > > Thanks for the patches! > See my comments below. Thanks for your swift review, and most helpful comments! While I'm implementing these,

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

2024-04-19 Thread emm . charpentier
I can M-x trace-function org-compile-file-commands (whic now appears in the auocompletions) but, curiously, I *dp* **not** get a ttace output buffer. Exporting still fails with : org-babel-exp process emacs-lisp at position 194...

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

2024-04-19 Thread Ihor Radchenko
Morgan Smith writes: > 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

Re: org-persist-write slowing down kill-buffer

2024-04-19 Thread Ihor Radchenko
Karthik Chikmagalur writes: > I've been noticing that kill-buffer blocks Emacs for a noticeable > period when killing org buffers. Here are elp results obtained by > instrumenting org-persist-* and kill-buffer: > > | Function name | Call count | Elapsed time | Average >

Re: [BUG] A custom org-num-format-function causes org-latex-preview warn when it called. [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.3/lisp/org/)]

2024-04-19 Thread Ihor Radchenko
Ihor Radchenko writes: > I was able to reproduce using the provided steps using the built-in Org > mode version and using the latest stable Org mode version. > However, I am unable to reproduce using the latest development Org mode > version. Handled. -- Ihor Radchenko // yantar92, Org mode

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

2024-04-19 Thread Ihor Radchenko
Emmanuel Charpentier writes: >> What if you do M-x trace-function org-compile-file-commands > > No such function : I just have org-compile-file , which I traced. May you try the development branch of Org mode (main)? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org

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

2024-04-19 Thread Morgan Smith
So I found another bug in `org-element-cache-map'. Executing the following code just freezes up. I am struggling to work through the logic of `org-element-cache-map'. If no-one else magically solves my issues, I'll figure it out eventually. But I would appreciate some advice on how to debug

Re: Pending contents in org documents (Re: Asynchronous blocks for everything (was Re: ...))

2024-04-19 Thread Bruno Barbier
Hi Ihor, Thanks for the review. I've pushed a new version, hoping to decrease the number of dislikes ;-) Ihor Radchenko writes: > Bruno Barbier writes: > >>> I have a further request on interaction with penreg objects. >>> I feel that it is not ideal that overlays associated with penreg

Re: [BUG] org-paste-subtree level when point is in the middle of a heading (was: Make org-paste-subtree more predictable and useful)

2024-04-19 Thread Ihor Radchenko
Ihor Radchenko writes: > Steps to reproduce: > > 1. Create a file > > 1.1.1.1 > 1.1.1.2 > * 3 > ** 3.1 > *** 3.1.1 > low-level item > *** 3.1.2 > *** 3.1.3 > > 2. Copy the first two headings > 3. Move point as indicated > 4. M-x org-paste-subtree > > Observed: 1.* headings

Re: columnview dynamic block - different time summing behaviour for EFFORT and CLOCKSUM

2024-04-19 Thread Ihor Radchenko
Alexander Adolf writes: > Subject: [PATCH 1/2] lisp/org-colview.el: add formatter parameter to colview > dynamic block Thanks for the patches! See my comments below. > * lisp/org-colview.el (org-dblock-write:column view): Factor out the > existing formatting code to new function >

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

2024-04-19 Thread Корякин Артём
Max Nikulin writes: > 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