Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Karthik Chikmagalur
> I tried to find the reason in my LaTeX header uasge. > If I ban the usage of #+LATEX_HEADER: \usepackage{mathpazo}, the test > time reduced to 3.5s. (I love this font set) > If I ban the fontenc + mathpazo, it remains 3.5s. > If I ban the lmodorn + fontenc + mathpazo, it reduces to 1.9s. This is

Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Yu Huang
I tried to find the reason in my LaTeX header uasge. If I ban the usage of #+LATEX_HEADER: \usepackage{mathpazo}, the test time reduced to 3.5s. (I love this font set) If I ban the fontenc + mathpazo, it remains 3.5s. If I ban the lmodorn + fontenc + mathpazo, it reduces to 1.9s. Other packages li

Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Yu Huang
the result of health-check is as follows. I don't know why "Caching with org-persist" is ON. The value of `org-latex-preview-cache` is exactly "temp" now. -- Your LaTeX preview process Precompile with latex -> LaTeX Compile with pdflatex -> Convert to SVG with dvisvgm pdflatex

Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Karthik Chikmagalur
> > Could you run this code, then run M-x my-org-latex-preview-benchmark > > on your file and report the time? (You should avoid the > > precompilation first by previewing a single fragment first.) > > Ok, I test several times, in an org file with about 700 fragments. I > test first in my current

Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Yu Huang
I am not kidding you in fact.  In each test, I execute #+begin_src elisp (org-latex-preview-clear-cache) (setq org-latex-preview-cache 'temp) #+end_src and compile \(\alpha\), after the precompilation hint vanishes, I execute (my-org-latex-preview-benchmark), and the result is always around 5.5s.

Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Karthik Chikmagalur
> I am not kidding you in fact.  > In each test, I execute > #+begin_src elisp > (org-latex-preview-clear-cache) > (setq org-latex-preview-cache 'temp) > #+end_src > > and compile \(\alpha\), after the precompilation hint vanishes, I > execute (my-org-latex-preview-benchmark), and the result is al

Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Yu Huang
Could you run this code, then run M-x my-org-latex-preview-benchmark on your file and report the time? (You should avoid the precompilation first by previewing a single fragment first.) Ok, I test several times, in an org file with about 700 fragments. I test first in my current workspace (with

Re: org-persist-write:index takes minutes to run

2025-03-28 Thread Karthik Chikmagalur
> The overall current performance is quite satisfactory. I describe in > two cases as Karthik's classification. > > 1. When running org-latex-preview-all inside an org file (about 700 > fragments), Emacs is not unresponsive in comparison to the past, and > the fragments rendering is much more fast

Re: Link preview generation with new link preview property

2025-03-28 Thread Karthik Chikmagalur
>> @@ -2178,23 +2178,39 @@ (defun org-link-preview-file (ov path link) >> >> This is intended to be used as the `:preview' link property of >> file links, see `org-link-parameters'." >> - (when (display-graphic-p) >> -(require 'image) >> (when-let* ((file-full (expand-file-name path))

Org-mode table not in tables TOC

2025-03-28 Thread Sébastien Gendre
Hello, I have created a table like this: #+name: rpm-pks-installed #+ALT_TITLE: Paquets RPM installés sur Fedora pour la démonstration locale | Nom du paquet | Version | Puplication | Logiciel | |-+-+--+

Re: [PATCH] The function `org-link-preview-region` should detect whether already has overlay.

2025-03-28 Thread Karthik Chikmagalur
>> When headline cycle expanding on STATE is `subtree` in function >> `org-cycle-display-link-previews`, assume I have org-mode content like >> bellowing: >> ... >> The first two links will be previewed twice. (I use package >> "org-link-beautify.el" which display icon on link. Then it will link >>

Font size for export of example bloc

2025-03-28 Thread Sébastien Gendre
Hello, In an org-mode document, I have some example blocs. But their text are to long for my LaTeX/PDF export. Is it possible to reduce the size of the font for just some example blocs ? Best regards --- Gendre Sébastien signature.asc Description: PGP signature

Re: Inline previewing of .rnote files

2025-03-28 Thread Ihor Radchenko
Antonio Romano writes: > I'm aware of this new enhancement and am eager to see this released, > however i think this does not fit well my use case as it requires > defining a new link type whereas link types' semantic is - in my view - > that of defining a type of URI, not the type of identifi

Re: Image inlining patch

2025-03-28 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Could be a good idea. I would factor that out and then use a define-alias in > the html and the latex exporters to touch the code as little as possible. > WDYT? We should definitely keep obsolete alias if we move the function from ox-html to ox, but I'd

Re: [FR] org-colview.el, add annotation for functions summary-types

2025-03-28 Thread Ihor Radchenko
Sławomir Grochowski writes: >> Everything works on my side. > > You are right. Everything works with 'emacs -Q'. > It just doesn't work with https://github.com/minad/vertico or my > configuration of this package. Any chance that it could be a bug in vertico? May you try reporting it there? --

Re: [FR] org-colview.el, add annotation for functions summary-types

2025-03-28 Thread Sławomir Grochowski
Ihor Radchenko writes: > May you please check with emacs -Q? > > I just tried the following: > > 1. make repro > 2. M-: (setq org-columns-summary-types '(("test" . identity))) > 3. C-x C-f /tmp/test.org > test.org is the following: > > * foo > * bar > * baz > 4. M-< > 5. C-c C-x C-c > 6. C-c C-n

Re: Best way to represent a directory tree in Org-mode

2025-03-28 Thread Jean Louis
* Sébastien Gendre [2025-03-28 13:48]: > Hello, > > I am writing a big document with Org-mode and I plan to export it to > LaTeX then PDF. > > I need to represent the tree of a directory content. What is the best way to > do > it and keep it readable in the exported PDF ? #+begin_src dot :file

Re: [PATCH] Add xdv support for latex preview

2025-03-28 Thread Billy Lei
在 2025/3/26 2:37, Ihor Radchenko 写道: Billy Lei writes: Subject: [PATCH] org-preview-latex-process-alist: Add xdv support for latex preview * lisp/org.el (org-preview-latex-process-alist): Add new process "xelatex" to allow using xelatex to generate latex preview. Thanks for the patch!

Best way to represent a directory tree in Org-mode

2025-03-28 Thread Sébastien Gendre
Hello, I am writing a big document with Org-mode and I plan to export it to LaTeX then PDF. I need to represent the tree of a directory content. What is the best way to do it and keep it readable in the exported PDF ? Best regards --- Gendre Sébastien signature.asc Description: PGP signa