Difference between revisions of "Command/from"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \from") |
|||
Line 13: | Line 13: | ||
<cd:description>With {{cmd|from}} you can use an external (URL) link just like a normal internal reference. This works in conjunction with {{cmd|useURL}} to set up the link reference. | <cd:description>With {{cmd|from}} you can use an external (URL) link just like a normal internal reference. This works in conjunction with {{cmd|useURL}} to set up the link reference. | ||
− | For setup use {{cmd| | + | For setup use {{cmd|setupinteraction}}.</cd:description> |
<cd:examples><cd:example title=""><context source="yes"> | <cd:examples><cd:example title=""><context source="yes"> | ||
\setupinteraction[state=start] | \setupinteraction[state=start] | ||
Line 32: | Line 32: | ||
[source:from] | [source:from] | ||
− | \ | + | \setupinteraction[color=red,style=bolditalic] |
Also in \from[seefrom]. | Also in \from[seefrom]. | ||
</context> | </context> | ||
− | + | ||
+ | </cd:example></cd:examples> | ||
<cd:notes></cd:notes> | <cd:notes></cd:notes> | ||
<cd:seealso> | <cd:seealso> | ||
<cd:source file="strc-ref.mkvi" originator="system"></cd:source> | <cd:source file="strc-ref.mkvi" originator="system"></cd:source> | ||
<cd:wikipage originator="system" page="Category:References"></cd:wikipage> | <cd:wikipage originator="system" page="Category:References"></cd:wikipage> | ||
− | <cd:commandref name="useURL"></cd:commandref> | + | <cd:commandref name="useURL">to define the reference</cd:commandref> |
− | <cd:commandref name=" | + | <cd:commandref name="setupinteraction">to configure the visual style</cd:commandref></cd:seealso> |
</cd:commandgroup> | </cd:commandgroup> |
Revision as of 17:27, 5 September 2020
Contents
\from
Summary
The command \from is used for links to URLs
Settings
Description
With \from you can use an external (URL) link just like a normal internal reference. This works in conjunction with \useURL to set up the link reference.
For setup use \setupinteraction.
Examples
Example 1
\setupinteraction[state=start] \useURL [seefrom] [http://source.contextgarden.net/tex/context/base/anch-pos.mkiv?search=from] [] [\tex{from}] Also in \from[seefrom].
Example 2
\setupinteraction[state=start] \useURL [seefrom] [http://source.contextgarden.net/tex/context/base/anch-pos.mkiv?search=from] [] [source:from] \setupinteraction[color=red,style=bolditalic] Also in \from[seefrom].
Notes
See also
- strc-ref.mkvi
- \useURL to define the reference
- \setupinteraction to configure the visual style