Re:Literate Programming in Quarto
by goosedragons on Tuesday February 11, 2025 @09:51AM
(#43013357)
I've been using Org mode, more specifically org-babel. The only real downside of org mode is that it is Emacs exclusive. But it's very powerful and supports multiple languages. Lots more options than Quarto/Rmarkdown/Sweave which I have tried previously.
While, for a while I was using the emacs shortcuts in Apple's text object, I don't use my Mac enough for that to have stuck, and I find emacs itself intimidating, though I have great respect for the folks who can make the lifestyle commitment to use it (one programmer I knew launched it at the beginning of the day and never left it) --- gave away a copy of the emacs lisp programming book I received as a gift.
I looked around and considered other tools, and Quarto was in the running, but it didn't seem straight-forward to get it to support multiple languages (my current project began in OpenSCAD, migrated to Python, and still maintains an OpenSCAD wrapper, as well as needing to write out G-code and DXFs).
Wound up asking how to do this w/ LuaLaTeX and got a very helpful answer:
https://tex.stackexchange.com/questions/722886/how-to-write-...
which I used to create a package which suits my needs, despite some serious drawbacks/failings (the .sty file _and_ .tex file have to be edited when a new file is added (or an old one removed), line numbering has to be managed manually, and I haven't puzzled out a seamless way to manage the Markdown file for readme.md).
Curious what other folks use/how they approach this sort of thing, so glad of this thread.