Skip to content
Sections
>> Trisquel >> Packages >> etiona >> text >> ptex2tex
etiona  ]
[ Source: ptex2tex  ]

Package: ptex2tex (0.4-1)

easy generation of (possibly complex) LaTeX environments

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 the most recent version of the program code and its output!

With the default Ptex2tex configuration style, you can switch between 30+ styles for computer code within seconds and just recompile your LaTeX files. Even in a several-hundred pages book it takes seconds to consistently change various styles for computer code, terminal sessions, output from programs, etc. This means that you never have to worry about choosing a proper style for computer/verbatim code in your LaTeX document. Just use Ptex2tex and leave the decision to the future. It takes seconds to change your mind anyway.

Other Packages Related to ptex2tex

  • depends
  • recommends
  • suggests
  • dep: dpkg (>= 1.14.18)
    Debian package management system
  • dep: preprocess
    portable multi-language file preprocessor
  • dep: python (<< 2.8)
    interactive high-level object-oriented language (default version)
    dep: python (>= 2.7.1-0ubuntu2)
  • dep: python2.7
    Interactive high-level object-oriented language (version 2.7)
  • dep: tex-common (>= 2.00)
    common infrastructure for building and installing TeX
  • dep: texlive-latex-base
    TeX Live: LaTeX fundamental packages
  • dep: texlive-latex-extra
    TeX Live: LaTeX additional packages
  • dep: texlive-latex-recommended
    TeX Live: LaTeX recommended packages

Download ptex2tex

Download for all available architectures
Architecture Package Size Installed Size Files
all 27.9 kB180 kB [list of files]