CTAN Comprehensive TeX Archive Network

Tcode – Typesetting verbatim code: C, python,…

This is a package for typesetting code (e.g., C, python, julia,…). pdf is enough for it (you can use it with , but it does not need it). The package has a kernel supporting no language in particular and comes with support (syntax highlighting and other) for C, python and julia, in decreasing order.

The inline macro is \ncode{}, and the display ones \Code … \endCode, or \begin{Code} … \end{Code}. This package is much faster than the listings package, though for the time being it only comes with full support for C and to a lesser extent for python and julia. You are welcome to add support for other languages. You may take Tcode_example.tex and Tcode_julia.tex as templates.

Sources/macros/generic/tcode
Documentation
Version 2026-10-07
LicensesPublic Domain Software
MaintainerJavier A. Múgica
TopicsSyntax highlight
Verbatim
Listing

Download the contents of this package in one zip archive (166.2k).

Community Comments

Loading...
Guest Book Sitemap Contact Contact Author