Command/at

From ConTeXt wiki
Jump to: navigation, search

\at

Syntax

\at{...}{...}[ref]
{...} text
{...} text
[ref] name of the reference

Description

Inserts the page number of a location in the document which has been marked with a label (e.g. an equation, figure, section, enumerated item). The curly braces are optional and contain prefix and suffix, the square brackets contain the logical label to which you are referring.

First (optional) parameter
Prefix of the referenced label.
Second (optional) parameter
Suffix of the referenced label.

Example

The following example shows all three variants of the command \at.

Note: In the third sentence a whitespace after the referenced page number is forced with ~ (tilde).

\starttext

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

Pythagoras' theorem is shown on \at[eq:pythagoras].

Pythagoras' theorem is shown on \at{page}[eq:pythagoras].

Pythagoras' theorem is shown on \at{page}{~and page 2}[eq:pythagoras].

\stoptext

produces

See also

Help from ConTeXt-Mailinglist/Forum

All issues with:

C O N T E X T G A R D E N

Personal tools
Namespaces
Variants
Actions
Help
External Help
Installation
Navigation
Toolbox