ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Christian" <metan0r@gmx.de>
To: "'mailing list for ConTeXt users'" <ntg-context@ntg.nl>
Subject: Re: Bibliography related questions
Date: Fri, 23 Sep 2011 18:04:39 +0200	[thread overview]
Message-ID: <006301cc7a0a$7fe864e0$7fb92ea0$@gmx.de> (raw)
In-Reply-To: <20110922215858.GH17204@rae.vm.bytemark.co.uk>

> ---8<---
> 
> \setupbibtex[database=sample,sort=author]
> \setuppublications[alternative=apa-
> fr,sorttype=bbl,refcommand=authoryear]
> \setupinteraction[state=start,color=darkgreen,style=normal]
> \setupcite[interaction=start,compress=no]
> \def\pagecite[#1][#2]%
> {(\cite[alternative=authoryear,left={},inbetween={ },extras={, p. #2}][#1]}
> 
> \starttext
> 
> \cite[alternative=authoryears,inbetween={ },extras={, p. 3}][Eijkhout1991]
> 
> \pagecite[Eijkhout1991][3]
> 
> \page[yes]
> 
> \placepublications[criterium=text]
> 
> \stoptext
> 
> ---8<---

Thank you for this, it's exactly what I was looking for.
The only flaw of this workaround (besides not being the 'proper way') is that the first '(' is not part of the link and therefore not green (but then again, I'll probably set the color of the link to black, anyway).

A Fix of linked \cite[alternative=authoryears][reference] still would be nice ;)

___________________________________________________________________________________
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:[~2011-09-23 16:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22  9:48 Alexandre Krispin
2011-09-22 10:03 ` Christian
2011-09-22 15:56   ` Stefan Müller
2011-09-22 21:54     ` Christian
2011-09-27 17:50   ` Hans Hagen
2011-09-28  8:57     ` Taco Hoekwater
2011-10-04 17:17       ` Christian
2011-09-22 21:58 ` Pontus Lurcock
2011-09-23  7:58   ` Alexandre Krispin
2011-09-23  9:17     ` Pontus Lurcock
2011-09-23 16:04   ` Christian [this message]
2011-09-24  0:26     ` Pontus Lurcock

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='006301cc7a0a$7fe864e0$7fb92ea0$@gmx.de' \
    --to=metan0r@gmx.de \
    --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).