Re: [patch] ox-latex.el: Add `LATEX_PRE_HEADER' keyword

2023-09-25 Thread Thomas S. Dye
Aloha all, Juan Manuel Macías writes: If so, Org should have native support of \DocumentMetadata, not LATEX_PRE_HEADER or something similar. If it were the only case of code before \documentclass, I would agree. But, as I have already said above, the diversity of use cases makes the impl

Re: [patch] ox-latex.el: Add `LATEX_PRE_HEADER' keyword

2023-09-25 Thread Juan Manuel Macías
Max Nikulin writes: > On 25/09/2023 01:42, Juan Manuel Macías wrote: >> According to the pdfx package documentation >> (https://www.ctan.org/pkg/pdfx), p. 6 (at the bottom of the page)/7: >> --- >> Warning: The \jobname.xmpdata file may be included in the main document >> source, within a {filecon

Re: Calc/TBLFM: how to conditionally insert hours:minutes?

2023-09-25 Thread Chris Keschnat
Hi Bruno, > You could switch to the "Lisp" syntax (as opposed to the "Calc" syntax), > and, write the conversion manually: > > | 19:55:00 | > | 40:01:00 | > | 40:01:00 | > > #+TBLFM: $1='(org-table-time-string-to-seconds (if (<= @# 1) "19:55" > "40:01"));T awesome, thank out. T

Re: Exporting elisp: and shell: links

2023-09-25 Thread Max Nikulin
On 23/09/2023 06:43, Rudolf Adamkovič wrote: Ihor Radchenko writes: Another idea: use code as description displayed in the tooltip (in html). Copy-on-clip also makes sense. Yet another idea: export code inside a footnote. This will work across all the backends. Yet another, another idea: exp

Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @ /home/viz/lib/emacs/straight/build/org/)]

2023-09-25 Thread Visuwesh
[ Please keep me in the CC as I don't follow the list. ] [ஞாயிறு செப்டம்பர் 24, 2023] Max Nikulin wrote: > On 23/09/2023 17:28, Ihor Radchenko wrote: >> Visuwesh writes: >> >>> + (let* ((ext (symbol-name (mailcap-mime-type-to-extension mimetype))) >>> + (iname (read-string "Insert file

Re: [patch] ox-latex.el: Add `LATEX_PRE_HEADER' keyword

2023-09-25 Thread Max Nikulin
On 25/09/2023 01:42, Juan Manuel Macías wrote: According to the pdfx package documentation (https://www.ctan.org/pkg/pdfx), p. 6 (at the bottom of the page)/7: --- Warning: The \jobname.xmpdata file may be included in the main document source, within a {filecontents*} environment, provided this c

Re: [BUG] [PATCH] Add yank-media and DND handler [9.6.7 (9.6.7-g6eb773 @ /home/viz/lib/emacs/straight/build/org/)]

2023-09-25 Thread Visuwesh
[சனி செப்டம்பர் 23, 2023] Visuwesh wrote: >>> +(defun org--image-yank-media-handler (mimetype data) >>> + "Save image DATA of mime-type MIMETYPE and insert link at point. >>> +It is saved as per `org-media-image-save-type'. The name for the >>> +image is prompted and the extension is automatical

Re: Calc/TBLFM: how to conditionally insert hours:minutes?

2023-09-25 Thread Bruno Barbier
Hi Chris, Chris Keschnat writes: > > | 19:55:00 | > | 00:00:40 | > | 00:00:40 | > #+TBLFM: $1=if(@# <= 1, 19:55, 40:01);T > > What would be the correct way to do this? > It seems that org tries to convert times back and forth when evaluating formulas; but, in your case, it cannot convert them