Changes

Jump to navigation Jump to search
== Referencing formulae ==
Equations can be referred to by simply adding a label to {{cmd|placeformula}} and using command for referencing :* {{cmd|ref}} to create (note that it expects two arguments, therefore you need the reference:brackets twice),* {{cmd|in}} (a kind of <tt>\ref[number][TheRef]</tt>,* {{cmd|at}} (a kind of <tt>\ref[page][TheRef]</tt>.
<context source="yes" text="This, when typeset, produces the following:">
\stopplaceformula
And now we can refer to its numberby several ways, \startitemize\item with \tex{in} : formula \in[eq:myref], or \in{formula}{}[eq:myref] or refer to the \item with \tex{at} : formula \in[eq:myref] \at{page}[eq:myref], or last one \item with \tex{ref} : formula \ref[number] [eq:myref] page \ref[number] [eq:myref]
</context>
 
Note, that {{cmd|ref}} expects two arguments, therefore you need the brackets twice.
By default, only the formula number appears as a reference. This can be changed by using {{cmd|definereferenceformat}}. For example, to create a command <code>\eqref</code> which shows the formula number in brackets, use
1,047

edits

Navigation menu