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
+60-2Lines changed: 60 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Options
2
2
3
+
## Minimal color scheme
4
+
3
5
This package has the option to choose a more **minimal** color scheme.
4
6
5
7
The aim is to create admonitions that are clearly different to the core text with
@@ -15,7 +17,7 @@ compared to the current default
15
17
16
18
To enable the `minimal` color scheme you can use the following.
17
19
18
-
## Jupyter Book Project
20
+
###Jupyter Book Project
19
21
20
22
Add `proof_minimal_theme = True` to your `_config.yml`
21
23
@@ -25,6 +27,62 @@ sphinx:
25
27
proof_minimal_theme: true
26
28
```
27
29
28
-
## Sphinx Project
30
+
### Sphinx Project
29
31
30
32
Add `proof_minimal_theme = True` to your `conf.py`
33
+
34
+
35
+
## Shared numbering
36
+
37
+
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.
38
+
39
+
### Sphinx Project
40
+
41
+
In `conf.py`, e.g. to have a shared counter for all directives:
42
+
43
+
```
44
+
prf_realtyp_to_countertyp = {
45
+
"axiom": "theorem",
46
+
"theorem": "theorem",
47
+
"lemma": "theorem",
48
+
"algorithm": "theorem",
49
+
"definition": "theorem",
50
+
"remark": "theorem",
51
+
"conjecture": "theorem",
52
+
"corollary": "theorem",
53
+
"criterion": "theorem",
54
+
"example": "theorem",
55
+
"property": "theorem",
56
+
"observation": "theorem",
57
+
"proposition": "theorem",
58
+
"assumption": "theorem",
59
+
"notation": "theorem",
60
+
}
61
+
```
62
+
63
+
In the following case, the directives `lemma`, `conjecture`, `corollary` and `proposition` will share the counter with `theorem`, while `axiom` and `assumption` will share the counter with `definition`. All other directives would use their original counter.
64
+
65
+
66
+
```
67
+
prf_realtyp_to_countertyp = {
68
+
"lemma": "theorem",
69
+
"conjecture": "theorem",
70
+
"corollary": "theorem",
71
+
"proposition": "theorem",
72
+
"axiom": "definition",
73
+
"assumption": "definition",
74
+
}
75
+
```
76
+
77
+
````{warning}
78
+
The association of a counter to a directive is not transitive: Let us consider the following configuration:
79
+
80
+
```
81
+
prf_realtyp_to_countertyp = {
82
+
"lemma": "theorem",
83
+
"conjecture": "lemma",
84
+
}
85
+
```
86
+
87
+
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).
0 commit comments