Changes

Jump to navigation Jump to search
53 bytes added ,  18:45, 30 November 2009
no edit summary
In Plain-TeX there is the command \proclaim which is very handy when writing mathematics and stating Theorems, Lemmas, Definitions and so on. Unfortunately it doesn't allow one to number automatically these statements in order to refer to them through cross referencing, and somehow it has disappeared from ConTeXt.
If one wishes to number in a sequential way all these « proclaims » , here is a solution:
<texcode>
width=fit,
right={. }]
\setupnumber[proclaim][way=bysection,numbersection=yes]%% this can be changed according to one's wishes
%
%% end definition \proclaim
</texcode>
After having defined this , one can use it in the following way:
<texcode>
\starttext
When there is not a declared section , the numbers have no prefix as in the following:
\startproclaim[def:test]{Definition}
\section{Here is a section}
When there is a declared section , the numbers have as prefix the section number, as in the following:
\startproclaim{Lemme}
106

edits

Navigation menu