CTAN Comprehensive TeX Archive Network

comment2tex – Include annotated source files as listings

This package typesets source files that keep their documentation in special comments: doc-comment lines become ordinary , everything else becomes a listing. A Lua converter handles the transformation, and two wrappers, one for /Lua and one for plain , provide \includebash and \includelua to pull annotated Bash or Lua sources into the document. Under Lua the conversion runs in process; under pdf it uses shell escape or a separate pre-build run.

Sources/macros/generic/comment2tex
Documentation
Bug trackerhttps://github.com/Xerdi/comment2tex/issues
Repositoryhttps://github.com/Xerdi/comment2tex
Version1.0 2026-06-08
LicensesThe Project Public License 1.3c
Copyright2026 Erik Nijenhuis
MaintainerErik Nijenhuis
TopicsUse Lua
Documentation support
Literate programming
Verbatim
Use Lua
Listing

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

Community Comments

Loading...

Package Links

Guest Book Sitemap Contact Contact Author