From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88707 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Use url to hyperlink bibliography title Date: Tue, 16 Sep 2014 09:30:45 -0700 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1410885083 26296 80.91.229.3 (16 Sep 2014 16:31:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 16:31:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 16 18:31:17 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTveo-0002KX-03 for gctc-ntg-context-518@m.gmane.org; Tue, 16 Sep 2014 18:31:10 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 90C46102C4 for ; Tue, 16 Sep 2014 18:31:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4UjZU7MKak7T for ; Tue, 16 Sep 2014 18:31:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 1069A10227 for ; Tue, 16 Sep 2014 18:31:00 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0C2AE101EB for ; Tue, 16 Sep 2014 18:30:56 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id K+RI-bD6DRIz for ; Tue, 16 Sep 2014 18:30:51 +0200 (CEST) Original-Received: from filter4-til.mf.surf.net (filter4-til.mf.surf.net [194.171.167.220]) by balder.ntg.nl (Postfix) with ESMTP id E2473101E1 for ; Tue, 16 Sep 2014 18:30:51 +0200 (CEST) Original-Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) by filter4-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s8GGUjxE025335 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 16 Sep 2014 18:30:51 +0200 Original-Received: by mail-la0-f54.google.com with SMTP id ge10so138758lab.27 for ; Tue, 16 Sep 2014 09:30:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=IKxudJMn4mtJjx2y+wzJFUrXxYRJVCLEWUBzqigmFr4=; b=cZFOgDqRuuB1buWpZZxIyKPm7F2mSdFJGVZo1KtLNOpC9G6lwFPXUJpgSW8JRxh1ns drJ1jrotBUW9b0v1r6EncJ+cWsizFuP5KRUYiZY+K5qphzY6OUwLFtLoo5FLuJNEFxxY JUWS502GYhg86NvX+WfrdDRZcK85kl8fDtY0PpDwBu9XsCqiBlnk12Azgl3wHTMAx/9G HbZxA02g7MmrBww2InqhtowwE3+30T76xt3YfaC5DElcen3WskNQ8eVdwrnBWxszOw1t Ay34aQR5vwMRXOn3xor7anFBqbnXnKJfh/Sg+m3rAeuH1+ffW2FKYtqNTtVvZHJ3Bb+0 XqGg== X-Received: by 10.152.246.6 with SMTP id xs6mr38215030lac.56.1410885045140; Tue, 16 Sep 2014 09:30:45 -0700 (PDT) Original-Received: by 10.25.168.203 with HTTP; Tue, 16 Sep 2014 09:30:45 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0VMPQuJLX - 612593d37edf - 20140916 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:88707 Archived-At: 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 ___________________________________________________________________________________