You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/options.md
+51-1Lines changed: 51 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,6 @@ sphinx:
31
31
32
32
Add `proof_minimal_theme = True` to your `conf.py`
33
33
34
-
35
34
## Shared numbering
36
35
37
36
By default, each type of (prf-)directive has their own numbering and counter. This can be changed by setting the option `prf_realtyp_to_countertyp` to a dictionary associating to a directive which the counter of which directive it should use.
@@ -86,3 +85,54 @@ prf_realtyp_to_countertyp = {
86
85
87
86
The `lemma` and `theorem` directives share a counter, however the `conjecture` directive has a separate counter (the `lemma` counter which is **not** used by `lemma` directives).
88
87
````
88
+
89
+
## Title format
90
+
91
+
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.
92
+
93
+
If no title is provided, only `Name x.y.z` is displayed.
94
+
95
+
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.
96
+
97
+
In the reminder we call the part `Name x.y.z` the "number" and the part `(Title)` the "title".
98
+
99
+
You can customize the title format using the `proof_title_format` option:
100
+
101
+
- This option allows you to define how the title should be displayed by using `%t` as a placeholder for the user-provided title.
102
+
- The default format is ` (%t)`.
103
+
- A value of an empty string will result in no title being displayed.
104
+
- A `markdown` string can be used to format the title.
105
+
- For example, ` *%t*` will emphasize the title and contain no brackets.
106
+
107
+
Note that the initial part of the title (i.e., `Name x.y.z`) is not customizable and will always be displayed.
108
+
109
+
The font weight of the title can be adjusted using the `proof_title_weight` option:
110
+
111
+
- Any valid CSS font-weight value can be used, such as `normal`, `bold`, `bolder`, `lighter`, or numeric values like `400`, `700`, etc.
112
+
- Default value is `var(--pst-admonition-font-weight-heading)`.
113
+
114
+
The font weight of the number can be adjusted using the `proof_number_weight` option:
115
+
- Any valid CSS font-weight value can be used, such as `normal`, `bold`, `bolder`, `lighter`, or numeric values like `400`, `700`, etc.
116
+
- Default value is `var(--pst-admonition-font-weight-heading)`.
117
+
118
+
### Jupyter Book Project
119
+
120
+
Add `proof_title_format`, `proof_number_weight` and/or `proof_title_weight` to your `_config.yml`
121
+
122
+
```yaml
123
+
sphinx:
124
+
config:
125
+
proof_title_format: " *%t*"
126
+
proof_number_weight: "bold"
127
+
proof_title_weight: "normal"
128
+
```
129
+
130
+
### Sphinx Project
131
+
132
+
Add `proof_title_format`, `proof_number_weight` and/or `proof_title_weight` to your `conf.py`
0 commit comments