Tcode – Typesetting verbatim code: C, python,…
This is a package for typesetting code (e.g., C, python, julia,…). pdfTeX is enough for it (you can use it with LaTeX, 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 |
| Licenses | Public Domain Software |
| Maintainer | Javier A. Múgica |
| Topics | Syntax highlight Verbatim Listing |
Download the contents of this package in one zip archive (166.2k).
Suggestions
Maybe you are interested in the following packages as well.
Community Comments