Difference between revisions of "Command/in"

From ConTeXt wiki
Jump to navigationJump to search
(Add note about definereferenceformat; narrower example)
m
Line 29: Line 29:
  
 
== Example ==
 
== Example ==
<context source="yes">
+
<context source="yes" mode=mkiv>
\setupppapersize[A5]
+
\setuppapersize[A5]
  
 
\placeformula[eq:pythagoras]
 
\placeformula[eq:pythagoras]

Revision as of 14:55, 31 October 2012

\in

Syntax

\in{...}{...}[ref]
{...} text before
{...} text after
[ref]


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). The curly-brace arguments contain prefix and suffix, the square brackets contain the label of the point/object/section to which you are referring.

Example

\setuppapersize[A5]

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

This is explained in \in{Equation}{.}[eq:pythagoras]

See also

  • \at to refer to a page containing a label.
  • \about to insert the title of a referenced item.
  • \definereferenceformat for setting up your own references (e.g. for figures). If you tried to parenthesize the equation number with \in{Equation (}{)}[eq:somelabel] and were frustrated by the space after the opening parenthesis, this is the place to look.

Help from ConTeXt-Mailinglist/Forum

All issues with: