Difference between revisions of "Command/goto"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \goto")
(No difference)

Revision as of 17:03, 5 September 2020


\goto

Summary

The command \goto is used for ...

Settings

\goto{...}[...]
{...}content
[...]reference

Description

This command creates a clickable link (or just normal text when interaction is not enabled).

It takes two arguments, the first in curly braces is the text, the second in square braces is the label to link to.

You should not normally have to use this command. Links are better made using \in or \at, which are more conceptual (and lookup the section or page number as well).

If you want to implement some custom command for building links, this command is useful. You might also want to use the \ref command for getting the raw page number, section number, section title, etc.


Examples

Example 1

\setupinteraction[state=start]
\reference[label:1]{Some text}

\page[yes] % Insert page break

Link to \goto{some text}[label:1].

(of course the wiki cannot really make a workable link)

Link to an URL

\goto{Wiki}[url(http://wiki.contextgarden.net)]
\goto{Email}[url(mailto:spam@example.com)]

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: