On Fri, May 14 2021, Tassilo Horn wrote: > jfbu <[email protected]> writes: >> One could also imagine that some eLisp function would take a region >> and a language from a TeX buffer and insert underneath it >> LaTeX-formatted (or Plain TeX-formatted) mark-up. The original could >> be enclosed in a comment environment or other means to let it be >> ignored by LaTeX compiling itself. > > Well, that's certainly feasible to some degree, i.e., you can access all > faces and their attributes and convert them to some similar looking > LaTeX code.
Note that Emacs comes with htmlize.el, which does exactly this but for HTML output. Anyone who wants to start hacking away might take a look at it for ideas. -- Joost Kremers Life has its moments
