Re: The less ambiguous math delimiters in tables

2024-12-30 Thread Ihor Radchenko
Max Nikulin writes: > printf '%s\n' '| \(|x|\) | \(|x|\) |' | pandoc -f org -t latex > \begin{longtable}[]{@{}ll@{}} > \toprule > \endhead > \(|x|\) & \(|x|\) \\ > \bottomrule > \end{longtable} > > Likely you would be unhappy if some of you document were exported in a > different way due to chan

Re: Month-week and quarter-week datetrees (RFC and package announcement)

2024-12-30 Thread Jack Kamm
Thanks for the feedback. I attach a squashed updated patch for part 2. You can also see the unsquashed changes at https://github.com/jackkamm/org-mode/tree/2024-grouped-weektree-rebase >> +(defun org-datetree-find-create-entry > Please also document how `org-datetree-add-timestamp' affects this f

Re: [PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2024-12-30 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > In some traditions, Xmas presents come on New Years Eve… so here you are. > I hope this covers most use cases. Thanks! May you also add a test? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Supp

Re: [PATCH] etc/ORG-NEWS: Clarify org-protocol bookmarklet issue

2024-12-30 Thread Ihor Radchenko
Max Nikulin writes: >> What about the attached? > > After "TL;DR" I expect more verbose explanation, however if you prefer > your variant then I would not insist on further polishing. I avoided TL;DR in the commit I just made. Now, it is closer to your variant. https://git.savannah.gnu.org/cgi

Re: [BUG] org-link-preview-file emits image not supported in daemon [9.8-pre (release_9.7.10-127-g07dd3b @ /home/bidar/.local/etc/emacs/lib/org/lisp/)]

2024-12-30 Thread Ihor Radchenko
Björn Bidar writes: > Can preview be generated without a frame be open, so that when the user > visits the file after the first frame has been opened it is there. Do you mean asking whether Emacs can generate graphics when running as daemon? AFAIK, no. All the graphics-related facilities cannot

Re: Link preview generation with new link preview property

2024-12-30 Thread Ihor Radchenko
Björn Bidar writes: >> It looks like you are respecting the alignment specifications, set via >> org-image-align or the :align property of #+attr_*, but not the :width >> property. Is the idea that the preview implementation that provides the >> image should independently use org-display-inline-

Re: Month-week and quarter-week datetrees (RFC and package announcement)

2024-12-30 Thread Jack Kamm
Ihor Radchenko writes: >> +;; Support the old way of tree placement, using a property >> +(let ((prop (and legacy-prop (org-find-property legacy-prop >> + (if prop >> + (progn >> +(goto-char prop) >> +(org-narrow-to-subtree) >>

Re: Month-week and quarter-week datetrees (RFC and package announcement)

2024-12-30 Thread Ihor Radchenko
Jack Kamm writes: > Does `org-element-cache-map' traverse elements in the order they're in > the buffer? That is something we need for this. Yes, it does. You can even edit buffer along the way. `org-element-cache-map' combines regexp search and parser cache trying to be as fast as possible. >

[BUG] org-element warning [9.8-pre (release_9.7.18-202-ge16c9e @ /home/vjo/.emacs.d/straight/build/org/)]

2024-12-30 Thread Valerio Siniscalco
emember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: Some hacks on top of org-publish

2024-12-30 Thread Ihor Radchenko
Nikolaos Chatzikonstantinou writes: > ... I got inspired by Worg's website > which does not do any backend hacking as far as I can tell, but > instead puts some javascript to collapse the table of contents. WORG does not use JS. The TOC is implemented using pure CSS. > Do you have a particular

Re: The less ambiguous math delimiters in tables

2024-12-30 Thread Rudolf Adamkovič
Ihor Radchenko writes: > FYI, my approach to solve this problem is different - I want > (eventually) to allow some kind of alternative syntax for tables that > will allow bypassing similar situations. For example, we can allow > multiple || to serve as delimiters: > > | this | is | a | no

Re: The less ambiguous math delimiters in tables

2024-12-30 Thread Rudolf Adamkovič
Max Nikulin writes: > E.g. pandoc uses another approach: > > printf '%s\n' '| \(|x|\) | \(|x|\) |' | pandoc -f org -t latex > \begin{longtable}[]{@{}ll@{}} > \toprule > \endhead > \(|x|\) & \(|x|\) \\ > \bottomrule > \end{longtable} > > Likely you would be unhappy if some of you document were exp

Re: Generating the filename from name and file-ext for blocks with side-effects

2024-12-30 Thread Rudolf Adamkovič
Ihor Radchenko writes: >> We can detect the image type with `image-type': >> >> (image-type "...-59b9176e65c9.svg") => svg > > Why do you think that the output file is always an image? It may not > be. It can be anything. I do not think that. I specifically addressed the non-image case: the f

[PATCH]: ox-latex.eel: handle unnumbered sections in TOC correctly

2024-12-30 Thread Pedro Andres Aranda Gutierrez
Hi, In some traditions, Xmas presents come on New Years Eve… so here you are. I hope this covers most use cases. Happy New Year, /PA 0001-ox-latex.el-Fix-adding-unnumbered-sections-to-the-To.patch Description: Binary data > El 27 dic 2024, a las 19:01, Ihor Radchenko escribió: > > Pedro A