Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

sphinx add a page break in my pdf with latexpdf?

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
like image 322
Guillaume Vincent Avatar asked Sep 30 '14 12:09

Guillaume Vincent


2 Answers

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

.. raw:: latex

    \clearpage
like image 181
Andrej Debenjak Avatar answered Nov 11 '22 05:11

Andrej Debenjak


You can use raw latex.

.. raw:: latex

    \newpage
like image 29
Cole Avatar answered Nov 11 '22 04:11

Cole