Automatic Theorem Numbering
Can now refer to numbered theorems by \ref{...}, as in LaTeX
This commit is contained in:
parent
da81a2fbdb
commit
2fb41f12ce
7 changed files with 72 additions and 14 deletions
|
@ -17,12 +17,13 @@ table.plaintable {
|
|||
margin-left:30px;
|
||||
}
|
||||
.noborder td, .noborder th {border:0}
|
||||
body {counter-reset: theorem lemma proposition corollary example remark}
|
||||
body {counter-reset: theorem lemma proposition corollary definition example remark note}
|
||||
.un_theorem *, .num_theorem *,
|
||||
.un_lemma *, .num_lemma *,
|
||||
.un_prop *, .num_prop *,
|
||||
.un_cor *, .num_cor * {font-style: italic}
|
||||
span.theorem_label {font-style:normal; font-weight:bold;}
|
||||
.proof span.theorem_label {font-style:italic;}
|
||||
.num_theorem .theorem_label:after {
|
||||
content: " " counter(theorem); counter-increment: theorem;}
|
||||
.num_lemma .theorem_label:after {
|
||||
|
@ -31,7 +32,11 @@ span.theorem_label {font-style:normal; font-weight:bold;}
|
|||
content: " " counter(proposition); counter-increment: proposition;}
|
||||
.num_cor .theorem_label:after {
|
||||
content: " " counter(corollary); counter-increment: corollary;}
|
||||
.num_defn .theorem_label:after {
|
||||
content: " " counter(definition); counter-increment: definition;}
|
||||
.num_example .theorem_label:after {
|
||||
content: " " counter(example); counter-increment: example;}
|
||||
.num_remark .theorem_label:after {
|
||||
content: " " counter(remark); counter-increment: remark;}
|
||||
.num_note .theorem_label:after {
|
||||
content: " " counter(note); counter-increment: note;}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue