ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
To: ntg-context@ntg.nl
Subject: active urls in bibliographies
Date: Mon, 23 Apr 2007 22:44:16 -0400	[thread overview]
Message-ID: <E1HgB0q-0004wQ-5Y@approximate.corpus.cam.ac.uk> (raw)

[This must be a FAQ, and if so I'll put it on the wiki]  

I tried to force an active hyperlink to be part of a bibliography entry.
If the bibliography style file for that entry type uses it, maybe it
will work.  But I wanted to put it in the 'note' field so that I could
add it to most entries.  e.g.

@Book{HPL:2000,
  editor =	 {John D. Barnsford and Ann L. Brown and Rodney R. Cocking},
  title = 	 {How people learn: Brain, mind, experience, and school.},
  publisher = 	 {National Academy Press},
  year = 	 2000,
  address =	 {Washington, DC},
  edition =	 {expanded},
  note =	 {http://www.nap.edu}
}

As above, the URL comes out normal (i.e. not hyperlinked).  I couldn't
get the 'biburl' field to do the magic (even with \setupinteraction
started), maybe because I'd need to reprogram the .bst to use it.  Also
various combinations of \useURL and \goto did not work.  e.g. This
failed:

\useURL[someurl][http://www.someurl.org][][http://www.someurl.org]

@Book{HPL:2000,
{...
  note =	 {\goto[someurl]}
...
}

That fails with

! Argument of \dogoto has an extra }.
<inserted text> 
                \par 
<to be read again> 
                   }
\doattributes ...name #1#2\@EA \endcsname \fi {#4}
                                                  \dostopattributes 
<argument> ...esetapublication {HPL:2000}\strut }}
                                                  \egroup \ifdim \wd 4=\zero...

\secondoftwoarguments #1#2->#2
                              
\dosomelistelement ...hss \dostoplistattributes }}
                                                  \endgraf \nointerlineskip ...
...
l.208 \placepublications[criterium=all]


Any thoughts appreciated!

-Sanjoy

`Intellectual property is intellectual theft.'
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


             reply	other threads:[~2007-04-24  2:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-24  2:44 Sanjoy Mahajan [this message]
2007-04-24  7:26 ` Tobias Burnus
2007-04-24  7:57   ` Taco Hoekwater
2007-04-25  1:30   ` Sanjoy Mahajan
2007-04-25 14:58   ` 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=E1HgB0q-0004wQ-5Y@approximate.corpus.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).