Settings ======== The ```` element configures document-level options such as page format, section ratios, and custom fonts. Page Format ----------- .. code-block:: xml .. list-table:: :header-rows: 1 :widths: 20 15 65 * - Attribute - Type - Description * - ``page_size`` - string - ``A3``, ``A4``, ``A5``, ``Letter``, or ``Legal``. * - ``page_orientation`` - string - ``portrait`` or ``landscape``. * - ``header_ratio`` - float - Header height as a fraction of the page (default ``0.06``). * - ``body_ratio`` - float - Body height fraction (default ``0.88``). * - ``footer_ratio`` - float - Footer height fraction (default ``0.06``). Custom Fonts ------------ Register external TTF fonts so they can be used by ```` nodes: .. code-block:: xml Each ```` declares a family name. Inside, you provide up to four variant files: - ```` — regular weight - ```` — bold weight - ```` — italic style - ```` — bold italic Each variant requires a ``src`` attribute pointing to a ``.ttf`` file.