-
I am trying to modify the font size for a paragraph with a specific style, however I don't find the right syntax. Take this example rinohtype/src/rinoh/template.py Line 343 in 7b03425 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The default matcher defines a style label for Paragraph with [title page subtitle]
base = body
font_size = 10pt Have a look at the Sphinx style sheet to get an idea of which style labels are available and the style properties they support. See the reference documentation for the full list of style labels and the properties supported by each of the style classes. If you introduce Paragraph instances with a custom style in your template; e.g. [my paragraph : Paragraph('my style')]
base = body
font_size = 10pt Within the brackets, 'my paragraph' is the style label, and 'my style' should match what is passed to Paragraph's style argument. |
Beta Was this translation helpful? Give feedback.
The default matcher defines a style label for Paragraph with
style='title page subtitle'
. The style label is also named title page subtitle. So for this paragraph, you can create a style definition in your style sheet like this:Have a look at the Sphinx style sheet to get an idea of which style labels are available and the style properties they support. See the reference documentation for the full list of style labels and the properties supported by each of the style classes.
If you introduce Paragraph instances with a custom style in your template; e.g.
Paragraph('hello', style='my style')
, you need to include a selector in the style sh…