* basic \cite[]
@ 2010-04-17 15:53 Michael Saunders
2010-04-17 19:31 ` Taco Hoekwater
0 siblings, 1 reply; 10+ messages in thread
From: Michael Saunders @ 2010-04-17 15:53 UTC (permalink / raw)
To: ntg-context
I want to be able to write, in my text, \cite[myKey] (where myKey is
the key of a record in my .bib file), and have this appear in print
as: [<a number>]
linked to the bibliograpy page where it (<a number>) occurs.
I've been puzzling over bibmod-doc.pdf. I think the solution has to
do with the commands \setuppublications and \setupcite, but since
bibmod-doc never says what these commands do, it's very difficult.
I'm guessing \setuppublications might be able to control what argument
I should use in the \cite[] command. I'm guessing \setupcite might
control how a citation will be printed in the text. (If this is true,
the manual should say so so the reader doesn't have to guess.) One
cryptic line tells me:
"refcommand the default option for \cite"
just like that. Based on this, I'm guessing refcommand=key will let
me write things like \cite[myFirstKey]. The manual goes on to clear
up the confusion by explaining:
"The \cite command has a lot of alternatives, as could be seen above
in the setting of ‘refcommand’."
That's it---no mention of what \setupcite does. Based on this, I'm
hoping that \setupcite[num] will cause the citation to be printed as
[<some number>], e.g., [1].
So, I'm using:
\usemodule[bib]
\setupbibtex[database=myProject]
\setuppublications[refcommand=key,alternative=apa,setupinteraction=start,numbering=yes]
\setuppublicationlist[]
\setupcite[num][]
...
\placepublications[criterium=all]
The bibliography prints out, but citations appear as empty brackets: "[]".
I want them to be numbers linked to the appearance of the same number
in the bibliography. There must be a way of doing this?
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
2010-04-17 15:53 basic \cite[] Michael Saunders
@ 2010-04-17 19:31 ` Taco Hoekwater
2010-04-18 6:40 ` Salil Sayed
0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2010-04-17 19:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Michael Saunders wrote:
> One cryptic line tells me:
>
> "refcommand the default option for \cite"
>
> just like that. Based on this, I'm guessing refcommand=key will let
> me write things like \cite[myFirstKey]. The manual goes on to clear
> up the confusion by explaining:
Well, no. You always use keys as arguments, the option controls the
resulting output. It called an option because it controls the
optional argument of \cite. A reference key is mandatory, because
otherwise the whole command would be pointless.
> \setuppublications[refcommand=key,alternative=apa,setupinteraction=start,numbering=yes]
Try
\setuppublications[alternative=num]
Best wishes,
Taco
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
2010-04-17 19:31 ` Taco Hoekwater
@ 2010-04-18 6:40 ` Salil Sayed
0 siblings, 0 replies; 10+ messages in thread
From: Salil Sayed @ 2010-04-18 6:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2056 bytes --]
In mkIV the option seems mandatory too. Otherwise I get the empty brackets. But only the authoryear and authoryears works for me. Not authornum.
This is how I use it. (following the habit of using natbib in Latex)
\usemodule[bib]
\setupbibtex
[database={Manuscript},
sort=author]
\setuppublications[numbering=yes]
\def\LocalRefList {\subject{References}\placepublications[criterium=chapter, option=continue]}
\def\citet[#1]{\cite[authoryear][#1]}
\def\citep[#1]{\cite[authoryears][#1]}
The line
\def\LocalRefList {\subject{References}\placepublications[criterium=chapter, option=continue]}
worked in mkII but not in mkIV.
Best regards,
Salil
________________________________
From: Taco Hoekwater <taco@elvenkind.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Sent: Sat, April 17, 2010 10:31:17 PM
Subject: Re: [NTG-context] basic \cite[]
Michael Saunders wrote:
> One cryptic line tells me:
>
> "refcommand the default option for \cite"
>
> just like that. Based on this, I'm guessing refcommand=key will let
> me write things like \cite[myFirstKey]. The manual goes on to clear
> up the confusion by explaining:
Well, no. You always use keys as arguments, the option controls the
resulting output. It called an option because it controls the
optional argument of \cite. A reference key is mandatory, because
otherwise the whole command would be pointless.
> \setuppublications[refcommand=key,alternative=apa,setupinteraction=start,numbering=yes]
Try
\setuppublications[alternative=num]
Best wishes,
Taco
___________________________________________________________________________________
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
___________________________________________________________________________________
[-- Attachment #1.2: Type: text/html, Size: 3343 bytes --]
[-- Attachment #2: Type: text/plain, Size: 486 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] 10+ messages in thread
* Re: basic \cite[]
2010-04-18 6:31 ` Taco Hoekwater
@ 2010-04-18 7:26 ` Wolfgang Schuster
0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2010-04-18 7:26 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 18.04.10 08:31, schrieb Taco Hoekwater:
> On the criterium vs. criterion: this bad 'translation' is actually
> a keyword left over from the Dutch interface. It has been this
> way since 1996 I think. Actually changing it is not an option.
> but perhaps an alias could be created. I have also created a
> tracker item for that.
As internal command you can't change the name but a synonym
for the users is easy:
\setinterfacevariable{criterium}{criterion}
Wolfgang
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
2010-04-18 6:46 Michael Saunders
@ 2010-04-18 6:47 ` Taco Hoekwater
0 siblings, 0 replies; 10+ messages in thread
From: Taco Hoekwater @ 2010-04-18 6:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
Michael Saunders wrote:
> Taco:
>
>>> \placepublications
>> Please change the above line to
>>
>> \placepublications[criterium=all]
>
> Thanks, but that's what I was using already. To be clear, in Mk IV:
> \usemodule[bib]
> \setupbibtex[database=myProject]
> \setuppublications[alternative=num]
> ...
> \cite[myKey]
> ...
> \placepublications[criterium=all]
>
>
> The references in the back look okay, but at the point where
> \cite[myKey] occurs, I get empty brackets: "[]", not "[1]".
That works OK for me (I ran your test file).
Best wishes,
Taco
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
@ 2010-04-18 6:46 Michael Saunders
2010-04-18 6:47 ` Taco Hoekwater
0 siblings, 1 reply; 10+ messages in thread
From: Michael Saunders @ 2010-04-18 6:46 UTC (permalink / raw)
To: ntg-context
Taco:
> > \placepublications
>
> Please change the above line to
>
> \placepublications[criterium=all]
Thanks, but that's what I was using already. To be clear, in Mk IV:
\usemodule[bib]
\setupbibtex[database=myProject]
\setuppublications[alternative=num]
...
\cite[myKey]
...
\placepublications[criterium=all]
The references in the back look okay, but at the point where
\cite[myKey] occurs, I get empty brackets: "[]", not "[1]".
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
2010-04-17 23:42 ` Michael Green
@ 2010-04-18 6:31 ` Taco Hoekwater
2010-04-18 7:26 ` Wolfgang Schuster
0 siblings, 1 reply; 10+ messages in thread
From: Taco Hoekwater @ 2010-04-18 6:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Hi,
Michael Green wrote:
>
> Mk II gets the desired result; Mk IV does not.
>
> Example:
> ...
> \placepublications
Please change the above line to
\placepublications[criterium=all]
This is a bug in the mkiv port of the module that I thought was
already documented, but maybe not. To be sure, I created a bug
tracker item for Hans to look at.
On the criterium vs. criterion: this bad 'translation' is actually
a keyword left over from the Dutch interface. It has been this
way since 1996 I think. Actually changing it is not an option.
but perhaps an alias could be created. I have also created a
tracker item for that.
Best wishes,
Taco
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
2010-04-17 20:12 Michael Saunders
2010-04-17 23:42 ` Michael Green
@ 2010-04-18 0:50 ` Michael Saunders
1 sibling, 0 replies; 10+ messages in thread
From: Michael Saunders @ 2010-04-18 0:50 UTC (permalink / raw)
To: ntg-context
Michael Green:
> Mk II gets the desired result; Mk IV does not.
>
> Example:
>
> \usemodule[bib]
> \setuppublications[alternative=num,refcommand=num]
...
That's it then. I'm using Mk IV. Is there a proper way to use it?
By the way, the developers should know something: in English, a
"criterium" is a kind of bicycle race. The key should be called
"criterion".
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
2010-04-17 20:12 Michael Saunders
@ 2010-04-17 23:42 ` Michael Green
2010-04-18 6:31 ` Taco Hoekwater
2010-04-18 0:50 ` Michael Saunders
1 sibling, 1 reply; 10+ messages in thread
From: Michael Green @ 2010-04-17 23:42 UTC (permalink / raw)
To: ntg-context
Michael Saunders <odradek5 <at> gmail.com> writes:
> Taco:
>
> > Try
> >
> > \setuppublications[alternative=num]
>
> Thank you, but using that I get the same result:
>
Mk II gets the desired result; Mk IV does not.
Example:
\usemodule[bib]
\setuppublications[alternative=num,refcommand=num]
\setupbibtex[database=bibl-test]
\starttext
\subject{Text}
Sentence referring to Shue’s article. \cite[Shue:1978lg]
Sentence referring to Sussman’s article. \cite[Sussman:2005oz]
\subject{References}
\placepublications
\stoptext
bibl-test.tex
@article{Sussman:2005oz,
Author = {Sussman, David},
Journal = {Philosophy \& Public Affairs},
Number = {1},
Pages = {1--33},
Title = {What's Wrong with Torture?},
Volume = {33},
Year = {2005}}
@article{Shue:1978lg,
Author = {Shue, Henry},
Journal = {Philosophy \& Public Affairs},
Number = {2},
Pages = {124--143},
Title = {Torture},
Volume = {7},
Year = {1978}}
___________________________________________________________________________________
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] 10+ messages in thread
* Re: basic \cite[]
@ 2010-04-17 20:12 Michael Saunders
2010-04-17 23:42 ` Michael Green
2010-04-18 0:50 ` Michael Saunders
0 siblings, 2 replies; 10+ messages in thread
From: Michael Saunders @ 2010-04-17 20:12 UTC (permalink / raw)
To: ntg-context
Taco:
> Try
>
> \setuppublications[alternative=num]
Thank you, but using that I get the same result:
\cite[myKey] prints out empty brackets "[]", not "[1]".
___________________________________________________________________________________
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] 10+ messages in thread
end of thread, other threads:[~2010-04-18 7:26 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-17 15:53 basic \cite[] Michael Saunders
2010-04-17 19:31 ` Taco Hoekwater
2010-04-18 6:40 ` Salil Sayed
2010-04-17 20:12 Michael Saunders
2010-04-17 23:42 ` Michael Green
2010-04-18 6:31 ` Taco Hoekwater
2010-04-18 7:26 ` Wolfgang Schuster
2010-04-18 0:50 ` Michael Saunders
2010-04-18 6:46 Michael Saunders
2010-04-18 6:47 ` Taco Hoekwater
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).