comment2tex – Include annotated source files as LaTeX listings
This package typesets source files that keep their documentation in special comments: doc-comment lines become ordinary LaTeX, everything else becomes a listing. A Lua converter handles the transformation, and two TeX wrappers, one for LaTeX/LuaLaTeX and one for plain TeX, provide \includebash and \includelua to pull annotated Bash or Lua sources into the document. Under LuaLaTeX the conversion runs in process; under pdfLaTeX it uses shell escape or a separate pre-build run.
| Quellen | /macros/generic/comment2tex |
| Dokumentation | |
| Fehlermeldungen | |
| Repository | |
| Version | 1.1 2026-07-22 |
| Lizenzen | The LaTeX Project Public License 1.3c |
| Copyright | 2026 Erik Nijenhuis |
| Betreuer | Erik Nijenhuis |
| Enthalten in | TeX Live als comment2tex |
| Themen | Lua-Verwendung LuaTeX-Verwendung Literate Programming Dokumentation Listings Verbatim |
Herunterladen des vollständigen Inhalts dieses Pakets in einem Zip-Archiv (172.6k).
Ankündigungen
Vorschläge
Vielleicht sind auch die folgenden Pakete von Interesse.
Bewertungskommentare