Difference between revisions of "Command/textreference"

From ConTeXt wiki
Jump to navigationJump to search
m (cleanup)
 
(13 intermediate revisions by 4 users not shown)
Line 4: Line 4:
 
}}
 
}}
  
 +
== [[Help:Reference|Syntax]] (autogenerated) ==
 +
<syntax>textreference</syntax>
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 22: Line 24:
 
== Description ==  
 
== Description ==  
  
 +
Creates an invisible, referencable anchor text on the page. This anchor can later be referenced with commands like {{cmd|at}} and {{cmd|about}}.
  
 +
== Example ==
 +
<context source="yes" text="produces">
 +
\setuppapersize[A5]
 +
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.
  
== Example ==
+
</context>
<!-- Please fill in an example if you can -->
 
  
 
== See also ==
 
== See also ==
<!-- something like [[cmd:goto|\goto]] -->
+
* {{cmd|about}} - Inserts title of a referenced item.
 +
* {{cmd|at}} - Inserts page number of a referenced item.
 +
* {{cmd|pagereference}} - sets an anchor for page numbers only
 +
 
 +
== Help from ConTeXt-Mailinglist/Forum ==
 +
All issues with:
 +
{{Forum|{{SUBPAGENAME}}}}
  
[[Category:Reference/en|textreference]]
+
[[Category:Command/Cross-References|textreference]]

Latest revision as of 14:36, 13 October 2019

\textreference

Syntax (autogenerated)

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


Syntax

\textreference[ref]{...}
[ref]
{...} text


Description

Creates an invisible, referencable anchor text on the page. This anchor can later be referenced with commands like \at and \about.

Example

\setuppapersize[A5]
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.

produces

See also

  • \about - Inserts title of a referenced item.
  • \at - Inserts page number of a referenced item.
  • \pagereference - sets an anchor for page numbers only

Help from ConTeXt-Mailinglist/Forum

All issues with: