New on CTAN: comment2tex
Date: June 9, 2026 1:38:03 PM CEST
Erik Nijenhuis submitted the
comment2tex
package.
Version: 1.0 2026-06-08
License: lppl1.3c
Summary description: Include annotated source files as LaTeX listings
Announcement text:
The comment2tex package (v1.0) I am pleased to announce the first release of comment2tex. comment2tex typesets a source file that keeps its 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 a document. Under LuaLaTeX the conversion runs in process; under pdfLaTeX it uses shell escape or a separate pre-build run. The package is distributed under the LaTeX Project Public License 1.3c. Erik Nijenhuis
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/comment2tex The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/generic/comment2tex/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
The comment2tex package (v1.0) I am pleased to announce the first release of comment2tex. comment2tex typesets a source file that keeps its 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 a document. Under LuaLaTeX the conversion runs in process; under pdfLaTeX it uses shell escape or a separate pre-build run. The package is distributed under the LaTeX Project Public License 1.3c. Erik Nijenhuis
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/comment2tex The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/generic/comment2tex/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs
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.
| Package | comment2tex |
| Version | 1.0 2026-06-08 |
| Copyright | 2026 Erik Nijenhuis |
| Maintainer | Erik Nijenhuis |