DEV Community

Mohamed M El-Kalioby
Mohamed M El-Kalioby Subscriber

Posted on • Updated on

Sphinx Documentation as PDF on Ubuntu 18.04/20.04

Alt Text

I've been using Sphinx for sometime to document the source code and I decided to generate a PDF this time rather the HTML and I faced a lot of missing dependencies, the article will show how to handle that on Ubuntu 16.04/20.04.

First, to generate a pdf in sphinx use

make latexpdf

The following steps for Ubuntu 18.04

  1. Install latex
    sudo apt install latexmk

  2. Adding some recommeded packages and fonts

sudo apt-get install texlive-latex-recommended texlive-fonts-recommended texlive texlive-science texlive-formats-extra

Top comments (0)