In article <[email protected]>, Roberto Alsina <[email protected]> wrote:
> On Tuesday 16 March 2010 20:41:48 Alaric Haag wrote: > > Hello all, > > > > I'm most grateful for the rst2pdf development! And love the hook into > > Sphinx, as it provides a nice alternative to the LaTeX route. > > > > I am unable to get page numbers on the PDF output when making the > > document from Sphinx (using the "make pdf" hack as documented). Page > > numbers are listed in the TOC and Index, but not on the individual pages. > > > > I've searched but only found this thread: > > > > http://www.mail-archive.com/[email protected]/msg02743.html > > > > which seems to leave the question unresolved. I'll apologize in advance > > if I've missed another post somewhere that answers this. > > > > I've fiddled with the stylesheet approach mentioned in the latter posts > > of the above thread, but am also unable to make it work. > > > > Any suggestions? > > This is fixed in 0.13.1 (even if it's not perfect), check this mini-sphinx- > project as an example: > > http://code.google.com/p/rst2pdf/source/browse/#svn/trunk/rst2pdf/tests/input/ > sphinx- > issue280 I really appreciate your quick response! Alas, I'm still having no luck... First, do I understand correctly that I put the "sphinx-mine.json" file in the "styles" sub-directory in the rst2pdf egg? That is, in: $PYTHONHOME/lib/python2.5/site-packages/rst2pdf-0.13-py2.5.egg/rst2pdf/st yles/ In review, I: - Made a fresh install of rst2pdf from the 0.13.1 tarball - Added the following style sheet in the "styles" directory as sphinx-mine.json { "pageTemplates" : { "customPage": { "frames": [ ["0%", "0%", "50%", "100%"] ], "showHeader" : true, "showFooter" : true, "defaultHeader" : "###Section###", "defaultFooter" : "###Page###" } } } - Added the following lines to the conf.py pdf_documents = [ ('index', u'MyManual', u'My Title', u'The Author'), ] pdf_stylesheets = ['sphinx','sphinx-mine'] pdf_break_level = 1 pdf_breakside = 'any' pdf_inline_footnotes = True pdf_use_index = True pdf_use_coverpage = True pdf_page_template = 'customPage' pdf_invariant = True - And ran "make pdf". Interestingly, when I add 'letter' to pdf_stylesheets, the page size does change from a4, but I am still seeing no page numbers. Many thanks for your help! -- You received this message because you are subscribed to the Google Groups "sphinx-dev" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
