The docext package is an extension for documenting LaTeX source files.
It provides
- An elegant way to typeset the
key-valuelist. - The
codedemoenviornment for typesetting the code within averbatimand ademoenvironment at the same time.
It fixes the drawbacks of the doc package under
- The engines:
pTeXandupTeX. - The classes:
bookandreport(or any class uses thetitlepageenvironment in\maketitle)
In the l3doc class, it resets the counter of section at the beginning of the
documentation environment to support the bilingual manuals.
This package is based on the doc package and works smoothly under the l3doc,
ltxdoc, and article classes.
To load this template, write the line
\usepackage[<options>]{docext}
See docext.pdf for more. Happy TeXing!
The issue tracker for docext is currently located
on GitHub.
This project uses GitHub Actions as a hosted continuous integration service. For each commit, the build status is tested using the current release of TeX Live.
Copyright (C) 2026 by Mingyu Xia
<myhsia@outlook.com>
This work may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this license or (at your option) any later version. The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of LaTeX version 2008 or later.
This work has the LPPL maintenance status maintained.
The Current Maintainer of this work is Mingyu Xia.