Difference between revisions of "Command/from"

From Wiki
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|setupurl}}.</cd:description>
+
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]
  
\setupurl[color=red,style=bolditalic]
+
\setupinteraction[color=red,style=bolditalic]
  
 
Also in \from[seefrom].
 
Also in \from[seefrom].
  
 
</context>
 
</context>
{{todo|The \setupurl does not work. But I am not sure it is even supposed to, any more}}</cd:example></cd:examples>
+
 
 +
</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="setupurl"></cd:commandref></cd:seealso>
+
<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


\from

Summary

The command \from is used for links to URLs

Settings

\from[...]
[...]reference

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

Help from ConTeXt-Mailinglist/Forum

All issues with: