From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95311 Path: news.gmane.org!not-for-mail From: Rik Kabel Newsgroups: gmane.comp.tex.context Subject: Re: Equivalent of extras option in new bibliography system? Date: Fri, 1 Jul 2016 19:03:04 -0400 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4878511005225880186==" X-Trace: ger.gmane.org 1467414244 22784 80.91.229.3 (1 Jul 2016 23:04:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Jul 2016 23:04:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat Jul 02 01:03:49 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bJ7TP-0007ml-C6 for gctc-ntg-context-518@m.gmane.org; Sat, 02 Jul 2016 01:03:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 08D2510AB1; Sat, 2 Jul 2016 01:03:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WvFAZ-zYDa2g; Sat, 2 Jul 2016 01:03:24 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 3F9B710AB7; Sat, 2 Jul 2016 01:03:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 3117B10AB2 for ; Sat, 2 Jul 2016 01:03:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8WbL05VdFPpn for ; Sat, 2 Jul 2016 01:03:22 +0200 (CEST) Original-Received: from mailbackend.panix.com (mailbackend.panix.com [166.84.1.89]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 4D71C10AB1 for ; Sat, 2 Jul 2016 01:03:12 +0200 (CEST) Original-Received: from [192.168.201.10] (cpe-24-194-22-135.nycap.res.rr.com [24.194.22.135]) by mailbackend.panix.com (Postfix) with ESMTPSA id EE6F4174B3 for ; Fri, 1 Jul 2016 19:03:10 -0400 (EDT) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:95311 Archived-At: This is a multi-part message in MIME format. --===============4878511005225880186== Content-Type: multipart/alternative; boundary="------------94B590EE9E8CA4802790F659" This is a multi-part message in MIME format. --------------94B590EE9E8CA4802790F659 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 2016-07-01 13:13, Nicola wrote: > On 2016-07-01 14:53:00 +0000, Hans Hagen said: > >> On 7/1/2016 12:17 PM, Nicola wrote: >>> In the past (MKII) I used citations of the form: >>> >>> \cite[extras={, p.~24}][Author:2016] >>> >>> The extras option seems to be ignored by MKIV's bibliography system. >>> What is the equivalent of the above? >> >> lefttext= >> righttext= > > It does not seem to work with my example. The output of the MWE below is: > > (Author, 2016 XXX) (Author, 2016) > The comma seems the culprit. > > Nicola > > \setupinteraction [state=start] > \usebtxdefinitions [apa] > > \startbuffer [bib] > @article{Author:2016, > author={Author}, > year=2016, > } > \stopbuffer > \usebtxdataset [bib.buffer] > > \starttext > > \cite[righttext={ XXX}][Author:2016] % OK > \cite[righttext={, p.~22}][Author:2016] % Not ok > > \page > \placelistofpublications > \stoptext > > For now, an extra layer of curlies will make it work: \cite[righttext={{, p.~22}}][Author:2016] % works, but not pretty -- rik --------------94B590EE9E8CA4802790F659 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
On 2016-07-01 13:13, Nicola wrote:
On 2016-07-01 14:53:00 +0000, Hans Hagen said:

On 7/1/2016 12:17 PM, Nicola wrote:
In the past (MKII) I used citations of the form:

\cite[extras=3D{, p.~24}][Author:2016]

The extras option seems to be ignored by MKIV's bibliography system.
What is the equivalent of the above?

lefttext=3D
righttext=3D

It does not seem to work with my example. The output of the MWE below is:

(Author, 2016 XXX) (Author, 2016)
The comma seems the culprit.

Nicola

\setupinteraction [state=3Dstart]
\usebtxdefinitions [apa]

\startbuffer [bib]
@article{Author:2016,
=C2=A0author=3D{Author},
=C2=A0year=3D2016,
}
\stopbuffer
\usebtxdataset [bib.buffer]

\starttext

\cite[righttext=3D{ XXX}][Author:2016] % OK
\cite[righttext=3D{, p.~22}][Author:2016] % Not ok

\page
\placelistofpublications
\stoptext


For now, an extra layer of curlies will make it work:

\cite[righttext=3D{{, p.~22}}][Author:2016] % works, but not pretty

--
rik
--------------94B590EE9E8CA4802790F659-- --===============4878511005225880186== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4878511005225880186==--