[pyar] OT: rst

Sebastian Bassi sebastian.bassi en globant.com
Mie Dic 15 10:37:12 ART 2010


2010/12/15 Rodolfo Hugo González <lu8ekg en gmail.com>

>
> No he encontrado la forma de hacer que al usar *rst2pdf* me numero las
> hojas.
> Alguien me puede tirar una cuerda? Ando contra reloj para la entrega de
> los trabajos... y me atranqué con ese tema.
>
>
Encontré esto que parece relevante:

Headers and Footers
===================

ReST supports headers and footers, using the header and footer directive::

  .. header::

     This will be at the top of every page.

Often, you may want to put a page number there, or a section name.The following
magic tokens will be replaced (More may be added as rst2pdf evolves):

###Page###
    Replaced by the current page number.
###Title###
    Replaced by the document title
###Section###
    Replaced by the currect section title
###SectNum###
    Replaced by the currect section number. **Important:** You must
use the sectnum directive for this to work.
###Total###
    Replaced by the total number of pages in the document. Keep in
mind that this is the **real** number of pages, not the displayed
number, so if you play with `page counters`_ this number will probably
be wrong.

Headers and footers are visible by default but they can be disabled by specific
`Page Templates`_ for example, cover pages. You can also set headers and footers
via `command line options` or the `configuration file`_.

If you want to do things like "put the page number on the *out* side
of the page, check `The oddeven directive`_
------------ próxima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: <http://listas.python.org.ar/pipermail/pyar/attachments/20101215/d8760b32/attachment.html>


More information about the pyar mailing list