Open main menu

Changes

1,676 bytes added ,  17:35, 5 September 2020
Created page with "Documentation for \url"
<cd:commandgroup name="url" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\url</tt> is used for links to URLs.
</cd:shortdesc>
<cd:variants>
<cd:command category="references" file="strc-ref.mkvi" interfacedate="2020-07-14T09:24" interfacefile="i-references.xml" level="document" name="url" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>With {{cmd|url}} 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. The difference with {{cmd|from}} is that this command typesets the actual URL.

For setup use {{cmd|setupurl}}.</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\setupinteraction[state=start]
\useURL
[seefrom]
[http://source.contextgarden.net/tex/context/base/anch-pos.mkiv?search=from]
[]
[source:from]

\setupurl[color=red,style=bolditalic]

Also in \url[seefrom].

</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="strc-ref.mkvi" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:References"></cd:wikipage>
<cd:commandref name="useURL">to define the reference</cd:commandref>
<cd:commandref name="setupurl">to configure the visual style</cd:commandref>
<cd:commandref name="from">for a related command that typesets a user-supplied text</cd:commandref></cd:seealso>
</cd:commandgroup>