ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Rik Kabel <context@rik.users.panix.com>
To: ntg-context@ntg.nl
Subject: Re: Equivalent of extras option in new bibliography system?
Date: Fri, 1 Jul 2016 19:03:04 -0400	[thread overview]
Message-ID: <d180db5d-182f-bfc2-bc98-95339e3d8bb4@rik.users.panix.com> (raw)
In-Reply-To: <nl68bm$1cn$1@ger.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 1021 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2184 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2016-07-01 23:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-01 10:17 Nicola
2016-07-01 14:53 ` Hans Hagen
2016-07-01 17:13   ` Nicola
2016-07-01 23:03     ` Rik Kabel [this message]
2016-07-02  0:07     ` Alan Braslau
2016-07-02  7:28       ` Nicola
2016-07-03 17:00       ` Thomas A. Schmitz

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=d180db5d-182f-bfc2-bc98-95339e3d8bb4@rik.users.panix.com \
    --to=context@rik.users.panix.com \
    --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).