Difference between revisions of "Command/useURL"

From Wiki
Jump to navigation Jump to search
(Create reference page)
 
(cleanup)
Line 1: Line 1:
<!-- please remove this and the following line if you have checked this page -->
 
{{Reference_Cleanup}}
 
{{Reference
 
|name=useURL
 
|attributes=
 
}}
 
 
 
== [[Help:Reference|Syntax]] ==
 
== [[Help:Reference|Syntax]] ==
 
<table cellspacing="4" cellpadding="2" class="cmd">
 
<table cellspacing="4" cellpadding="2" class="cmd">
Line 31: Line 24:
  
 
== Description ==  
 
== Description ==  
<pre>
+
''name'' = label; usage in <code>\from[name]</code>;
name = label; usage in \from[name]
+
 
text1 = URL
+
''text1'' = URL;
file = attached file URL
+
 
text2 = text
+
''file'' = attached file URL;
 +
 
 +
''text2'' = text.
  
</pre>
 
 
== comment ==
 
== comment ==
<pre>
 
 
Do not forget:
 
Do not forget:
 +
<texcode>
 
   \setupinteraction [state=start]
 
   \setupinteraction [state=start]
also useful
+
</texcode>
 +
also useful;
 +
<texcode>
 
   \setupcolors      [state=start]
 
   \setupcolors      [state=start]
   \setupurl [color=blue]
+
   \setupurl         [color=blue]
 
+
</texcode>
</pre>
 
 
 
 
 
  
 
== Example ==
 
== Example ==
  
<pre class="example">
+
<texcode>
 
\setupcolors
 
\setupcolors
 
   [state=start]
 
   [state=start]
Line 59: Line 52:
 
\useURL
 
\useURL
 
   [setposition]
 
   [setposition]
   [http://source.contextgarden.net/core-pos.tex#setpositions]
+
   [http://source.contextgarden.net/tex/context/base/anch-pos.mkiv?search=from]
 
   []
 
   []
 
   [\tex{setposition}]
 
   [\tex{setposition}]
Line 65: Line 58:
 
\useURL
 
\useURL
 
   [setuppositioning]
 
   [setuppositioning]
   [http://texshow.contextgarden.net]
+
   [http://wiki.contextgarden.net/Reference/en]                                                                            
   [cmd=setuppositioning]
+
   [setuppositioning]
 
   [\tex{setuppositioning}]
 
   [\tex{setuppositioning}]
  
Line 72: Line 65:
 
Lookup the source code of \from[setposition]! Or read about the syntax
 
Lookup the source code of \from[setposition]! Or read about the syntax
 
of \from[setuppositioning].   
 
of \from[setuppositioning].   
 
 
\stoptext
 
\stoptext
</pre>
+
</texcode>
  
  

Revision as of 07:19, 15 April 2010

Syntax

\useURL[...][...][...][...]
[...] name
[...] text
[...] file
[...] text


Description

name = label; usage in \from[name];

text1 = URL;

file = attached file URL;

text2 = text.

comment

Do not forget:

  \setupinteraction [state=start]

also useful;

  \setupcolors      [state=start]
  \setupurl         [color=blue]

Example

\setupcolors
  [state=start]
\setupinteraction
  [state=start,color=blue]
\useURL
  [setposition]
  [http://source.contextgarden.net/tex/context/base/anch-pos.mkiv?search=from]
  []
  [\tex{setposition}]

\useURL
  [setuppositioning]
  [http://wiki.contextgarden.net/Reference/en]                                                                             
  [setuppositioning]
  [\tex{setuppositioning}]

\starttext
Lookup the source code of \from[setposition]! Or read about the syntax
of \from[setuppositioning].  
\stoptext


See also