ptex2tex - easy generation of (possibly complex) LaTeX environments

Distribution: Ubuntu 16.04 LTS (Xenial Xerus)
Repository: Ubuntu Universe amd64
Package name: ptex2tex
Package version: 0.4
Package release: 1
Package architecture: all
Package type: deb
Installed size: 180 B
Download size: 27.91 KB
Official Mirror:
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.



    Binary package: ptex2tex_0.4-1_all.deb
    Source package: ptex2tex

    Install Howto

    1. Update the package index:
      # sudo apt-get update
    2. Install ptex2tex deb package:
      # sudo apt-get install ptex2tex


    • /usr/bin/ptex2tex
    • /usr/lib/python2.7/dist-packages/ptex2tex-0.4.egg-info
    • /usr/lib/python2.7/dist-packages/ptex2tex/
    • /usr/lib/python2.7/dist-packages/ptex2tex/ptex2tex.cfg
    • /usr/lib/python2.7/dist-packages/ptex2tex/envs/
    • /usr/share/doc/ptex2tex/README
    • /usr/share/doc/ptex2tex/TODO
    • /usr/share/doc/ptex2tex/changelog.Debian.gz
    • /usr/share/doc/ptex2tex/copyright
    • /usr/share/man/man1/ptex2tex.1.gz
    • /usr/share/pyshared/ptex2tex-0.4.egg-info
    • /usr/share/pyshared/ptex2tex/
    • /usr/share/pyshared/ptex2tex/ptex2tex.cfg
    • /usr/share/pyshared/ptex2tex/envs/
    • /usr/share/texmf/tex/latex/ptex2tex/note.eps
    • /usr/share/texmf/tex/latex/ptex2tex/note.fig
    • /usr/share/texmf/tex/latex/ptex2tex/ptex2tex.sty
    • /usr/share/texmf/tex/latex/ptex2tex/tip.eps
    • /usr/share/texmf/tex/latex/ptex2tex/tip.fig
    • /usr/share/texmf/tex/latex/ptex2tex/warning.eps
    • /usr/share/texmf/tex/latex/ptex2tex/warning.fig


    2011-09-13 - Johannes Ring <> ptex2tex (0.4-1) unstable; urgency=low * Initial release (closes: #641304)