DEV Community

Mohamed M El-Kalioby
Mohamed M El-Kalioby Subscriber

Posted on • Edited on

1

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)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay