Thank you for the reply! I actually don’t want any confirmation, just generate a tex file with the same name and overwrite.
The one original one (html) by @jeroen gives error when running on C:/Users/Me/Downloads/Formula.tm
:
Warning: Couldn’t concretize tuple (concat, etc, papersize)
Warning: Couldn’t concretize tuple (concat, C, tuple (concat, Users, tuple (concat, Me, tuple (concat, Downloads, Formula.html))))
Warning: Save error for C:\Users\Me\Downloads\C\Users\Me\Downloads\Formula.html, No error
I want to disable the overwrite check and wrote:
(define (propose-latex-name)
(with name (propose-name-buffer)
(if (string-ends? name ".tm")
(string-append (string-drop-right name 3) ".tex"))))
(define (export-to-proposed-latex)
(let ((latex-name (propose-latex-name)))
((buffer-exporter "latex") latex-name)))
(kbd-map
("C-4" (export-to-proposed-latex)))
When I run it I get error:
Warning: Couldn’t concretize tuple (concat, etc, papersize)
Warning: Save error for C:\Users\Me\Downloads\C\Users\Me\Downloads\Formula.tex, No error
I saw a post in the forum about a similar error, which was solved by updating the app. I tried reinstalling Texmacs (2.1.4) with deletion of C:\Users\Me\AppData\Roaming\TeXmacs
, but it still doesn’t work. I can open source.ts
.
The code by you works. I only found one mention of buffer-exporter
in the codebase, haha. It’s just that it opens a file picker window each time and I need to then click export. But it’s definitely much easier than before.