Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stanislaw/1d5994a5a369fea749f6fb9fbea8a014 to your computer and use it in GitHub Desktop.
Save stanislaw/1d5994a5a369fea749f6fb9fbea8a014 to your computer and use it in GitHub Desktop.
How to generate PDF with Sphinx on macOS and Linux

How to generate PDF with Sphinx on macOS

Install BasicTex.

Add this to your Bash or Zsh:

export PATH="/Library/TeX/texbin/:$PATH"

Install missing Tex packages:

sudo tlmgr install capt-of needspace datetime fmtcount makecell eqparbox environ framed latexmk tabulary varwidth titlesec

On Linux

apt install texlive-xetex latexmk # only to generate PDF
pip3 install sphinx

For RTEMS docs, additionally:

sudo apt install texlive-fonts-extra
@mscuthbert
Copy link

I also needed to run

sudo tlmgr install latexmk tex-gyre fncychap wrapfig tabulary varwidth titlesec

but the PDF generated was still too corrupted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment