资 源 简 介
What is Ptex2tex?
Ptex2tex is a tool that allows you to replace LaTeX environment
declarations with simple keywords. In a way, Ptex2tex allows you to
create LaTeX packages without any sophisticated knowledge on how to
write LaTeX packages. The idea behind Ptex2tex is code generation:
instead of hiding complicated LaTeX constructions in complex LaTeX
packages, one simply generates the necessary LaTeX commands on the fly,
from a compact begin-end environment indication in the LaTeX
source. This implies that you have to preprocess your LaTeX source to
make an ordinary LaTeX file that can be compiled in the usual way.
The main application of Ptex2tex is for inserting verbatim-style
computer code in LaTeX documents. Code can be copied directly from the
source files of the software (complete files or just snippets), and
output from programs can be created and copied into the documentation as
a part of running Ptex2tex. This guarantees that your LaTeX document
contains