Comment by zokier

16 hours ago

Code typography is such a neglected area, I'm glad to see any projects that touch on that. This reminds me of Suns Fortress language, which was designed also for scientific computing (afaik more in HPC sense), and also allowed rendering code into pdf with improved typography. Unfortunately lot of the original Fortress resources have linkrotted away, but there are some examples in this presentation (by Guy Steele!) https://www.cs.tufts.edu/comp/150FP/archive/neal-glew/mcrt/F...

Arguably the most successful effort in this space is:

http://literateprogramming.com/

I use it in a current project using LaTeX:

https://github.com/WillAdams/gcodepreview

  • I checked the linked PDF[1] as an example, and the codeblocks are still just basic plain monospaced blocks with practically no typesetting done to them; very different from something like Fortress, or indeed this Forscape

    [1] https://github.com/WillAdams/gcodepreview/blob/main/gcodepre...

    • Yeah, I've been using the listings package and it doesn't have much support for Python and I had to hack together the settings for OpenSCAD.

      If you know of a better LaTeX package to use, or better settings for Python or languages like OpenSCAD I'd be glad of them.

      Mostly I need the LP stuff for managing multiple files, and the overview of the PDF and hyperlinked ToC and Index and so forth.