Options#
Minimal color scheme#
This package has the option to choose a more minimal color scheme.
The aim is to create admonitions that are clearly different to the core text with colors that do not over emphasises the admonition such as
compared to the current default
To enable the minimal color scheme you can use the following.
Jupyter Book Project#
Add proof_minimal_theme = True to your _config.yml
sphinx:
config:
proof_minimal_theme: true
Sphinx Project#
Add proof_minimal_theme = True to your conf.py
Title format#
By default, the directive titles are formatted as Name x.y.z (Title), where Name is the name of the directive (e.g., Proof, Theorem, Definition), x.y.z is the numbering of the directive, and Title is the optional title provided by the user.
If no title is provided, only Name x.y.z is displayed.
The font weight of the entire title (Name x.y.z (Title) or Name x.y.z) is set to --pst-admonition-font-weight-heading by default, which commonly results in a semi-bold appearance.
In the reminder we call the part Name x.y.z the “number” and the part (Title) the “title”.
You can customize the title format using the proof_title_format option:
This option allows you to define how the title should be displayed by using
%tas a placeholder for the user-provided title.The default format is
(%t).A value of an empty string will result in no title being displayed.
A
markdownstring can be used to format the title.For example,
*%t*will emphasize the title and contain no brackets.
Note that the initial part of the title (i.e., Name x.y.z) is not customizable and will always be displayed.
The font weight of the title can be adjusted using the proof_title_weight option:
Any valid CSS font-weight value can be used, such as
normal,bold,bolder,lighter, or numeric values like400,700, etc.Default value is
var(--pst-admonition-font-weight-heading).
The font weight of the number can be adjusted using the proof_number_weight option:
Any valid CSS font-weight value can be used, such as
normal,bold,bolder,lighter, or numeric values like400,700, etc.Default value is
var(--pst-admonition-font-weight-heading).
Jupyter Book Project#
Add proof_title_format, proof_number_weight and/or proof_title_weight to your _config.yml
sphinx:
config:
proof_title_format: " *%t*"
proof_number_weight: "bold"
proof_title_weight: "normal"
Sphinx Project#
Add proof_title_format, proof_number_weight and/or proof_title_weight to your conf.py
proof_title_format = " *%t*"
proof_number_weight = "bold"
proof_title_weight = "normal"