Re: [PATCH v3] Inline image display as part of a new org-link-preview system

2024-09-08 Thread Karthik Chikmagalur
>> Do you mean something like this? >> >> (while (re-search-forward org-link-any-re end t) >> ;; Make overlay ov here >> ;; Find path, link and preview-func here >> >> (push (list ov preview-func path link) previews-remaining)) >> >> (dolist (preview-data-chunk (seq-partition previews-remaini

Re: [PATCH v3] Inline image display as part of a new org-link-preview system

2024-09-08 Thread Ihor Radchenko
Karthik Chikmagalur writes: >> I mostly meant calling preview-func asynchronously, while idle, spaced >> out, spending not longer than a fraction of second to call several >> preview-funcs. >> Spacing might then be controlled by the users. > ... > Do you mean something like this? > > (while (re-s

Re: [DISCUSSION]: LaTeX - include the xcolor package in the packages list

2024-09-08 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > Would the description of the package at https://ctan.org/pkg/xcolor be > enough? > Additionally, there is a nice discussion at > https://tex.stackexchange.com/questions/89763/when-to-use-the-xcolor-package-instead-of-the-color-package That's not what I am

Re: Speed up adding footnotes?

2024-09-08 Thread Pedro Andres Aranda Gutierrez
> I'm converting a website into org-mode, then latex, and finally a pdf file. > > But I'm having problems adding articles in the middle of the main page, specifically adding footnotes. At its longest period it took almost 3 minutes to add one footnote! > > (To insert a footnote I'm using this key s

Re: [DISCUSSION]: LaTeX - include the xcolor package in the packages list

2024-09-08 Thread Pedro Andres Aranda Gutierrez
Would the description of the package at https://ctan.org/pkg/xcolor be enough? Additionally, there is a nice discussion at https://tex.stackexchange.com/questions/89763/when-to-use-the-xcolor-package-instead-of-the-color-package Best, /PA On Sun, 8 Sept 2024 at 19:36, Ihor Radchenko wrote: > Pe

Playing RPG game with org-mode

2024-09-08 Thread c4droid
Hi, I herd about org-mode can use for rpg game like Dungeons and Dragon and Ironsworn. I want some guidence for playing RPG game in org-mode, like creating character sheet, roll dice, creating module, etc. Have any idea?

Re: [PATCH v3] Inline image display as part of a new org-link-preview system

2024-09-08 Thread Karthik Chikmagalur
>> I'm not sure how to solve this problem. Here's what I'm picturing -- >> note that this doesn't actually avoid the process sentinel pile-up: >> >> The preview provider should return its callback function to Org so Org >> can run it at its convenience. >> >> Org runs (funcall #'preview-func ov pa

Re: Enhancing the HTML exporter: Create a new backend or contribute to the upstream

2024-09-08 Thread Orm Finnendahl
Am Sonntag, den 08. September 2024 um 18:42:51 Uhr (+) schrieb Ihor Radchenko: > I agree that including indexer is just a question of adding specific > javascript. > > But I think that it would be useful to provide some default toggle to > include such a tool without having to know the details

Re: Enhancing the HTML exporter: Create a new backend or contribute to the upstream

2024-09-08 Thread Ihor Radchenko
Orm Finnendahl writes: > The javascript needed and all processing scripts can easily be > included in the header, so I don't see any point in this, except > writing a tutorial, how to integrate pagefind into someone's HTML > output with the means already available with the existing backend. > > A

Re: Enhancing the HTML exporter: Create a new backend or contribute to the upstream

2024-09-08 Thread Orm Finnendahl
Hi, that makes no sense to me whatsoever: Post processing is already possible and built into org-export. pagefind is an external product with its own binaries, not written in elisp nor being by any means connected to emacs and compiling index files on generated HTML files is exactly that: A post

Re: Doubt. Differences between id search and target links.

2024-09-08 Thread Ihor Radchenko
Kepa writes: > I have a doubt about two kind of links, that are very similar in > functionality: id links with search options and <> links > > What would be the best option? > > In terms of performance, id links could be better, since the search is > narrowed to the contents of a headline, whil

Re: Customising LaTeX packages in org-latex-default-packages-alist

2024-09-08 Thread Ihor Radchenko
Joost Kremers writes: > So that made me wonder; is there a different (better) way of configuring > the packages in `org-latex-default-packages-alist`? https://orgmode.org/worg/org-tutorials/org-latex-export.html#org67ae7f0 -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about O

Re: Sorting WAITING tasks from old to new

2024-09-08 Thread Ihor Radchenko
William Denton writes: > If I look at all my TODOs (org-todo-list) and filter to WAITING (4 r) then > all the tasks in this view are shown in the order they appear in the files > where the tasks are listed. Is there a way to sort them from old to new (or > new to old) so I can see which ones

Re: BUG: after an org-capture to an inbox entry, statistics-cookies are not updated on certain circumstances

2024-09-08 Thread Ihor Radchenko
pinm...@cas.cat writes: > I am living with this bug since a long time, I thought I was asking > maybe something very special. > > But then I find on a org-capture that goes to an inbox entry: > > 1. if prepend is nil, does not work on the first time (?) > 2. works when number of entries is greate

Re: Org exports broken ID links

2024-09-08 Thread Ihor Radchenko
Rudolf Adamkovič writes: >>> `ox-texinfo' exports the link as >>> >>> @uref{file://test.org,Foo} >> >> the link points to the test.org file. It is not broken - the relevant >> heading is present in the .org file even though it is absent in the >> exported .texi file. > > Oh, I see now. OMG,

Re: [DISCUSSION]: LaTeX - include the xcolor package in the packages list

2024-09-08 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > before I create a storm, I would like to poll if there would be too much of > a resistance to include the xcolor package in the default packages list. > It is used in most examples in the docs and provides all functionality of > the color package and doesn'

Re: Enhancing the HTML exporter: Create a new backend or contribute to the upstream

2024-09-08 Thread Max Nikulin
On 08/09/2024 21:46, Max Nikulin wrote: On 07/09/2024 18:53, Ihor Radchenko wrote: Then, pagefind can be the default (it is MIT license - GPL compatible), It might be more tricky: Sorry for the noise. Of course, if you are not going to include any pagefind code into Org then it is not an is

Speed up adding footnotes?

2024-09-08 Thread Sharon Kimble
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 I'm converting a website into org-mode, then latex, and finally a pdf file. But I'm having problems adding articles in the middle of the main page, specifically adding footnotes. At its longest period it took almost 3 minutes to add one footnote!

Re: Enhancing the HTML exporter: Create a new backend or contribute to the upstream

2024-09-08 Thread Max Nikulin
On 07/09/2024 18:53, Ihor Radchenko wrote: Then, pagefind can be the default (it is MIT license - GPL compatible), It might be more tricky: emacs-devel. Re: [Nicolas Graves] [PATCH v6 01/10] rde: emacs: Start emacs in --daemon mode, with

Re: [PATCH v3] Inline image display as part of a new org-link-preview system

2024-09-08 Thread Ihor Radchenko
Karthik Chikmagalur writes: >>> +BEG and END define the considered part. They default to the >>> +buffer boundaries with possible narrowing." >>> + (interactive "P") >>> + (when (display-graphic-p) >> >> Do we need it here? You check graphics both here and later in the >> preview function. We