Article¶
The article template consists of a title page, an optional table of contents and the body text. By default, it uses a single numbering style for all pages and the same template for even and odd pages.
-
class rinoh.templates.article.Article(document_tree, configuration=
None, backend=None)¶ - stylesheet¶
The stylesheet to use for styling document elements (inherited from
DocumentTemplate)Accepts
StyleSheet: the name of an installed style sheet or the filename of a stylesheet file (with the.rtsextension)Default:
sphinx_article(=rinoh.stylesheets.sphinx_article) (overridesDocumentTemplatedefault)
- abstract_location¶
Where to place the abstract
Accepts
AbstractLocation:title,bodyDefault:
title
- parts¶
The parts making up this document (inherited from
DocumentTemplate)Accepts
PartsList: a space-separated list of document part template namesDefault:
contents(overridesDocumentTemplatedefault)
- language¶
The main language of the document (inherited from
DocumentTemplate)Accepts
Language: the code of one of the supported languagesDefault:
EN(English)
- strings¶
Strings to override standard element names (inherited from
DocumentTemplate)Accepts
Strings: strings need to be entered in INI in a section named ‘STRINGS’Default:
none
- Attributes¶
contents (
ArticleContentsPartTemplate): base:NoneOverrides these defaults:
page_number_format=number
page (
ArticleBodyPageTemplate): base:NoneOverrides these defaults:
page_size=$(paper_size)left_margin=1.2cmright_margin=1.2cmtop_margin=1.8cmbottom_margin=1.6cmheader_footer_distance=2pt
contents_page (
ArticleBodyPageTemplate): base:page
- Configuration¶
alias of
ArticleConfiguration
- ConfigurationFile¶
alias of
ArticleConfigurationFile
- class rinoh.templates.article.AbstractLocation¶
Where to place the article’s abstract
Accepts:
title,body