CTAN Comprehensive TeX Archive Network

sty2dtx – Create a .dtx file from a .sty file

The package provides a Perl script that converts a .sty file ( package) to .dtx format (documented source), by surrounding macro definitions with macro and macrocode environments. The macro name is automatically inserted as an argument to the macro environemnt.

Code lines outside macro definitions are wrapped only in macrocode environments. Empty lines are removed.

The script should not be thought to be fool proof and 100% accurate but rather as a good start to the business of making a .dtx file from an undocumented style file.

Full .dtx files are generated. A template based on the skeleton file from dtxtut is used. User level macros are added automatically to the “Usage” section of the .dtx file. A corresponding .ins file can be generated as well.

Home pagehttps://github.com/MartinScharrer/sty2dtx
Bug trackerhttps://github.com/MartinScharrer/sty2dtx/issues
Version2.4 2022-10-18
LicensesGNU General Public License, version 3
Copyright2010–2022 Martin Scharrer
MaintainerMartin Scharrer
Contained inTeX Live as sty2dtx
MiKTeX as sty2dtx
TopicsPackage development
See alsomakedtx

Download the contents of this package in one zip archive (164.2k).

Community Comments



Here you can see a respective diagram in newer browsers.


Package Links

Guest Book Sitemap Contact Contact Author