alternative numerical \cite command
Hello list members: For inserting citations ConTeXt offers several \cite command alternatives. If I understand correctly citations can be inserted like: \cite[key], when the document's default cite type is used, or: \cite[authoryear][key], \cite[author][key] etc., where the citation style is set by the first option. These citation styles are predefined in context. What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles? Thanks, bcsikos
On Mon, 4 May 2015 15:10:06 +0200
Csikos Bela
These citation styles are predefined in context.
What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles?
mkiv-bibliographies (not the mkii publications module). The citation styles can be tuned through parameters, i.e. \setupbtx [cite:numbering:num] [left=, right=, command={\high}] but in the latest beta, this way of switching to superscript citations is currently broken, I noticed, (and will be fixed). Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically. There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=]. Alan
Hi Alan, Excuse-me to jump over a discussion related to the new bibliography features of mkiv, but is it now reasonably stable to swithch completely from mkii to mkiv (I still have some files in mkii which I use only because of the bibliography features I have set up on purpose). And where can one find an elementary introduction to the new bibliography features? Thanks in advance, and best regards: OK
On 04 May 2015, at 15:51, Alan BRASLAU
wrote: On Mon, 4 May 2015 15:10:06 +0200 Csikos Bela
wrote: These citation styles are predefined in context.
What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles?
mkiv-bibliographies (not the mkii publications module).
The citation styles can be tuned through parameters, i.e.
\setupbtx [cite:numbering:num] [left=, right=, command={\high}]
but in the latest beta, this way of switching to superscript citations is currently broken, I noticed, (and will be fixed).
Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically.
There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=].
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 ___________________________________________________________________________________
Alan BRASLAU írta:
On Mon, 4 May 2015 15:10:06 +0200 Csikos Bela wrote:
These citation styles are predefined in context.
What I would like to do is inserting alternative numerical citations: normal superscript citations, like this^1, and occasionally inline citations in brackets, like this one [2]. How could I define alternative numerical citation style, e.g. \cite[inum][key] on the analogy of author, authoryear etc. styles?
mkiv-bibliographies (not the mkii publications module).
The citation styles can be tuned through parameters, i.e.
\setupbtx [cite:numbering:num] [left=, right=, command={\high}]
but in the latest beta, this way of switching to superscript citations is currently broken, I noticed, (and will be fixed).
My context version is: ConTeXt ver: 2014.01.03 00:40 MKIV current fmt: 2015.4.1 int: english/english I could set up superscript citation for numerical citation based on contextgarden bibliography page example.
Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically.
Yes, but in tables I don't want to put superscript citations.
There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=].
I guess this command would fit my needs after some editing. Unfortunately my context version doesn't have this command. Using \cite[textnum][tag] simply outputs "[tag]". Either I should update my context to newer (beta?), which I don't know how to do, or define the command in the document. I'd prefer the latter one, if feasible. Thanks, bcsikos
On Mon, 4 May 2015 17:54:31 +0200
Csikos Bela
I could set up superscript citation for numerical citation based on contextgarden bibliography page example.
A MKII hack...
Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically.
Yes, but in tables I don't want to put superscript citations.
OK, thanks for explaining this use.
There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=].
I guess this command would fit my needs after some editing. Unfortunately my context version doesn't have this command.
Using \cite[textnum][tag] simply outputs "[tag]".
Either I should update my context to newer (beta?), which I don't know how to do, or define the command in the document. I'd prefer the latter one, if feasible.
You are using the MKII code. It takes the syntax \cite[alternative]{key} which is very intolerant of spacing and the newer module has abandoned this LaTeX style in favor of \cite[key] and \cite[alternative][key] I recommend that you stick with the MKII module/code for now as we have not yet entirely stabilized the new dataset code. Alan
On 05/04/2015 06:14 PM, Alan BRASLAU wrote:
You are using the MKII code. It takes the syntax \cite[alternative]{key} which is very intolerant of spacing and the newer module has abandoned this LaTeX style in favor of \cite[key] and \cite[alternative][key]
No, that's not quite right, the syntax has always been \cite[alternative][key]. For the rest: what Alan said! The new code is not quite production ready, and if you're using mkii, switching in the midst of a project is a bit risky, to say the least. Thomas
Alan BRASLAU írta:
On Mon, 4 May 2015 17:54:31 +0200 Csikos Bela wrote:
I could set up superscript citation for numerical citation based on contextgarden bibliography page example.
A MKII hack...
Let me understand, though. Do you want to mix\high{1} citations with [1] citations? That would be rather strange, stylistically.
Yes, but in tables I don't want to put superscript citations.
OK, thanks for explaining this use.
There is a predefined second num cite variant \cite[textnum][tag]. It's use is intended to produce something like ref. 1, to be used syntactically in a sentence, in conjunction with standard num references. [1] This is just num setup with [left={ref.\nbsp},right=].
I guess this command would fit my needs after some editing. Unfortunately my context version doesn't have this command.
Using \cite[textnum][tag] simply outputs "[tag]".
Either I should update my context to newer (beta?), which I don't know how to do, or define the command in the document. I'd prefer the latter one, if feasible.
You are using the MKII code. It takes the syntax \cite[alternative]{key} which is very intolerant of spacing and the newer module has abandoned this LaTeX style in favor of \cite[key] and \cite[alternative][key]
I recommend that you stick with the MKII module/code for now as we have not yet entirely stabilized the new dataset code.
Thanks. But there's no any indication in the log file of using mkII, unless mkiv uses the same code. All \cite[alternative][key] variants work for me except the \cite[textnum][key] variant. See the attached example tex file with its pdf output and log file. My question still is how I could define an alternative \cite command for numerical citations, e.g. \cite[textnum]. Thanks, bcsikos
On Tue, 5 May 2015 12:52:41 +0200
Csikos Bela
Thanks. But there's no any indication in the log file of using mkII, unless mkiv uses the same code. All \cite[alternative][key] variants work for me except the \cite[textnum][key] variant. See the attached example tex file with its pdf output and log file.
\setupbibtex and \setuppublications pull-in the "MKII" code. Alan
Alan BRASLAU írta:
On Tue, 5 May 2015 12:52:41 +0200 Csikos Bela wrote:
Thanks. But there's no any indication in the log file of using mkII, unless mkiv uses the same code. All \cite[alternative][key] variants work for me except the \cite[textnum][key] variant. See the attached example tex file with its pdf output and log file.
\setupbibtex and \setuppublications pull-in the "MKII" code.
I am puzzled a little bit. I also tried to use \setuppublicationlist[pagenumber=yes], which had no effect on the output. I found related to this the followings: http://tex.stackexchange.com/questions/94023/context-how-to-set-up-interacti... http://www.ntg.nl/pipermail/ntg-context/2011/061528.html Based on these, in my understanding the bug affects mkiv and mkii should work. So, if I "use" mkii code (pulled by \setuppublications), why pagenumber=yes doesn't work for me? Or it doesn't work in mkii either? Thanks, bcsikos
participants (4)
-
Alan BRASLAU
-
Csikos Bela
-
Otared Kavian
-
Thomas A. Schmitz