Open main menu

Changes

2,257 bytes added ,  13:01, 5 September 2020
Created page with "Documentation for \in"
<cd:commandgroup name="in" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\in</tt> is used for referencing using a number.
</cd:shortdesc>
<cd:variants>
<cd:command category="references" file="strc-ref.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-references.xml" level="document" name="in" variantnumber="1">
<cd:arguments>
<cd:keywords delimiters="braces" optional="yes" ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:keywords>
<cd:keywords delimiters="braces" optional="yes" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:text"></cd:constant>
</cd:keywords>
<cd:keywords ordinal="3">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:reference"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>Inserts a reference to a location in the document which has been marked with a label (e.g. an equation, figure, section, enumerated item). This works only with numbered items! The curly-brace arguments contain prefix and suffix, the square brackets contain the label of the point/object/section to which you are referring.

After the prefix an automatic space is inserted in the output. If this is problematic, for instance because you want parentheses around a referenced number, see {{cmd||definereferenceformat}}. That command allows you to define your own <code>in</code>-like commands.

</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setuppapersize[A5]

\placeformula[eq:pythagoras]
\startformula
a^2+b^2=c^2
\stopformula

This is explained in \in{Equation}{.}[eq:pythagoras]
</context>
</cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="strc-ref.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:References"></cd:wikipage>
<cd:commandref name="at">to refer to a page containing a label</cd:commandref>
<cd:commandref name="about"> to insert the title of a referenced item</cd:commandref>
<cd:commandref name="definereferenceformat">for setting up your own reference commands</cd:commandref></cd:seealso>
</cd:commandgroup>