Re: [NTG-context] bibliography - maybeyear

2013-11-29 Thread Thomas A. Schmitz

On 11/28/2013 06:37 PM, Hans Hagen wrote:

Hello,

Using
   \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
   \def\maybeyear#1{#1}
or
   \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
   \appendtoks
  \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
{\let\maybeyear\gobbleoneargument}
{\let\maybeyear\firstofoneargument}%
   \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
   \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?


\setuppublicationlist
   [maybeyear=off]


maybeyear is one of the areas that need fixing. The simple on/off 
mechanism is not sufficient, because the behavior needs to be more complex:


1. If the citation style does not use the year as a key, do not append 
letters.


2. If the citation style uses year as key and only one publication/year 
of an author is quoted and listed (even if there are several in the bib 
file) do not append letter.


3. Append letter if citation style uses year AND more than one 
publication/year for given author is quoted and listed.


I assume that in order for this to work, Hans will have to rewrite the 
code which produces the .bbl file from the bib. Right now, AFAICS, the 
.bbl contains the entire .bib database. It should only contain the 
entries which are cited.


Alan, does that make sense to you?

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] bibliography - maybeyear

2013-11-29 Thread Alan Braslau
On Fri, 29 Nov 2013 12:22:54 +0100
Thomas A. Schmitz thomas.schm...@uni-bonn.de wrote:

 maybeyear is one of the areas that need fixing. The simple on/off 
 mechanism is not sufficient, because the behavior needs to be more
 complex:
 
 1. If the citation style does not use the year as a key, do not
 append letters.
 
 2. If the citation style uses year as key and only one
 publication/year of an author is quoted and listed (even if there are
 several in the bib file) do not append letter.
 
 3. Append letter if citation style uses year AND more than one 
 publication/year for given author is quoted and listed.
 
 I assume that in order for this to work, Hans will have to rewrite
 the code which produces the .bbl file from the bib. Right now,
 AFAICS, the .bbl contains the entire .bib database. It should only
 contain the entries which are cited.
 
 Alan, does that make sense to you?

Yes

Perhaps the .bbl could contain the entire .bib database with the
filtering taking place then in lua/ConTeXt. How this is handled
internally is a programming, not a user issue.

I do agree with your assessment of when to and when not to append a
letter to the year as listed.

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] bibliography - maybeyear

2013-11-28 Thread Hans Hagen

On 11/20/2013 9:12 AM, Alan Braslau wrote:

Hello,

Using
   \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
   \def\maybeyear#1{#1}
or
   \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
   \appendtoks
  \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
{\let\maybeyear\gobbleoneargument}
{\let\maybeyear\firstofoneargument}%
   \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
   \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?


\setuppublicationlist
  [maybeyear=off]

you can deduce that from \bibtexpublicationsparameter which you can read as

\bibtexpublicationsparameter

i.e. it is bound to \setupbibtexpublications

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


[NTG-context] bibliography - maybeyear

2013-11-20 Thread Alan Braslau
Hello,

Using
  \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
  \def\maybeyear#1{#1}
or
  \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
  \appendtoks
 \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
   {\let\maybeyear\gobbleoneargument}
   {\let\maybeyear\firstofoneargument}%
  \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
  \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?

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] bibliography - maybeyear

2013-11-20 Thread Hans Hagen

On 11/20/2013 9:12 AM, Alan Braslau wrote:

Hello,

Using
   \setuppublications [alternative=num]
for example, should not append letters to the publication years when
encountering multiple publications by the same author(s) per year.

So, in the use of bibliographies, I have not understood how to control
\maybeyear.

In the bibl-xxx.tex files, it is defined as
   \def\maybeyear#1{#1}
or
   \def\maybeyear#1{}
as needed. Perhaps this is for mkii.

In bibl-bib.mkiv, one has
   \appendtoks
  \doifelse{\bibtexpublicationsparameter\c!maybeyear}\v!off
{\let\maybeyear\gobbleoneargument}
{\let\maybeyear\firstofoneargument}%
   \to \everysetupbibtexlistplacement
which seems to then use the keyword maybeyear.

I guess that
   \setupbibtexpublications [maybeyear=off]
in my source would turn off the appended letters, but this is not
correct. I have tried many variants (\setuppublications, \setupbibtex).
What am I misunderstanding? Or is this a bug?



example needed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | 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
___


Re: [NTG-context] bibliography - maybeyear

2013-11-20 Thread Alan Braslau
On Wed, 20 Nov 2013 13:38:16 +0100
Hans Hagen pra...@wxs.nl wrote:

 example needed

Of course:


\setupbibtex [database=test]
\setuppublications [alternative=num]
\starttext
\cite [Peirce1878V,Peirce1878VI]

\placepublications [criterium=text]
\stoptext


test.bib:

@ARTICLE{Peirce1878V,
  author = {Peirce, C. S.},
  title = {Illustrations of the logic of science. {F}ifth paper – The order
of nature},
  journal = {Popular Science Monthly},
  year = {1878},
  volume = {9},
  pages = {203–217}
}
@ARTICLE{Peirce1878VI,
  author = {Peirce, C. S.},
  title = {Illustrations of the logic of science. {S}ixth paper – Deduction,
induction, and hypothesis},
  journal = {Popular Science Monthly},
  year = {1878},
  volume = {9},
  pages = {470–482}
}



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