AZ logo

Package sty2dtx:
Create a .dtx file from a .sty file.

The package provides a Perl script that converts a .sty file (LaTeX package) to .dtx format (documented LaTeX 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.

Getting it

If possible, get this package from your distribution using its installation manager. (For installation help, click on your distribution's name.)

Distribution Package name
MiKTeX sty2dtx
TeX Live sty2dtx

You can also visit sty2dtx's CTAN directory to browse the source or download the material for installation by hand.

More

Documentation on CTAN
Readme
Documentation off CTAN -none known-
Maintainers
Martin Scharrer
Version 2.1
License GNU General Public License (GPL), version 3 or later
Related packages
makedtx:
Perl script to help generate dtx and ins files
Keywords
literate programming
macro programming
Characterizations
primary:
Literate programming
secondary:
Programming in TeX > Other

You can suggest changes to the keywords and characterizations and the maintainer information.

You can get information about any package.