José Romildo Malaquias submitted back-to-back updates to the
pygmentex
package.
Versions: 0.12 2026-03-18 and 0.12.1 2026-03-19 License: lppl1.3
Summary description: Use Pygments to format code listings in documents
Announcement text: ----------------------------------------------------------------------
PygmenTeX v0.12.1 has been released.
PygmenTeX is a Python-based LaTeX package for typesetting code listings using the Pygments syntax highlighter. Unlike other packages, it collects all snippets and processes them in a single batch, significantly reducing compilation time.
CHANGES IN v0.12.1 (HOTFIX)
* List Margin Alignment: Fixed a critical regression where pygmented environments inside lists (itemize, enumerate, quotation) ignored parent margins. Code blocks now perfectly inherit the correct list indentation and line widths. * Robust Option Parsing: The Python backend's option parser has been completely rewritten to be brace-aware ({...}). This prevents Pygments from crashing when handling complex, comma-separated LaTeX arguments (such as advanced tcolorbox TikZ overlays).
RECENTLY ADDED IN v0.12
* autogobble Option: Introduced the highly requested autogobble feature. This automatically calculates and strips common leading whitespace from code snippets, allowing authors to natively indent their \begin{pygmented} blocks to match the surrounding LaTeX source code. * Modernized Parsing: Completely rewrote the internal LaTeX environment parser to safely preserve active newlines, resolving long-standing conflicts with fancyvrb.
For full documentation, please refer to the updated manual included in the package.
----------------------------------------------------------------------
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/pygmentex
The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/pygmentex/
----------------------------------------------------------------------
Thanks for the upload.
For the CTAN Team Vincent Goulet
----------------------------------------------------------------------
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