Changes

Jump to navigation Jump to search
1,072 bytes added ,  22:03, 22 September 2013
m
no edit summary
Send mail to \MailTo{foo@bar.zzz}{Mr. Foo}
</context>
 
== External Links ==
Create a macro for external links in a colour that is distinct from other document links.
 
<pre>
% Enable document colours
\setupcolors[state=start,]
 
% Internal link colours
\setupinteraction[state=start,color=blue,]
 
% External link colours
\definecolor[steelblue][h=4682B4]
\define[2]\href{%
\begingroup
\setupinteraction[
style=normal,
color=steelblue,
]%
\goto{#1}[url(#2)]%
\endgroup%
}
 
% Set index colours
\setupcombinedlist[content][
interaction=all,
color=red,
]
 
% Set the table of contents colours
\setuplist[chapter][
% Text colour
color=darkcyan,
% Page number colour
pagecolor=darkgreen,
]
 
% Set up the index heading colour
\setupregister[index][
color=darkgray,
balance=no,
]
 
\def\Google{G\color[red]{o}\color[orange]{o}g\color[green]{l}\color[red]{e}}
 
\starttext
\completecontent
 
\startchapter[title=chapter]
Search \index{source code}{source code} using \href{\Google{} Website}{http://google.com}! Read about
\index{syntax}{syntax}.
\stopchapter
 
\placeindex
 
\stoptext
</pre>
419

edits

Navigation menu