* Equivalent of extras option in new bibliography system?
@ 2016-07-01 10:17 Nicola
2016-07-01 14:53 ` Hans Hagen
0 siblings, 1 reply; 7+ messages in thread
From: Nicola @ 2016-07-01 10:17 UTC (permalink / raw)
To: ntg-context
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?
Nicola
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Equivalent of extras option in new bibliography system?
2016-07-01 10:17 Equivalent of extras option in new bibliography system? Nicola
@ 2016-07-01 14:53 ` Hans Hagen
2016-07-01 17:13 ` Nicola
0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2016-07-01 14:53 UTC (permalink / raw)
To: ntg-context
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=
> Nicola
>
>
> ___________________________________________________________________________________
>
> 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
> ___________________________________________________________________________________
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.com | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Equivalent of extras option in new bibliography system?
2016-07-01 14:53 ` Hans Hagen
@ 2016-07-01 17:13 ` Nicola
2016-07-01 23:03 ` Rik Kabel
2016-07-02 0:07 ` Alan Braslau
0 siblings, 2 replies; 7+ messages in thread
From: Nicola @ 2016-07-01 17:13 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Equivalent of extras option in new bibliography system?
2016-07-01 17:13 ` Nicola
@ 2016-07-01 23:03 ` Rik Kabel
2016-07-02 0:07 ` Alan Braslau
1 sibling, 0 replies; 7+ messages in thread
From: Rik Kabel @ 2016-07-01 23:03 UTC (permalink / raw)
To: ntg-context
[-- 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Equivalent of extras option in new bibliography system?
2016-07-01 17:13 ` Nicola
2016-07-01 23:03 ` Rik Kabel
@ 2016-07-02 0:07 ` Alan Braslau
2016-07-02 7:28 ` Nicola
2016-07-03 17:00 ` Thomas A. Schmitz
1 sibling, 2 replies; 7+ messages in thread
From: Alan Braslau @ 2016-07-02 0:07 UTC (permalink / raw)
To: Nicola; +Cc: ntg-context
On Fri, 1 Jul 2016 19:13:26 +0200
Nicola <nvitacolonna@gmail.com> wrote:
> 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.
Yes. Consider:
\cite[righttext={{, p.~24},{, p.~xx}}] [Author:2016,Author2:2015]
The comma gets parsed (as always) to separate multiple right texts,
assigned here to each citation reference.
The solution to your problem is:
\cite[righttext={{, p.~24}}][Author:2016]
Alternately (if you find the {{ }} strange), you can type
\cite[righttext={\btxcomma p.~24}] [Author:2016]
The macro \btxcomma also takes care of spacing.
Alan
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Equivalent of extras option in new bibliography system?
2016-07-02 0:07 ` Alan Braslau
@ 2016-07-02 7:28 ` Nicola
2016-07-03 17:00 ` Thomas A. Schmitz
1 sibling, 0 replies; 7+ messages in thread
From: Nicola @ 2016-07-02 7:28 UTC (permalink / raw)
To: ntg-context
On 2016-07-02 00:07:56 +0000, Alan Braslau said:
> On Fri, 1 Jul 2016 19:13:26 +0200
> Nicola <nvitacolonna@gmail.com> wrote:
>
>> 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.
>
> Yes. Consider:
>
> \cite[righttext={{, p.~24},{, p.~xx}}] [Author:2016,Author2:2015]
>
> The comma gets parsed (as always) to separate multiple right texts,
> assigned here to each citation reference.
>
> The solution to your problem is:
>
> \cite[righttext={{, p.~24}}][Author:2016]
>
> Alternately (if you find the {{ }} strange), you can type
> \cite[righttext={\btxcomma p.~24}] [Author:2016]
>
> The macro \btxcomma also takes care of spacing.
Great! Thanks all for your help!
Nicola
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Equivalent of extras option in new bibliography system?
2016-07-02 0:07 ` Alan Braslau
2016-07-02 7:28 ` Nicola
@ 2016-07-03 17:00 ` Thomas A. Schmitz
1 sibling, 0 replies; 7+ messages in thread
From: Thomas A. Schmitz @ 2016-07-03 17:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 07/02/2016 02:07 AM, Alan Braslau wrote:
> Yes. Consider:
>
> \cite[righttext={{, p.~24},{, p.~xx}}] [Author:2016,Author2:2015]
>
> The comma gets parsed (as always) to separate multiple right texts,
> assigned here to each citation reference.
>
> The solution to your problem is:
>
> \cite[righttext={{, p.~24}}][Author:2016]
>
> Alternately (if you find the {{ }} strange), you can type
> \cite[righttext={\btxcomma p.~24}] [Author:2016]
>
> The macro \btxcomma also takes care of spacing.
I know I shouldn't be asking but answering questions on this topic, but
here comes anyway: what is the magic incantation to have the righttext
included within the brackets in authornum styles? So for
\cite[righttext={{,\,100}}][Hagen]
I want the result to look like Hagen [1, 100]. I tried
\definebtx
[default:cite:author:num] % todo
[default:cite:authornum]
[left={\btxleftbracket},
right={\currentbtxrighttext\btxrightbracket}]
but I get Hagen [1], 100. Any pointers what I should try?
Thomas
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2016-07-03 17:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-01 10:17 Equivalent of extras option in new bibliography system? Nicola
2016-07-01 14:53 ` Hans Hagen
2016-07-01 17:13 ` Nicola
2016-07-01 23:03 ` Rik Kabel
2016-07-02 0:07 ` Alan Braslau
2016-07-02 7:28 ` Nicola
2016-07-03 17:00 ` Thomas A. Schmitz
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).