STY2DTX(1) sty2dtx - .sty .dtx (VERSION) : v2.4 - 2022/10/18 (LINKS) CTAN: https://ctan.org/pkg/sty2dtx : https://github.com/MartinScharrer/sty2dtx : https://github.com/MartinScharrer/sty2dtx/issues (COPYRIGHT) (c) 2010-2022 Martin Scharrer : << >> (GNU General Public License) ( ) . . << GNU>> . << GNU>> . . (DESCRIPTION) .sty ( LaTeX) 'macro' 'macrocode' .dtx ( LaTeX) . 'macro' . 'macrocode' . . (style) .dtx . (Basic Usage) perl sty2dtx.pl infile [infile ...] outfile perl sty2dtx.pl < file.sty > file.dtx (Supported Definitions) ( \global \long \protected / \outer ): \def \edef \gdef \xdef \newcommand{\name} \newcommand*{\name} \newcommand\name \newcommand*\name \renewcommand{\name} \renewcommand*{\name} \renewcommand\name \renewcommand*\name \providecommand{\name} \providecommand*{\name} \providecommand\name \providecommand*\name \@namedef{\name} \@namedef\name : \newenvironment{name} \renewenvironemnt{name} \provideenvironment{name} '"}"' . (USAGE) sty2dtx [] [--= ...] [--] [] [] (Files) o STDIN STDOUT '"-"' o .SS " (Variables)" --= -- . : author, email, maintainer, year ( ), version, date, description ( /), type ( 'package' 'class'), filebase ( ), (Options) -h -H -V -v ( ) -o output -O () -B -I .ins () -c ( v1.0) -r 'macro' 'macrocode' . -R 'macro' 'macrocode' . -i ins-file .ins -t template -T template .ins -e file .dtx -E file .ins -D -F file . -N (Config files) 'sty2dtx.cfg' '.sty2dtx.cfg' . . 'texmf' 'sty2dtx.cfg' . -F . '"%"' '"#"' . (EXAMPLES) 'file.dtx' 'file.sty': sty2dtx.pl < file.sty > file.dtx sty2dtx.pl file.sty file.dtx sty2dtx.pl -B file.sty 'file.dtx' 'file.ins' 'file.sty': sty2dtx.pl -I file.sty file.dtx sty2dtx.pl file.sty -i file.sty file.dtx sty2dtx.pl -IB file.sty : sty2dtx.pl --author Me --email me@there.com mypkg.sty mypkg.dtx DTX : sty2dtx.pl --type class mycls.sty mycls.dtx Martin Scharrer : martin.scharrer@web.de : perl v5.30.0 2022-10-18 STY2DTX(1)