Difference between revisions of "Command/textreference"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \textreference")
 
 
(2 intermediate revisions by one other user not shown)
Line 17: Line 17:
 
   </cd:command>
 
   </cd:command>
 
</cd:variants>
 
</cd:variants>
<cd:description>Creates an invisible, referencable anchor text on the page. This anchor can later be referenced with commands like {{cmd|at}} and {{cmd|about}}.
+
<cd:description>Creates a reference label.</cd:description>
</cd:description>
 
 
<cd:examples><cd:example title=""><context source="yes" text="produces">
 
<cd:examples><cd:example title=""><context source="yes" text="produces">
 
\setuppapersize[A8,landscape]
 
\setuppapersize[A8,landscape]
 
\starttext
 
\starttext
The various \textreference[houses]{canal houses} houses at the canal have nice interior.  
+
The various\textreference[houses]{canal houses} houses at the canal have nice interior.
  
 
See \about[houses] on \at{page}[houses] for more information on the houses.
 
See \about[houses] on \at{page}[houses] for more information on the houses.
Line 33: Line 32:
 
<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="pagereference">sets an anchor for page numbers only</cd:commandref></cd:seealso>
+
<cd:commandref name="pagereference">sets an anchor for page numbers only</cd:commandref>
 +
<cd:commandref name="reference">for a command that is almost exactly identical</cd:commandref>
 +
<cd:commandref name="in"></cd:commandref>
 +
<cd:commandref name="ref"></cd:commandref></cd:seealso>
 
</cd:commandgroup>
 
</cd:commandgroup>

Latest revision as of 08:26, 30 October 2021


\textreference

Summary

The command \textreference is used for creating reference anchors

Settings

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

Description

Creates a reference label.

Examples

Example 1

\setuppapersize[A8,landscape]
\starttext
The various\textreference[houses]{canal houses} houses at the canal have nice interior.

See \about[houses] on \at{page}[houses] for more information on the houses.
\stoptext

produces

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: