[OS X TeX] Typesetting program code in LaTeX - what packages to use?
William F. Adams
willadams at aol.com
Wed Apr 9 12:05:28 EDT 2025
On Wednesday, April 9, 2025 at 11:49:35 AM EDT, Luís Sequeira <lfsequeira at gmail.com> wrote:
>Apologies for this question that is only tangentially mac related.
>
>I like the minted package to typeset Python or other code in LaTeX, it's straightforward to use,
>includes syntax coloring and looks beautiful.
>
>However, it does requires external programs and the --shell-escape option to typeset.
>
>There is no problem when using it for my own work in TeXShop, but I have students that use school computers
>where the software installation and modification is not easy, or possible.
>
>What alternatives can you recommend? The only one I could find is the old lstlistings package, but its output
>is downright ugly, and lacks syntax coloring (unless I'm missing something...).
I've been using:
https://ctan.org/pkg/listings
and keep telling myself I'm going to find the time to look into colour-coding to match the editor I use, but I haven't found time for that.
If such colour-coding requires an external program, my apologies (can't remember if that was the block on my doing this).
William
More information about the MacOSX-TeX
mailing list