Commits

ral...@hp  committed 126e115

minor style fixes

  • Participants
  • Parent commits b9b7dc0

Comments (0)

Files changed (2)

File sphinx/builders/pdf.py

             tree.append(pb)
             tree.append(index_nodes)
 
+        # Page transitions
+        output='.. raw:: pdf\n\n    PageBreak\n\n'
+        pb=docutils.core.publish_doctree(output)[0]
+        output='.. raw:: pdf\n\n    PageBreak oneColumn\n\n'
+        pb_oneColumn=docutils.core.publish_doctree(output)[0]
+        output='.. raw:: pdf\n\n    PageBreak cutePage\n\n'
+        pb_cutePage=docutils.core.publish_doctree(output)[0]
+
+
         # Generate Contents topic manually
-      
-        output='.. raw:: pdf\n\n    PageBreak \n\n'
-        pb=docutils.core.publish_doctree(output)[0]
         contents=nodes.topic(classes=['contents'])
         contents+=nodes.title('')
         contents[0]+=nodes.Text( langmod.labels['contents'])
         pending=nodes.topic()
         contents.append(pending)
         pending.details={}
-        tree.insert(0,pb)
+        tree.insert(0,pb_cutePage)
         tree.insert(0,contents)
         contTrans=PDFContents(tree)
         contTrans.startnode=pending

File sphinx/config.py

 
         # PDF options
         pdf_documents = ([], None),
-        pdf_stylesheets = ([], None),
+        pdf_stylesheets = (['sphinx'], None),
         pdf_compressed = (False, None),
         pdf_font_path = ([], None),
         pdf_language = ('', 'en_US'),