Difference between revisions of "Command/reference"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \reference")
 
Line 20: Line 20:
 
</cd:description>
 
</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
 +
\setuppapersize[A8,landscape]
 
\starttext
 
\starttext
   See reference \ref[t][myref 1], the reference \in[myref 2],
+
   See reference \in[myref 1] on \at{page}[myref 1]
  and the reference on \at{page}[myref 3]
+
 
 
 
 
   \section{Section one}
 
   \section{Section one}
 
   \reference[myref 1]{MyRef1} This is the first reference.
 
   \reference[myref 1]{MyRef1} This is the first reference.
  
  \section{Section two}
 
  \reference[myref 2]{MyRef2} This is the second one.
 
 
  \section{Section two}
 
  \reference[myref 3]{MyRef3} This is the second one.
 
 
\stoptext
 
\stoptext
 
</context></cd:example></cd:examples>
 
</context></cd:example></cd:examples>
Line 40: Line 35:
 
<cd:commandref name="at"></cd:commandref>
 
<cd:commandref name="at"></cd:commandref>
 
<cd:commandref name="about"></cd:commandref>
 
<cd:commandref name="about"></cd:commandref>
<cd:commandref name="ref"></cd:commandref></cd:seealso>
+
<cd:commandref name="ref"></cd:commandref>
 +
<cd:commandref name="in"></cd:commandref>
 +
<cd:commandref name="textreference">for a command that is almost exactly identical</cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Revision as of 17:58, 5 September 2020


\reference

Summary

The command \reference is used for creating reference labels

Settings

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

Description

Creates a reference label to be used with \at, \about or \ref.

Examples

Example 1

\setuppapersize[A8,landscape]
\starttext
  See reference \in[myref 1] on \at{page}[myref 1]

  \section{Section one}
  \reference[myref 1]{MyRef1} This is the first reference.

\stoptext

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: