File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616from sphinx .util .docutils import SphinxDirective
1717from .nodes import unenumerable_node , NODE_TYPES
1818from .nodes import proof_node
19+ from .proof_type import DEFAULT_REALTYP_TO_COUNTERTYP
1920
2021logger = logging .getLogger (__name__ )
2122
2223
23- DEFAULT_REALTYP_TO_COUNTERTYP = {
24- "axiom" : "axiom" ,
25- "theorem" : "theorem" ,
26- "lemma" : "lemma" ,
27- "algorithm" : "algorithm" ,
28- "definition" : "definition" ,
29- "remark" : "remark" ,
30- "conjecture" : "conjecture" ,
31- "corollary" : "corollary" ,
32- "criterion" : "criterion" ,
33- "example" : "example" ,
34- "property" : "property" ,
35- "observation" : "observation" ,
36- "proposition" : "proposition" ,
37- "assumption" : "assumption" ,
38- "notation" : "notation" ,
39- }
40-
41-
4224class ElementDirective (SphinxDirective ):
4325 """A custom Sphinx Directive"""
4426
Original file line number Diff line number Diff line change @@ -119,6 +119,20 @@ class NotationDirective(ElementDirective):
119119 "notation" : NotationDirective ,
120120}
121121
122- DEFAULT_REALTYP_TO_COUNTERTYP = {}
123- for proof_type in PROOF_TYPES :
124- DEFAULT_REALTYP_TO_COUNTERTYP [proof_type ] = proof_type
122+ DEFAULT_REALTYP_TO_COUNTERTYP = {
123+ "axiom" : "axiom" ,
124+ "theorem" : "theorem" ,
125+ "lemma" : "lemma" ,
126+ "algorithm" : "algorithm" ,
127+ "definition" : "definition" ,
128+ "remark" : "remark" ,
129+ "conjecture" : "conjecture" ,
130+ "corollary" : "corollary" ,
131+ "criterion" : "criterion" ,
132+ "example" : "example" ,
133+ "property" : "property" ,
134+ "observation" : "observation" ,
135+ "proposition" : "proposition" ,
136+ "assumption" : "assumption" ,
137+ "notation" : "notation" ,
138+ }
You can’t perform that action at this time.
0 commit comments