Difference between revisions of "Command/at"

From ConTeXt wiki
 
Line 6: Line 6:
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
== [[Help:Reference|Syntax]] (autogenerated) ==
 
<syntax>at</syntax>
 
<syntax>at</syntax>
 +
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
  

Latest revision as of 17:31, 10 November 2019

\at

Syntax (autogenerated)

\at{...}{...}[...]
{...}text
{...}text
[...]reference


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).

\setuppapersize[A5]

\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].

produces

See also

  • \about to insert the title of a referenced item.
  • \in to insert the number of a referenced item (e.g. figure number).
  • \setupinteraction to control the color and contrast color of links.

Help from ConTeXt-Mailinglist/Forum

All issues with: