14

I generate a documentation from rst to pdf with latexpdf and sphinx.

How can I add some page break (=new page) in my PDF?

For now I use PageBreak but it only work with rst2pdf.

.. raw:: pdf

   PageBreak
Martin Thoma
  • 124,992
  • 159
  • 614
  • 958
Guillaume Vincent
  • 13,355
  • 13
  • 76
  • 103

2 Answers2

17

You can use raw latex.

.. raw:: latex

    \newpage
Cole
  • 1,699
  • 1
  • 17
  • 21
10

Maybe a slightly better solution, which also "flushes" all pending floats:

.. raw:: latex

    \clearpage
Andrej Debenjak
  • 1,774
  • 1
  • 15
  • 10