Hi Michael,

> I want to include an "org" source block in a document as an example, and
> have it formatted with minted.
>

Juan mentioned an Org lexer exists, but another approach that may be of
interest is using Emacs' own font-lock. I wrote a package that's like
HTMLize but works with LaTeX and currently have it sitting in my config.

I plan on submitting a patch to Org at some point on this, but for now:
- https://github.com/tecosaur/engrave-faces
- https://tecosaur.github.io/emacs-config/config.html#pretty-code-blocks

Sample output: all the code blocks in
https://tecosaur.github.io/emacs-config/config.pdf

Since this uses Emacs' font-lock, this means that you can use any
language that you have a syntax-highlighting-mode for :)

--
Timothy

Reply via email to