[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Export Emacs highlighting to LaTeX?
From: |
Joost Kremers |
Subject: |
Re: Export Emacs highlighting to LaTeX? |
Date: |
Fri, 14 May 2021 22:01:02 +0200 |
User-agent: |
mu4e 1.5.12; emacs 27.2.50 |
On Fri, May 14 2021, Tassilo Horn wrote:
> jfbu <jfbu@free.fr> 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