惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
G
Google Developers Blog
博客园 - 三生石上(FineUI控件)
B
Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
V
V2EX
Vercel News
Vercel News
U
Unit 42
Recent Announcements
Recent Announcements
Last Week in AI
Last Week in AI
J
Java Code Geeks
WordPress大学
WordPress大学
罗磊的独立博客
I
InfoQ
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
M
MIT News - Artificial intelligence
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Apple Machine Learning Research
Apple Machine Learning Research
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG

ctan-ann

New on CTAN: na-tikzornament New on CTAN: boustrophedon CTAN update: menukeys CTAN update: LXGW-fonts CTAN update: pst-barcode CTAN update: tabularht CTAN update: oberdiek CTAN update: dtk-bibliography New on CTAN: na-cover CTAN update: beamer-varbox New on CTAN: plain-grid CTAN update: pas-tableur CTAN update: nicematrix New on CTAN: screenwriter New on CTAN: na-fancyborders New on CTAN: babel-kazakh CTAN update: newpax CTAN update: colortbl CTAN update: abntexto CTAN update: dccpaper CTAN update: utbmciad-report CTAN update: spim-phdthesisthemes CTAN update: latex-base-dev New on CTAN: na-urmborder CTAN update: gia-handout New on CTAN: na-pageborder CTAN update: genealogytree CTAN update: sblfonts CTAN update: mp-gears CTAN update: contract
ann - New on CTAN: comment2tex
Contact Author · 2026-06-09 · via ctan-ann

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

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.

Packagecomment2tex
Version1.0 2026-06-08
Copyright2026 Erik Nijenhuis
MaintainerErik Nijenhuis

Announcements

more