ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: url compared to hyperref
Date: Thu, 26 Oct 2006 13:07:22 +0100	[thread overview]
Message-ID: <E1Gd414-00029a-00@skye.ra.phy.cam.ac.uk> (raw)
In-Reply-To: Your message of "Thu, 26 Oct 2006 10:07:55 +1200." <87vem86ock.wl%schutz_m@usp.ac.fj>

Your demimed ConTeXt source:

==================================
\starttext
\useURL[imara-web-page][http://imara.csail.mit.edu][http://imara.csail.mit.edu]
An interesting project can be found at \url[imara-web-page].
\stoptext
==================================

(by the way, I find it easiest if example tex code is placed inline in
a message, unless it needs attaching due to strange character codes or
whitespace issues, in which case quoted-printable encoding makes it
easier to scan than base64 encoding does.)

>From an earlier message in this thread:

  Here is an example that I put on the wiki (because I kept forgetting
  how to do it and wanted one place to find it again, but I never can
  find it quickly there anyway, so now it's in the list archives at
  least):

  \setupcolors[state=start]
  \setupinteraction[state=start,color=middlered]
  \useURL [garden][http://contextgarden.net][][Context garden]
  \starttext
  The \from[garden] is useful.
  \stoptext

  I just tested it on the live context and it works fine with an active
  link in the pdf file.  But it didn't work in the 2006.10.05 beta (the
  space in the "Context garden" caused problems).

  Maybe your example didn't have \setupinteraction[state=start] ?

Which looks like one of the problems.  For the other, you need to
replace \url with \from, giving:

\setupinteraction[state=start]
\starttext
\useURL[imara-web-page][http://imara.csail.mit.edu][http://imara.csail.mit.edu]
An interesting project can be found at \from[imara-web-page].
\stoptext

which works fine here.  If you want colored links (green by default), add

  \setupcolors[state=start]

And to change the link color, use the color= option to \setupinteraction:

  \setupinteraction[state=start,color=middlered]

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
         --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.

  parent reply	other threads:[~2006-10-26 12:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-24 21:06 Marko Schütz
2006-10-25  9:01 ` Taco Hoekwater
2006-10-25 22:07   ` Marko Schütz
2006-10-26  4:03     ` Aditya Mahajan
2006-10-26 21:49       ` Marko Schütz
2006-10-26 12:07     ` Sanjoy Mahajan [this message]
2006-10-26 23:13       ` Marko Schütz
  -- strict thread matches above, loose matches on Subject: below --
2006-10-20  0:34 Marko Schütz
2006-10-20 13:16 ` Sanjoy Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Gd414-00029a-00@skye.ra.phy.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).