CTAN Comprehensive TeX Archive Network

CTAN tug.ctan.org upload: sty2dtx

Date: January 29, 2011 8:12:02 AM CET
This should be at your local mirror. Jim Hef{}feron Saint Michael's College .......................................................................... The following information was provided by our fellow contributor: Name of contribution: sty2dtx Version number: v1.0 Author's name: Martin Scharrer Location on CTAN: /support/sty2dtx Summary description: Perl script to add a .sty to a .dtx file (code section only) License type: gpl Announcement text:
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 is not thought to be fool proof and 100% accurate but rather as a good start to convert undocumented style file to .dtx files. It does not generate a complete .dtx file, just the code section.
This package is at http://tug.ctan.org/tex-archive/support/sty2dtx . Information is at http://tug.ctan.org/pkg/sty2dtx (it may take a day for the information to appear). We are supported by the TeX Users Group http://www.tug.org . For your users group see http://www.tug.org/usergroups.html .

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.

Packagesty2dtx
Version2.3
Copyright2010–2011 Martin Scharrer
MaintainerMartin Scharrer

Announcements

more

Guest Book Sitemap Contact Contact Author