title: Preferred way to convert reStructuredText to PDF
body: <p>I was searching for a simple way to convert a single .rst file to pdf with default styling, but couldn't find a way. Here is what I tried:</p>
  
  <h3>rst2pdf</h3>
  
  <p>I am getting a syntax error inside rst2pdf, probably written for python2 (which I don't have now):</p>
  
  <pre><code>File "/usr/local/lib/python3.5/dist-packages/rst2pdf/createpdf.py", line 695
    except ValueError, v:
                     ^
  </code></pre>
  
  <p><strike>It looks rst2pdf is not maintained anymore, the latest commit on github is from a year ago.</strike> (<em>Edit:</em> it IS maintained, see comments. Sorry for that, I was mistaken)</p>
  
  <h3>make latexpdf</h3>
  
  <p>This ought to generate pdf from all the documents, but whatever.. After installing some dependencies (<code>latexmk, texlive-latex-extra and texlive-full</code>), still gives me errors, like:</p>
  
  <pre><code>*geometry* driver: auto-detecting
  *geometry* detected driver: pdftex
  (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
  (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
  (./xdocument.out)
  (./xdocument.out)
  ! Undefined control sequence.
  \HyOrg@maketitle ...idth }{1pt}\ifsphinxpdfoutput 
                                                    \begingroup \def \\{, } \d...
  l.51 \sphinxtableofcontents
  
  ? 
  </code></pre>
  
  <p>Html generation just works fine (with <code>make html</code>). The makefile was not written by me, but it seems like some default provided by some sphinx tools. Is there an easy way to convert a single rst file to pdf?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I wonder why did pip3 allow me to install rst2pdf in he first place, but at the end I did it again using python2, and it works fine. So now the question is rather if there is a way to do it without rst2pdf.</p>