Command/definereferenceformat

From ConTeXt wiki

\definereferenceformat

Syntax

\definereferenceformat[...][...,...=...,...]
[...] name
left text
right text
text text
label name
command command that accepts a label


Description

Predefine reference text, so that for example you won't have to type \in{Equation}[eq:somelabel] all the time.

Example 1

\setuppapersize[A6]

\definereferenceformat
   [ineq]
   [left=(,
    right=),
    text=Equation,]

\section{First section}
\section{Second section}

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

This is explained in \ineq[eq:pythagoras].

Example 2

\setuppapersize[A6]

\setuppagenumbering
   [conversion=A,               % pages A, B, C, ...
    location={header,inright}]  %

% tell the wiki's ConTeXt where to find the pictures
\setupexternalfigures[location=default] 

\definereferenceformat
    [atfig]
    [label=page,
     command=\at]

\mainlanguage[nl]
Het dier (\atfig[fig:cow]) is zwart en wit en geeft melk.\crlf
\mainlanguage[en]
The animal (\atfig[fig:cow]) is black and white and produces milk.


\placefigure[][fig:cow]{A beautiful cow}{\externalfigure[cow][width=2cm]}

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: