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 tracker
Repository
Version1.0 2026-06-08
LicensesThe Project Public License 1.3c
Copyright2026 Erik Nijenhuis
MaintainerErik Nijenhuis
Contained inTeX Live as comment2tex
TopicsDocumentation support
Verbatim
Use Lua
Listing
Literate programming
Use Lua

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

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Package Links

Guest Book Sitemap Contact Contact Author