How to Install and Uninstall ptex2tex Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 02,2024

1. Install "ptex2tex" package

This is a short guide on how to install ptex2tex on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install ptex2tex

2. Uninstall "ptex2tex" package

This is a short guide on how to uninstall ptex2tex on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove ptex2tex $ sudo apt autoclean && sudo apt autoremove

3. Information about the ptex2tex package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: ptex2tex
Priority: optional
Section: universe/text
Installed-Size: 180
Maintainer: Ubuntu Developers
Original-Maintainer: Python Applications Packaging Team
Architecture: all
Version: 0.4-1
Depends: preprocess, texlive-latex-base, texlive-latex-recommended, texlive-latex-extra, python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8), dpkg (>= 1.14.18), tex-common (>= 2.00)
Recommends: python-pygments
Filename: pool/universe/p/ptex2tex/ptex2tex_0.4-1_all.deb
Size: 28582
MD5sum: a0776fa170d62077eefba33c8fecd2bf
SHA1: 4d9bc54d28d80cf3c5cb0c36e786b036232990f9
SHA256: cd3dae0cba585adbef24f7ed35f48d35924381e95586646d7d9e5238f1f54752
Description-en: 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.
Description-md5: 26ad7b7991eaebc55eee43f70f35fc3a
Homepage: http://ptex2tex.googlecode.com
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu