ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: Thangalin <thangalin@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Use url to hyperlink bibliography title
Date: Tue, 30 Sep 2014 20:52:17 +0200	[thread overview]
Message-ID: <20140930205217.627b3a63@iram-ha-003587.extra.cea.fr> (raw)
In-Reply-To: <CAANrE7qYbs0iYsvG9N4hNKN2KxY7_YtMkh9wnN2SsrbOH4CCug@mail.gmail.com>

(Of course you are using the bibliography/bibtex module here which is
currently being re-implemented but is not quite production ready...)

Most bibliography styles ask that the url (or doi) appear at the end of
the list rendering. This could be made active when list interaction is
enabled.

Normally, clicking on the list entry itself (not the url or doi) will
like back to the (first) citation of this work in the text. You would
like, rather, that the title links to the url. (Why just the title
rather than the entire entry, by the way?) This is an issue that we
need to make configurable somehow. I will take note.

Alan



On Tue, 16 Sep 2014 09:30:45 -0700
Thangalin <thangalin@gmail.com> wrote:

> Hi List,
> 
> How do you make a hyperlink for a bibtex entry's title using the
> entry's URL?
> 
> The bibtex entries include articles, techreports, inproceedings,
> books, and so forth. I can work around the issue by duplicating the
> URL as follows. For example, save this as "sources.bib":
> 
> @inproceedings{schryen@security,
>   author={Schryen, Guido and Rich, Eliot},
>   title={\bibhref{Increasing software security through open source or
> closed source development? Empirics suggest that we have asked the
> wrong question}{http://epub.uni-regensburg.de/21293/}},
>   booktitle={Proceedings of the 2010 43rd Hawaii International
> Conference on System Sciences},
>   series={HICSS '10},
>   year={2010},
>   isbn={978-0-7695-3869-3},
>   pages={1--10},
>   numpages={10},
>   doi={10.1109/HICSS.2010.228},
>   acmid={1748219},
>   publisher={IEEE Computer Society},
>   address={Washington, DC, USA},
>   url={http://epub.uni-regensburg.de/21293/},
> }
> 
> Here is a short example that uses the sources.bib file:
> 
> \setupbibtex[database=sources]
> \setuppublications[
>   alternative=num,
>   sorttype=cite,
> ]
> 
> % Superscript citation cross-references.
> \setupcite[num][
>   left=\raisebox{1ex}\hbox\bgroup\tfxx,
>   right=\egroup,
> ]
> 
> \definecolor[WPexternal][h=B93507]
> 
> \setupinteraction[
>   state=start,
> ]
> 
> \def\WPHyperlink{%
>   \setupinteraction[
>     style=normal,
>     color=WPexternal,
>   ]%
> }
> 
> \define[2]\bibhref{%
>   \WPHyperlink
>   {\goto{#1}[url(#2)]}%
> }
> 
> \starttext
>   \startbodymatter
>     \startchapter[title={Title},]
>       \startsection[title={Transparency}]
>         The complete source code is open for analysis and
>         development.\cite[schryen@security]
>       \stopsection
>     \stopchapter
>   \stopbodymatter
>   \startbackmatter
>     \completepublications[criterium=text]
>   \stopbackmatter
> \stoptext
> 
> The title is hyperlinked, but mixes presentation with content and
> duplicates the URL. Note that the colour is also changed to match the
> other external links in the document.
> 
> Thank you.
> ___________________________________________________________________________________
> 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  :
> http://foundry.supelec.fr/projects/contextrev/ wiki     :
> http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
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  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  parent reply	other threads:[~2014-09-30 18:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-16 16:30 Thangalin
2014-09-25 18:48 ` Thangalin
2014-09-30 18:52 ` Alan BRASLAU [this message]
2014-10-04  0:48   ` Thangalin

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=20140930205217.627b3a63@iram-ha-003587.extra.cea.fr \
    --to=alan.braslau@cea.fr \
    --cc=ntg-context@ntg.nl \
    --cc=thangalin@gmail.com \
    /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).