How To Install texlive-pstricks on Ubuntu 18.04

In this tutorial we learn how to install texlive-pstricks on Ubuntu 18.04. texlive-pstricks is TeX Live

Introduction

In this tutorial we learn how to install texlive-pstricks on Ubuntu 18.04.

What is texlive-pstricks

texlive-pstricks is:

PSTricks core and all add-on packages.

This package includes the following CTAN packages:

auto-pst-pdf – Wrapper for pst-pdf (with some psfrag features)

bclogo – Creating colourful boxes with logos

dsptricks – Macros for Digital Signal Processing plots

makeplot – Easy plots from Matlab in LaTeX

pdftricks – Support for PSTricks in pdfTeX

pdftricks2 – Use PSTricks in pdfTeX

pedigree-perl – Generate TeX pedigree files from CSV files

psbao – Draw Bao diagrams

pst-2dplot – A PSTricks package for drawing 2D curves

pst-3d – A PSTricks package for tilting and other pseudo-3D tricks

pst-3dplot – Draw 3D objects in parallel projection, using PSTricks

pst-abspos – Put objects at an absolute position

pst-arrow – special arrows for PSTricks

pst-am – Simulation of modulation and demodulation

pst-antiprism – A PSTricks related package which draws an antiprism

pst-asr – Typeset autosegmental representations for linguists

pst-bar – Produces bar charts using PSTricks

pst-barcode – Print barcodes using PostScript

pst-bezier – Draw Bezier curves

pst-blur – PSTricks package for “blurred” shadows

pst-bspline – Draw cubic Bspline curves and interpolations

pst-calculate – Support for floating point operations at LaTeX level

pst-calendar – Plot calendars in “fancy” ways

pst-cie – CIE color space

pst-circ – PSTricks package for drawing electric circuits

pst-coil – A PSTricks package for coils, etc

pst-cox – Drawing regular complex polytopes with PSTricks

pst-dart – Plotting dart boards

pst-dbicons – Support for drawing ER diagrams

pst-diffraction – Print diffraction patterns from various apertures

pst-electricfield – Draw electric field and equipotential lines with PSTricks

pst-eps – Create EPS files from PSTricks figures

pst-eucl – Euclidian geometry with PSTricks

pst-exa – Typeset PSTricks examples, with code

pst-fill – Fill or tile areas with PSTricks

pst-fit – Macros for curve fitting

pst-fr3d – Draw 3-dimensional framed boxes using PSTricks

pst-fractal – Draw fractal sets using PSTricks

pst-fun – Draw “funny” objects with PSTricks

pst-func – PSTricks package for plotting mathematical functions

pst-gantt – Draw GANTT charts with PSTricks

pst-geo – Geographical Projections

pst-geometrictools – A PSTricks package to draw geometric tools

pst-ghsb – HSB gradients via PSTricks

pst-gr3d – Three dimensional grids with PSTricks

pst-grad – Filling with colour gradients, using PSTricks

pst-graphicx – A PSTricks-compatible graphicx for use with Plain TeX

pst-infixplot – Using PSTricks plotting capacities with infix expressions rather than RPN

pst-intersect – Compute intersections of arbitrary curves

pst-jtree – Typeset complex trees for linguists

pst-knot – PSTricks package for displaying knots

pst-labo – Draw objects for Chemistry laboratories

pst-layout – Page layout macros based on PSTricks packages

pst-lens – Lenses with PSTricks

pst-light3d – Three dimensional lighting effects (PSTricks)

pst-magneticfield – Plotting a magnetic field with PSTricks

pst-math – Enhancement of PostScript math operators to use with PSTricks

pst-mirror – Images on a spherical mirror

pst-node – Nodes and node connections in PSTricks

pst-ob3d – Three dimensional objects using PSTricks

pst-ode – Solving initial value problems for sets of Ordinary Differential Equations

pst-optexp – Drawing optical experimental setups

pst-optic – Drawing optics diagrams

pst-osci – Oscgons with PSTricks

pst-ovl – Create and manage graphical overlays

pst-pad – Draw simple attachment systems with PSTricks

pst-pdgr – Draw medical pedigrees using PSTricks

pst-pdf – Make PDF versions of graphics by processing between runs

pst-perspective – Draw perspective views using PSTricks

pst-platon – Platonic solids in PSTricks

pst-plot – Plot data using PSTricks

pst-poker – Drawing poker cards

pst-poly – Polygons with PSTricks

pst-pulley – Plot pulleys, using PSTricks

pst-qtree – Simple syntax for trees

pst-rputover – Place text over objects without obscuring background colors

pst-rubans – Draw three-dimensional ribbons

pst-shell – pst-shell: plotting sea shells

pst-sigsys – Support of signal processing-related disciplines

pst-slpe – Sophisticated colour gradients

pst-solarsystem – Plot the solar system for a specific date

pst-solides3d – Draw perspective views of 3D solids

pst-soroban – Draw a Soroban using PSTricks

pst-spectra – Draw continuum, emission and absorption spectra with PSTricks

pst-spinner – Drawing a fidget spinner

pst-spirograph – Drawing hypotrochoids as with a spirograph

pst-stru – Civil engineering diagrams, using PSTricks

pst-support – Assorted support files for use with PSTricks

pst-text – Text and character manipulation in PSTricks

pst-thick – Drawing very thick lines and curves

pst-tools – PSTricks support functions

pst-tree – Trees, using PSTricks

pst-tvz – Draw trees with more than one root node, using PSTricks

pst-uml – UML diagrams with PSTricks

pst-vectorian – Printing ornaments

pst-vehicle – A PSTricks package for rolling vehicles on graphs of mathematical functions

pst-vowel – Enable arrows showing diphthongs on vowel charts

pst-vue3d – Draw perspective views of three dimensional objects

pst2pdf – A script to compile PSTricks documents via pdfTeX

pstricks – PostScript macros for TeX

pstricks-add – A collection of add-ons and bugfixes for PSTricks

pstricks_calcnotes – Use of PSTricks in calculus lecture notes

uml – UML diagrams in LaTeX

vaucanson-g – PSTricks macros for drawing automata

vocaltract – Visualise the vocal tract using LaTeX and PSTricks

There are three methods to install texlive-pstricks on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install texlive-pstricks Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install texlive-pstricks using apt-get by running the following command:

sudo apt-get -y install texlive-pstricks

Install texlive-pstricks Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install texlive-pstricks using apt by running the following command:

sudo apt -y install texlive-pstricks

Install texlive-pstricks Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install texlive-pstricks using aptitude by running the following command:

sudo aptitude -y install texlive-pstricks

How To Uninstall texlive-pstricks on Ubuntu 18.04

To uninstall only the texlive-pstricks package we can use the following command:

sudo apt-get remove texlive-pstricks

Uninstall texlive-pstricks And Its Dependencies

To uninstall texlive-pstricks and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove texlive-pstricks

Remove texlive-pstricks Configurations and Data

To remove texlive-pstricks configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge texlive-pstricks

Remove texlive-pstricks configuration, data, and all of its dependencies

We can use the following command to remove texlive-pstricks configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge texlive-pstricks

References

Summary

In this tutorial we learn how to install texlive-pstricks package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.