These constants are used by Section 10.25, “hist.cgi: foMasters(): Set up the XSL-FO
page layout”
to define XSL-FO page masters as part of process of generating
the PDF.
Name of the simple-page-master for even pages.
EVEN_MASTER = 'even'
An fo.PageDims instance describing the layout
of odd pages. We start with the stock instance for letter
paper and modify the margins. The computation for width is:
51 picas - 4 picas left margin - 3 picas right margin = 44
picas.
ODD_DIMS = fo.pageDimsFactory(fo.PAPER_LETTER) ODD_DIMS.pageMargins.left = "4pc" ODD_DIMS.pageMargins.right = "3pc" ODD_DIMS.bodyMargins.top = "3pc" ODD_DIMS.bodyMargins.bot = "0pt"
An fo.PageDims instance for the layout of
even pages.
EVEN_DIMS = fo.pageDimsFactory(fo.PAPER_LETTER) EVEN_DIMS.pageMargins.left = "3pc" EVEN_DIMS.pageMargins.right = "4pc" EVEN_DIMS.bodyMargins.top = "3pc" EVEN_DIMS.bodyMargins.bot = "0pt"