Re: [NTG-context] alternative numerical \cite command

2015-05-05 Thread Alan BRASLAU
On Tue, 5 May 2015 12:52:41 +0200
Csikos Bela bcsikos...@freemail.hu 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.

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
___

Re: [NTG-context] alternative numerical \cite command

2015-05-05 Thread Csikos Bela
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-interaction-mode-to-emulate-hyperref

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

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

Re: [NTG-context] alternative numerical \cite command

2015-05-05 Thread Csikos Bela
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


cite.tex
Description: TeX document


cite.pdf
Description: Adobe PDF document


cite.log
Description: Binary data
___
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
___

[NTG-context] alternative numerical \cite command

2015-05-04 Thread Csikos Bela
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
___
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
___

Re: [NTG-context] alternative numerical \cite command

2015-05-04 Thread Alan BRASLAU
On Mon, 4 May 2015 15:10:06 +0200
Csikos Bela bcsikos...@freemail.hu 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
___

Re: [NTG-context] alternative numerical \cite command

2015-05-04 Thread Otared Kavian
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 alan.bras...@cea.fr wrote:
 
 On Mon, 4 May 2015 15:10:06 +0200
 Csikos Bela bcsikos...@freemail.hu 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
 ___

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

Re: [NTG-context] alternative numerical \cite command

2015-05-04 Thread Csikos Bela
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
___
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
___

Re: [NTG-context] alternative numerical \cite command

2015-05-04 Thread Alan BRASLAU
On Mon, 4 May 2015 17:54:31 +0200
Csikos Bela bcsikos...@freemail.hu 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.

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
___

Re: [NTG-context] alternative numerical \cite command

2015-05-04 Thread Thomas A. Schmitz

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

Re: [NTG-context] alternative numerical \cite command

2015-05-04 Thread Otared Kavian


Thanks to remarks by Mojca and Alan, I did some testing with mkiv and my old 
setups for bibliography under mkii, and magically it works also with the new 
bibliography features of mkiv, that is without saying 
\usemodule[bib].
However somehow I couldn’t find an equivalent for the command
\placepublications[criterirum=all]
when one needs to give another title to the section containing the bibliography 
(as in the attached file).

As I understand from Alan’s and Thomas Schmitz’ answers, the new bibliography 
features are not yet completely « production ready » for those people who need 
complex requirements (this is not my case…).
However it would be nice if the new commands were made known somewhere, even 
without having a detailed manual (some people use quite elementary features and 
probably those may be obtained in less than ten commands…).

Best regards: OK





test-biblio-for-mkiv.pdf
Description: Adobe PDF document



test-biblio-for-mkiv.tex
Description: Binary data
___
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
___

Re: [NTG-context] alternative numerical \cite command

2015-05-04 Thread Thomas A. Schmitz

On 05/04/2015 07:03 PM, Otared Kavian wrote:

Thanks to remarks by Mojca and Alan, I did some testing with mkiv and my old 
setups for bibliography under mkii, and magically it works also with the new 
bibliography features of mkiv, that is without saying
\usemodule[bib].
However somehow I couldn’t find an equivalent for the command
\placepublications[criterirum=all]
when one needs to give another title to the section containing the bibliography 
(as in the attached file).

As I understand from Alan’s and Thomas Schmitz’ answers, the new bibliography 
features are not yet completely « production ready » for those people who need 
complex requirements (this is not my case…).
However it would be nice if the new commands were made known somewhere, even 
without having a detailed manual (some people use quite elementary features and 
probably those may be obtained in less than ten commands…).

Best regards: OK


The example you provide is with an intermediate state: at one point, 
Hans simply ported (most of) the functionality of the bib module to 
mkiv. The new commands have \btx in their names; they are written from 
scratch and use lua instead of bibtex. And please take my word for it: 
the user interface really isn't stable enough yet, even for some quite 
elementary cases. When things have settled down, it will be announced. 
(If you're really impatient, you cam have a look at the publ-imp-* files 
in the latest betas).


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
___