[NTG-context] Bibliography: separating different kinds of literature OR Sectioning bibliography by type

2024-06-04 Thread Ben Moon via ntg-context
Hey there,
I would like to place a list of bibliography according to types (article, book, 
in proceedings) in my document. Similar like here:
https://tex.stackexchange.com/questions/112874/sectioning-bibliography-by-type-with-multiple-types-per-section
Sectioning bibliography by type (with multiple types per section)
tex.stackexchange.com

and here:
https://www.mail-archive.com/ntg-context@ntg.nl/msg77056.html
The example provided by Hans doesn’t seem to properly work any more, and I 
cannot make the suggestion work of using two different datasets work as 
suggested in the same thread.
So this is where I’m stuck:

\definebtxdataset[main]
\usebtxdataset[main][maindata.buffer]
\definebtxdataset[images]
\usebtxdataset[images][imagedata.buffer]
\usebtxdefinitions[mycustom, aps]
\setupbtx[dataset=main]
\definebtxrendering[bibrendering][mycustom, aps][dataset=main]
\definebtxrendering[bibimgrendering][mycustom, aps][dataset=images]

\placelistofpublications[bibrendering]
\placelistofpublications[bibimgrendering]

It would be much appreciated if someone could provide a working example?

Thank you very much

Ben
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] bibliography questions

2023-10-02 Thread Henning Hraban Ramm


My example is setup as advised in the manual:

"""
%\mainlanguage[de]
\usebtxdataset[beispiel][bib_example.bib]
\setupbtx[dataset=beispiel]
%\usebtxdefinitions[apa]
\definebtxrendering[beispiel][apa][dataset=beispiel,group=beispiele]

\starttext
\placelistofpublications[beispiel]

\cite[authoryear] [WiFo2010]

\cite[authoryear] [rattenhka]

\stoptext
"""

But I get the error message:

"""
system  > error: invalid parent apa for beispiel, apa defined 
too (best check it)
system  > error: invalid parent btx:apa for btx:beispiel, 
btx:apa defined too (best check it)

"""

Are these messages wrong? And why do they come from "system" and not 
from "publications"?



My minimal example works anyway, still investigating why it doesn’t in 
my book.



Another question:

Consider:
@Book {rattenhka,
author = "Bettina von Arnim and Gisela von Arnim",
title = "Das Leben der Hochgräfin Gritta von Rattenzuhausbeiuns",
…
}

The authors are usually given as “Bettina and Gisela von Arnim” (mother 
and daughter; similar “Jacob and Wilhelm Grimm” as brothers or “Bettina 
and Achim von Arnim” as a couple) – is there a good solution for related 
authors?


Hraban
@Book {WiFo2010,
title = "Lesetypografie",
author = "Willberg, Hans Peter and Forssman, Friedrich",
publisher = "Hermann Schmidt",
address = "Mainz",
year = "2010",
  language = "german",
keywords = "typography",
}

@Book {kgdz,
author = "Stephen Hawking and Leonard Mlodinow",
title = "Die kürzeste Geschichte der Zeit",
title:en = "A Briefer History of Time",
publisher = "Rowohlt",
address = "Reinbek",
year = "2005",
language = "german",
keywords = "physics;astromy;time",
}

@Book {rattenhka,
author = "Bettina von Arnim and Gisela von Arnim",
title = "Das Leben der Hochgräfin Gritta von Rattenzuhausbeiuns",
editor = "Otto Mallon",
publisher = "S. Martin Fraenkel",
address = "Berlin",
year = "1926",
language = "german",
keywords = "novel;historical",
}
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Bibliography cite

2023-08-01 Thread Robert via ntg-context
Dear List members,

For my academic work with context I need the following cite according to Apa 
standards:

Knuth (1984, p. 12) mentions ….

The matrix is this:

AUTHOR (, p.~n).

I reckon this can somehow be accomplished with the \setupbtx command.

(Standard these and other variants are possible: AUTHOR () and AUTHOR , 
p. n.)

I tried different setups: \setupbtx[apa:cite:authoryear], and 
\setupbtx[apa:cite:authoryears], I played with the lefttext, righttext and 
other options, but none of them give the desired result.

Thank you for any suggestions.

Regards,

Robert



@article{Knuth1984,
author={Knuth, Donald E.},
title={Literate Programming},
journal={The Computer Journal}, Volume={27}, Number={2}, year={1984}, 
Pages={97--111}, 
}

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] bibliography problem

2022-08-03 Thread Henning Hraban Ramm via ntg-context

Am 29.07.22 um 20:19 schrieb Henning Hraban Ramm via ntg-context:

Hi,
Denis’ article in the CG journal uses the publications module with a 
.bib database. With ConTeXt LMTX 2022.05.11 all was well, with the 
current version (2022.07.27) it can’t find the entries of the database:

...

But the entries do exist in the bib file, and a minimal example works.

In both cases, the setup looks like:

\usebtxdataset[dmlig][dm-ligatures/references.bib]
\setupbtx[dataset=dmlig]
\usebtxdefinitions[apa]
\setupbtx[apa:cite][alternative=num]


Unfortunately, I got no answers. But I found out:

\definebtxdataset[dmlig]
\usebtxdataset[dmlig][dm-ligatures/references.bib]

If I use a btxdataset other than "default",
\usebtxdefinitions[apa]
has no effect, i.e. "default" style is used.

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] bibliography problem

2022-07-29 Thread Henning Hraban Ramm via ntg-context

Hi,
Denis’ article in the CG journal uses the publications module with a 
.bib database. With ConTeXt LMTX 2022.05.11 all was well, with the 
current version (2022.07.27) it can’t find the entries of the database:


open source > level 2, order 20, name 'dm-ligatures/dm-ligatures.tex'
publications> adding bib data to set 'dmlig' from source 
'dm-ligatures/references.bib'
interface   > macros > processed mkvi file 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi', 
delta 94
interface   > macros > processed mkvi file 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi', 
delta 0
open source > level 3, order 21, name 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
close source> level 3, order 21, name 
'/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi'
structures  > bookmark: Automatic suppression of unwanted ligatures 
— Denis Maier
structure   > sectioning > part @ level 1 : 1 -> Automatic 
suppression of unwanted ligatures\doifsomething {Denis Maier}{ —\ 
}\IndexAuthor Denis Maier

structures  > bookmark: Introduction
structure   > sectioning > section @ level 3 : 1.0.1 -> Introduction
fonts   > defining > unable to define 
'IBMPlexSansHebrew-regular' as 'dummy--5'

publications> analyzing previous publication run for 'dmlig'
publications> no entry 'taraborelli:beauty' found in dataset 'dmlig'
publications> no entry 'knuth:texbook' found in dataset 'dmlig'
publications> no entry 'duden' found in dataset 'dmlig'
publications> no entry 'detailtypografie' found in dataset 'dmlig'
publications> no entry 'butterick:practical-typography-ligatures' 
found in dataset 'dmlig'

publications> no entry 'bringhurst:style' found in dataset 'dmlig'
publications> no entry 'rafaeli:book-typography' found in dataset 
'dmlig'


But the entries do exist in the bib file, and a minimal example works.

In both cases, the setup looks like:

\usebtxdataset[dmlig][dm-ligatures/references.bib]
\setupbtx[dataset=dmlig]
\usebtxdefinitions[apa]
\setupbtx[apa:cite][alternative=num]

I don’t know what to look for. Any hints?

Hraban
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Bibliography (follow up)

2022-03-12 Thread Willi Egger via ntg-context
Hello,I am following up on my previous mail from 22-02-2022…In the meantime I was able to find out, what the problem with the crippled publication in the list was. — After adapting the *.bbl file it now works. — However there is  most probably a bug in the setup of the list-layout. What you can see in the attached pdf, the issue-number is collated to the title, no comma no space.I would be really happy, if someone could confirm this problem.Attachments:MWE including the publist-test.tex, publist-test.bbl and the publist-test.pdf

publist-test.bbl
Description: Binary data


publist-test.tex
Description: Binary data


publist-test.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Bibliography

2022-02-22 Thread Willi Egger via ntg-context
Hi all,I have a rather old project which involves a bibbliography of about 60 entries. — Now I tried to use the publications environment after reading the manual. — I must say environment this is impressive!However I struggle with getting it working.1. When using my dataset, which is encoded as a ‘bbl’ type file I get a list of publications but the entries are uncomplete. enclosed files: publist-test.tex, test-literaturliste.bbl, publist-test.pdf2. When I use a buffer for testing, I do not get \cite reference nor a publication list: publist-buffer-test,texCan someone advise?Kind regardsWilli

test-literaturliste.bbl
Description: Binary data


publist-buffer-test.tex
Description: Binary data


publist-buffer-test.pdf
Description: Adobe PDF document


publist-test.tex
Description: Binary data


publist-test.pdf
Description: Adobe PDF document
	___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Alan Braslau
On Thu, 16 May 2019 12:48:30 +0200
Denis Maier  wrote:

> (2) there is a clear, defined standard that can be followed.
> 
> This is actually the easier question: A few standard styles
> immediately come to mind: MLA, Chicago 16th and 17 edition in its
> various variants (author-date, note-bibliography,
> fullnote-bibliography, both note styles with and without ibid.),
> Modern Humanities Research Association... I guess having a model for
> all major variants (authordate, authoryear, numeric, alphanumeric)
> would be a good starting point.

The main point is to have some document we can turn to as a reference
so as to avoid (endless) debates about the "proper" way to do things.
It has always been our intention to support more styles, but not
endless variants as almost no publishers, universities and other
institutions correctly follow any established specifications.

> Also, we can implement more styles if (1) there is a need

A call for specific use cases.

--
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Alan Braslau
On Thu, 16 May 2019 10:02:44 +0200
"Jan U. Hasecke"  wrote:

> But as I collect my internet citations with zotero I always get a
> urldate for all internet entries. I think that giving the urldate is
> better than insert a publication year as nobody knows how long a
> website was present and when it was published for the first time.
> 
> Is it possible to insert something like "last accessed on the internet
> on -MM-DD" in that field automatically if no publication year is
> provided but a urldate?

urldate is a non-standard field that Zotero (and others) have added.
It is not handled by the revtex bibliography style that can be used as
the reference for the "APS" style.

The APA style guide suggests putting the author followed by the access
date, then the title, adding "Retrieved from" followed by the URL.

Internet citations, unless they correspond to a "preprint" on an
archived list server are questionable references anyways, which is why
the APS suggests using (unpublished).

--
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread nyssus

On 16/05/2019 16:02, Jan U. Hasecke wrote:
> Am 16.05.19 um 16:12 schrieb nyssus:
>> Honestly, some way to use CSL files to style bibliography would be ideal
>> here, but that doesn't seem to currently exist
> Have a look at Pablos way to go from pandoc via xhtml to context:
>
>
That's good if you're trying to convert documents from Markdown to
ConTeXt, but not so good if you're used to writing documents in ConTeXt
(or LaTeX for that matter) directly, as it's rather cumbersome to edit
individual bibliographic entries outputted by pandoc compared to
citation commands.

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Denis Maier
Very interesting project. I have a workflow where I produce ConTeXt sources
from markdown via pandoc. But using XML could be even better. Nevertheless,
this still leaves us with the problem that CSL support with pandoc-citeproc
has a few glitches (wrong disambiguation; ibids can be ambiguous, some
features aren't implemented at all).

Am Do., 16. Mai 2019 um 17:02 Uhr schrieb Jan U. Hasecke <
juh+ntg-cont...@mailbox.org>:

> Am 16.05.19 um 16:12 schrieb nyssus:
> > Honestly, some way to use CSL files to style bibliography would be ideal
> > here, but that doesn't seem to currently exist
>
> Have a look at Pablos way to go from pandoc via xhtml to context:
>
> https://github.com/ousia/from-pandoc-to-context
>
> Or a slightly improved fork:
> https://github.com/aksdb/pandoc-xhtml
>
> I use this to write books with Markdown and produce the outputs with
> pandoc to epub and pdf.
>
> With Pandoc you can use CSL files and include the bibliography via XML
> into ConTeXt.
>
> HTH
> juh
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Jan U. Hasecke
Am 16.05.19 um 16:12 schrieb nyssus:
> Honestly, some way to use CSL files to style bibliography would be ideal
> here, but that doesn't seem to currently exist

Have a look at Pablos way to go from pandoc via xhtml to context:

https://github.com/ousia/from-pandoc-to-context

Or a slightly improved fork:
https://github.com/aksdb/pandoc-xhtml

I use this to write books with Markdown and produce the outputs with
pandoc to epub and pdf.

With Pandoc you can use CSL files and include the bibliography via XML
into ConTeXt.

HTH
juh
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Denis Maier
Well, currently not. But citeproc-rs, a CSL implementation written in Rust
is in the making. I don't know if there will be any progress in the near
future, but it should be possible to use this via lua bindings.

Am Do., 16. Mai 2019 um 16:12 Uhr schrieb nyssus <
rocksolidbrassba...@gmail.com>:

>
> On 16/05/2019 11:48, Denis Maier wrote:
> > This is more tricky. I do very much like what ConTeXt has to offer for
> > typesetting finished works, but I currently would not use it for writing
> a
> > larger work in the Humanities. For smaller pieces I would probably write
> in
> > Markdown, use pandoc to produce a context source file, and pandoc will me
> > automatic citations via pandoc-citeproc (yet with a few glitches). For a
> > longer work I currently don't have an alternative to biblatex. And I
> guess
> > that is the point: Those with rather complex requirements for citations
> > will either do them manually or use biblatex for this so it's not so easy
> > to say if "there is a need". Having said that, I would really like being
> > able to use ConTeXt here as well. So having a author-title style for the
> > footnotes and the bibliographies would be more than welcome.
> >
> Honestly, some way to use CSL files to style bibliography would be ideal
> here, but that doesn't seem to currently exist
>
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread nyssus

On 16/05/2019 11:48, Denis Maier wrote:
> This is more tricky. I do very much like what ConTeXt has to offer for
> typesetting finished works, but I currently would not use it for writing a
> larger work in the Humanities. For smaller pieces I would probably write in
> Markdown, use pandoc to produce a context source file, and pandoc will me
> automatic citations via pandoc-citeproc (yet with a few glitches). For a
> longer work I currently don't have an alternative to biblatex. And I guess
> that is the point: Those with rather complex requirements for citations
> will either do them manually or use biblatex for this so it's not so easy
> to say if "there is a need". Having said that, I would really like being
> able to use ConTeXt here as well. So having a author-title style for the
> footnotes and the bibliographies would be more than welcome.
>
Honestly, some way to use CSL files to style bibliography would be ideal
here, but that doesn't seem to currently exist
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Denis Maier
I am not the OP, but I'm very much interested in how referencing works with
ConTeXt so let me add to this.


> You can write your own style, or your own modified style.


Is the publications manual still up to date? Is there more recent
information available? How would I start writing my own style?

Concerning your two requirements for new styles:

(2) there is a clear, defined standard that can be followed.


This is actually the easier question: A few standard styles immediately
come to mind: MLA, Chicago 16th and 17 edition in its various variants
(author-date, note-bibliography, fullnote-bibliography, both note styles
with and without ibid.), Modern Humanities Research Association... I guess
having a model for all major variants (authordate, authoryear, numeric,
alphanumeric) would be a good starting point.

Also, we can implement more styles if (1) there is a need


This is more tricky. I do very much like what ConTeXt has to offer for
typesetting finished works, but I currently would not use it for writing a
larger work in the Humanities. For smaller pieces I would probably write in
Markdown, use pandoc to produce a context source file, and pandoc will me
automatic citations via pandoc-citeproc (yet with a few glitches). For a
longer work I currently don't have an alternative to biblatex. And I guess
that is the point: Those with rather complex requirements for citations
will either do them manually or use biblatex for this so it's not so easy
to say if "there is a need". Having said that, I would really like being
able to use ConTeXt here as well. So having a author-title style for the
footnotes and the bibliographies would be more than welcome.
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-16 Thread Jan U. Hasecke
Hi Alan,
thanks a lot for these hints.

Am 16.05.19 um 02:05 schrieb Alan Braslau:
> On Wed, 15 May 2019 14:27:21 +0200
> "Jan U. Hasecke"  wrote:
> 
>> is there an option to eliminate the "unpublished" in aps bibliography?
> 
> I suppose you mean the APS setup when NO date field is given
> ("to be published" for an article, "in press" for a book, and
> "unpublished" otherwise)?
> 
> You can redefine the setup btx:aps:nd (no date) to give something else,
> but you might have to go further not to get empty parenthesis.
> 
> A better solution, using the APS specification is to have a correct
> database. Maybe a different publication type category might be more
> appropriate.

I browsed through the mailing list to see that bibliographies are not
that easy. ;-)

I think I found a solution by providing a "year" in my database. That's
good enough for me.

But as I collect my internet citations with zotero I always get a
urldate for all internet entries. I think that giving the urldate is
better than insert a publication year as nobody knows how long a website
was present and when it was published for the first time.

Is it possible to insert something like "last accessed on the internet
on -MM-DD" in that field automatically if no publication year is
provided but a urldate?

Greetings
juh
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-15 Thread Alan Braslau
On Wed, 15 May 2019 14:27:21 +0200
"Jan U. Hasecke"  wrote:

> I understand that apa and aps are the only implemented styles. Is
> there any other style I can use?

You can write your own style, or your own modified style. Also, we can
implement more styles if (1) there is a need, and (2) there is a clear,
defined standard that can be followed.

Alan

--
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography APS Style without unpublished

2019-05-15 Thread Alan Braslau
On Wed, 15 May 2019 14:27:21 +0200
"Jan U. Hasecke"  wrote:

> is there an option to eliminate the "unpublished" in aps bibliography?

I suppose you mean the APS setup when NO date field is given
("to be published" for an article, "in press" for a book, and
"unpublished" otherwise)?

You can redefine the setup btx:aps:nd (no date) to give something else,
but you might have to go further not to get empty parenthesis.

A better solution, using the APS specification is to have a correct
database. Maybe a different publication type category might be more
appropriate.

--
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Bibliography APS Style without unpublished

2019-05-15 Thread Jan U. Hasecke
Hi all,

is there an option to eliminate the "unpublished" in aps bibliography?

I understand that apa and aps are the only implemented styles. Is there
any other style I can use?

TIA
juh
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography: I think module [aps] is rendering incorrectly the electronic category and others too

2019-03-21 Thread Alan Braslau
On Thu, 21 Mar 2019 13:16:04 -0300
Tomas Badan  wrote:

> Looking at context documentations and source code, it says that for
> electronic category we have:
> * Required fields: title
> * Optional fields: address, author, howpublished, month, note,
> organization, url, year, doi
> 
> So, when I run this simple code:
> 
> \startbuffer[example]
> @ELECTRONIC {example,
> title = "One title",
> url = "http://www.example.org;,
> }
> \stopbuffer
> 
> \usebtxdefinitions[aps]
> 
> \definebtxdataset[basic]
> \usebtxdataset[basic][example.buffer]
> \definebtxrendering
> [basic]
> [aps]
> [dataset=basic]
> 
> \setupbtx[dataset=basic]
> \nocite[example]
> 
> \starttext
> \placelistofpublications[basic]
> \stoptext
> 
> I've got an output that is similar with:
> 
> [1] , One title, http://www.example.org (unpublished)
> 
> which seems incorrect to me (author should not be rendered, and I was
> expecting year not to be accounted for too). Am I doing something
> wrong?
> 
> Thanks in advance
> Tomás
> 
> PS. Original question was posted here:
> https://tex.stackexchange.com/questions/480416/bibliography-what-is-the-correct-way-to-setup-and-invoke-the-category-electron


The APS style definitions currently expect:
"author", "collaboration", "organization"

and, indeed, if there is none, it should not include the comma.
So the texdefinition (in publ-imp-aps.mkvi) should be changed to:

\starttexdefinition unexpanded btx:aps:author
\btxdoif {author} {
\btxflush{author}
\btxcomma
}
\stoptexdefinition



Secondly, why do you expect not to have (unpublished)?
The APS style guides suggest that unpublished material
should be labeled "unpublished" or "private communication".

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Bibliography: I think module [aps] is rendering incorrectly the electronic category and others too

2019-03-21 Thread Tomas Badan
Looking at context documentations and source code, it says that for
electronic category we have:
* Required fields: title
* Optional fields: address, author, howpublished, month, note,
organization, url, year, doi

So, when I run this simple code:

\startbuffer[example]
@ELECTRONIC {example,
title = "One title",
url = "http://www.example.org;,
}
\stopbuffer

\usebtxdefinitions[aps]

\definebtxdataset[basic]
\usebtxdataset[basic][example.buffer]
\definebtxrendering
[basic]
[aps]
[dataset=basic]

\setupbtx[dataset=basic]
\nocite[example]

\starttext
\placelistofpublications[basic]
\stoptext

I've got an output that is similar with:

[1] , One title, http://www.example.org (unpublished)

which seems incorrect to me (author should not be rendered, and I was
expecting year not to be accounted for too). Am I doing something
wrong?

Thanks in advance
Tomás

PS. Original question was posted here:
https://tex.stackexchange.com/questions/480416/bibliography-what-is-the-correct-way-to-setup-and-invoke-the-category-electron
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Bibliography : wrong order of references when rendered by chapter

2019-03-18 Thread Romain Diss
Hi,

I try to use multiple renderings to place a bibliography list at the end
of each chapters. I use the option 'criterium=chapter' to place the
bibliography and i also use the options 'repeat=yes,method=local'
because I want each chapter to have its own bibliography with an
independant numbering (starting from 1 for each chapter).

However, it doesn't wwork as expected. When a reference that exists in a
previous chapter appears again in another one, the ordering is broken (I tried
th option 'continue=no' but I don't know what it does).

I don't know if it's very clear so here's a minimal 'non' working example (in
the second chapter, ward reference should be numbered 1 and knuth should be 2,
following the order of appearence in the bibliography list):

% mnwe.tex
\usebtxdataset[biblio.bib]
\setupbtxrendering
[repeat=yes,
continue=no,
method=local]

\startdocument
\startchapter[title=First chapter]
\input knuth \cite[knuth]\blank
\placelistofpublications[criterium=chapter]
\stopchapter

\startchapter[title=Second chapter]
\input ward \cite[ward,knuth]\blank
\placelistofpublications[criterium=chapter]
\stopchapter
\stopdocument
% end


% biblio.bib
@book{knuth,
 
title = "Title",
author = "Knuth",
publisher = "Publisher",
year = "2019",
}
@book{ward,
title = "Title",
author = "Ward", 
publisher = "Publisher",
year = "2019",
}
% end

Thank you for your help.

Best.

-- 
Romain Diss
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Bibliography not rendered

2019-01-12 Thread Jan U. Hasecke
Hi Alan,

thanks for the quick answer.

Am 11.01.19 um 17:26 schrieb Alan Braslau:
> @misc{} is not a defined category using the "default" rendering style (which 
> only recognizes @book and @article). See publ-imp-default.lua
> 

Is there a way to use other styles?

juh
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography not rendered

2019-01-11 Thread Alan Braslau
On Fri, 11 Jan 2019 16:44:39 +0100
"Jan U. Hasecke"  wrote:

> Hi,
> 
> using the first example from mkiv-publications.pdf I don't get a
> rendered bibliography.
> 
> juh
> 

@misc{} is not a defined category using the "default" rendering style (which 
only recognizes @book and @article). See publ-imp-default.lua
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography not rendered

2019-01-11 Thread Jan U. Hasecke
Sorry, I forgot to include the pdf I get.

Am 11.01.19 um 16:44 schrieb Jan U. Hasecke:
> Hi,
> 
> using the first example from mkiv-publications.pdf I don't get a
> rendered bibliography.
> 
> juh
> 



mwe.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography not rendered

2019-01-11 Thread Jan U. Hasecke
Hi,

using the first example from mkiv-publications.pdf I don't get a
rendered bibliography.

juh

@misc{greenpeace_dell_2017,
	title = {Dell},
	url = {http://www.greenpeace.org/usa/wp-content/uploads/2017/10/GGE2017_Dell.pdf},
	publisher = {Greenpeace Guide to greener Electronics – 2017 Company Report Card},
	editor = {Greenpeace},
	urldate = {2019-01-07},
	date = {2017},
	file = {GGE2017_Dell.pdf:/home/juh/.mozilla/firefox/1momrzyf.default-1472492810914/zotero/storage/MJ3ST9YB/GGE2017_Dell.pdf:application/pdf}
}

@misc{matrix-entwicklungsteam_arbeitsbuch_2017,
	title = {Arbeitsbuch zur Gemeinwohlbilanz 5.0 Kompakt},
	url = {https://www.ecogood.org/media/filer_public/04/8e/048e113f-5802-494e-866b-c3f8c8a6a674/gwoe_arbeitsbuch_5_0_kompaktbilanz.pdf},
	publisher = {Gemeinwohl-Ökonomie e.V.},
	author = {Blachfellner, Manfred and Drosg-Plöckinger, Angela and Fieber, Susanna and Hofielen, Gerd and Knakrügge, Lutz and Kofranek, Manfred and Koloo, Sigrid and Loy, Christian and Rüther, Christian and Sennes, Dominik and Sörgel, Regina and Teriete, Moritz},
	editor = {Matrix-Entwicklungsteam},
	urldate = {2019-01-07},
	date = {2017},
	file = {gwoe_arbeitsbuch_5_0_kompaktbilanz.pdf:/home/juh/.mozilla/firefox/1momrzyf.default-1472492810914/zotero/storage/7HD7PQ2Y/gwoe_arbeitsbuch_5_0_kompaktbilanz.pdf:application/pdf}
}\usebtxdataset[mwe.bib]
\starttext
\startbodymatter
a citation: \cite[matrix-entwicklungsteam_arbeitsbuch_2017,greenpeace_dell_2017]
\stopbodymatter
\startbackmatter
\startchapter[title=Bibliography]
\placelistofpublications
\stopchapter
\stopbackmatter
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography sort and name-hyphenation issues

2018-10-24 Thread Rik Kabel

List,

Given this example:

 \enabletrackers   [publications.authorhash]
 \startbuffer  [bib]
@book{dalambert1743,
   title   = {Traite de Dynamique},
   author  = {Jean Le Rond d’Alembert},
   publisher   = {David l’aîné},
   address = {Paris},
   language= {french},
   year= {1743},
}
@book{darwin1871,
   author  = {Charles Darwin},
   title   = {The Descent of Man and Selection in
  Relation to Sex},
   year= {1871},
   publisher   = {John Murray},
   address = {London},
}
@book{dee1564,
   author  = {John Dee},
   title   = {Monas Hieroglyphica},
   year= {1564},
   publisher   = {Gulielmus Sylvius},
   address = {Antwerp}
   language= {latin},
}
@book{defoe1704,
   author  = {Daniel Defoe},
   title   = {An Essay on the Regulation of the Press},
   year= {1704},
   publisher   = {sine nomine},
   address = {London},
}
@book{montaigne1908,
   title   = {The Essayes of {Michael} {Lord} of {Montaigne}},
   subtitle= {Done into {English} by {John} {Florio}},
   volumes = {3},
   volume  = {1},
   author  = {Montaigne, Michel de},
   introduction= {Thomas Seccombe},
   translator  = {John Florio},
   origlanguage= {latin},
   publisher   = {Grant Richards},
   address = {London},
   year= {1908},
   origyear= {1603},
}
@book{digbyetal1712,
   author  = {John Digby and others},
   title   = {{Epicurus’s} Morals},
   publisher   = {Sam. Briscoe},
   year= {1712},
   address = {London},
}
@book{querard1850,
   author  = {Joseph-Marie Quérard},
   title   = {Les supercheries littéraires dévoilées, galerie
  des auteurs apocryphes, supposés, déguisés,
  plagiaires, et des éditeurs infidèles, littérature
  française},
   year= {1850},
   publisher   = {Imprimerie Maulde et Renou},
   address = {Paris},
   language= {french},
}
 \stopbuffer
 \usebtxdefinitions[apa]
 \usebtxdataset[bib.buffer]
 \starttext
   \placebtxrendering  [method=dataset]
 \stoptext

I expect to see a bibliography (reference list in APA terms) in the order:

   d'Alembert
   Darwin
   Dee
   Defoe
   de Montaigne
   Digby
   Quérard

But the actual result is quite different (see attached), with de 
Montaigne following Digby, no hyphen between the initials in the Quérard 
entry, and an odd handling of d’Alembert. (The authorhash does have the 
hyphen for the Quérard entry.)


So, the question is, what can be done to get the desired (APA defined) 
order (alphabetize letter-by-letter, ignoring spaces, capitalization, 
hyphens,  apostrophes, periods, and accent marks)?


Beyond that, what can be done to get Montaigne sorted with M entries 
(displayed as “Montaigne, M. de” or “de Montaigne, M.”)?


--
Rik



huh.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-13 Thread Alan Braslau
On Sat, 12 Aug 2017 23:13:08 -0400
Rik Kabel  wrote:

> So organization will simply become a stand-in for author but with 
> different parsing rules. A book will require an author or editor or 
> organization. The first two will be parsed for surname, given name,
> and so on, while the last will not, and precedence rules will apply
> when more than one is present, as they do already.

I invite you to read the APA specifications.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-13 Thread Hans Hagen

On 8/13/2017 5:13 AM, Rik Kabel wrote:

On 2017-08-12 22:38, Alan Braslau wrote:

On Fri, 11 Aug 2017 14:58:53 -0400
Rik Kabel  wrote:


The lack of either an author or an editor is currently flagged in
ConTeXt as an error for books and perhaps other bibtex entry types as
well. Or do you mean to apply this recommendation to only the
electronic type or some other limited subset of types?

This will be corrected for types other than electronic when I look into
a consistent set.


Perhaps it is better to use the association name as an author and
protect it with a layer of curlies or quotation marks, as {{Apple,
Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do
the job and also serve to prevent what would surely be unwanted
abbreviation for styles that abbreviate what are parsed as given
names.

This won't happen. We made a design choice not to follow such sloppy
bibtex/LaTeX use and to require clean datasets. Apple Inc. is NOT a
named author, it is an organization, and the APA specification is clear
about this (it even has screwy rules about the first citation and then
the following when one should abbreviate names [such as APA]). Of
course, the specifications have to be fixed to handle this correctly
and consistently, also trying to be consistent with the fields that are
defined by the original bibtex documentation and followed by many
bibtex manipulating tools (such as jabref). The problem is that the use
of bibtex in the real world is a big mess!

ALan


So organization will simply become a stand-in for author but with 
different parsing rules. A book will require an author or editor or 
organization. The first two will be parsed for surname, given name, and 
so on, while the last will not, and precedence rules will apply when 
more than one is present, as they do already.


But until that point, as Hans said, using the author field and 
protecting it with curlies will work.


How will other screwy rules be handled? Will there be an override 
mechanism, or is it your belief that a compliant subsystem can be 
developed? (Yes, I know that is a false dichotomy.)

there is actually a concept of field sets and a lookup order

concerning authors, there are many issues there: upto 6 snippets and the 
number determines what is expected (mostly inherited from the mess but 
we added some in order to deal with complex combinations of names)


also, keep in mind that there's more than english names

all revealed in the manual (and we wil make some demos)

as one can export one can also easily generate one's one variant of the 
database for whatever purpose


(another nightmare is embedded tex: absolutely not standardized and a 
pain when trying to collapse and sort)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-12 Thread Rik Kabel

On 2017-08-12 22:38, Alan Braslau wrote:

On Fri, 11 Aug 2017 14:58:53 -0400
Rik Kabel  wrote:


The lack of either an author or an editor is currently flagged in
ConTeXt as an error for books and perhaps other bibtex entry types as
well. Or do you mean to apply this recommendation to only the
electronic type or some other limited subset of types?

This will be corrected for types other than electronic when I look into
a consistent set.


Perhaps it is better to use the association name as an author and
protect it with a layer of curlies or quotation marks, as {{Apple,
Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do
the job and also serve to prevent what would surely be unwanted
abbreviation for styles that abbreviate what are parsed as given
names.

This won't happen. We made a design choice not to follow such sloppy
bibtex/LaTeX use and to require clean datasets. Apple Inc. is NOT a
named author, it is an organization, and the APA specification is clear
about this (it even has screwy rules about the first citation and then
the following when one should abbreviate names [such as APA]). Of
course, the specifications have to be fixed to handle this correctly
and consistently, also trying to be consistent with the fields that are
defined by the original bibtex documentation and followed by many
bibtex manipulating tools (such as jabref). The problem is that the use
of bibtex in the real world is a big mess!

ALan


So organization will simply become a stand-in for author but with 
different parsing rules. A book will require an author or editor or 
organization. The first two will be parsed for surname, given name, and 
so on, while the last will not, and precedence rules will apply when 
more than one is present, as they do already.


But until that point, as Hans said, using the author field and 
protecting it with curlies will work.


How will other screwy rules be handled? Will there be an override 
mechanism, or is it your belief that a compliant subsystem can be 
developed? (Yes, I know that is a false dichotomy.)


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-12 Thread Alan Braslau
On Fri, 11 Aug 2017 14:58:53 -0400
Rik Kabel  wrote:

> The lack of either an author or an editor is currently flagged in 
> ConTeXt as an error for books and perhaps other bibtex entry types as 
> well. Or do you mean to apply this recommendation to only the
> electronic type or some other limited subset of types?

This will be corrected for types other than electronic when I look into
a consistent set.

> Perhaps it is better to use the association name as an author and 
> protect it with a layer of curlies or quotation marks, as {{Apple, 
> Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do 
> the job and also serve to prevent what would surely be unwanted 
> abbreviation for styles that abbreviate what are parsed as given
> names.

This won't happen. We made a design choice not to follow such sloppy
bibtex/LaTeX use and to require clean datasets. Apple Inc. is NOT a
named author, it is an organization, and the APA specification is clear
about this (it even has screwy rules about the first citation and then
the following when one should abbreviate names [such as APA]). Of
course, the specifications have to be fixed to handle this correctly
and consistently, also trying to be consistent with the fields that are
defined by the original bibtex documentation and followed by many
bibtex manipulating tools (such as jabref). The problem is that the use
of bibtex in the real world is a big mess!

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-12 Thread Hans Hagen

On 8/12/2017 5:48 PM, Rik Kabel wrote:

Sorry, rereading what I wrote, I see that I mistakenly suggested that 
the btx subsystem does not support origdate. It does, but it is a 
non-standard extension of bibtex, which was my point.


actually ther eis no bib tex standard at all ... it's just a set of 
fields organized by a unique identifier .. then some style make sure 
that the fields get rendered (and apa is a set of rules for fields + 
rendering ... a pretty complex and occasionally fuzzy one but Alan can 
elaborate on that)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-12 Thread Rik Kabel

On 2017-08-12 11:28, Rik Kabel wrote:

On 2017-08-12 04:54, Hans Hagen wrote:

On 8/11/2017 8:58 PM, Rik Kabel wrote:

On 2017-08-11 10:01, Alan Braslau wrote:

...


2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.


I do not think that this should be the case.

APA and Chicago/Turbanian (and doubtless others) accept association 
names as author names, and provide rules for handling them.


and as a consequence i bet this is why journals get typeset partly by 
hand (tweak and cheat on these things) ... and why each publisher 
then has its own style (with cheats and tricks)


The lack of either an author or an editor is currently flagged in 
ConTeXt as an error for books and perhaps other bibtex entry types 
as well. Or do you mean to apply this recommendation to only the 
electronic type or some other limited subset of types?


Perhaps it is better to use the association name as an author and 
protect it with a layer of curlies or quotation marks, as {{Apple, 
Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do 


one can do that of course (an dit will work) but then someone will 
come along and say that ...


our recomendation is that one spends some time on a proper database 
as it pays off


the job and also serve to prevent what would surely be unwanted 
abbreviation for styles that abbreviate what are parsed as given names.
we really try to get away from fuzzyness ... in fact, the bib format 
or at least the way it's often used is a structural coding nightmare 
(and often tex commands are then used to bypass things) .. i think 
that it never went through a proper 'design, test, review, revise' cycle


reverse engineering what is there + side effects took us quite a 
while and esp the author bit is a pain (this parsing) ... there have 
been proposals for alternatives in the past decades (take mlbibtex) 
but so far we're stuck with historic stuff: making a database in a 
format that is not that suitable (no nesting) using practices that 
are counter intuitive and demand lots of obscure magic


(one day Alan will wrap this up in an article)

Hans


Alan has stated elsewhere that his intent is to provide first an 
APA-compliant subsystem, and to add after that support for other 
regimes. He has also expressed an understandable reluctance to add 
non-standard fields to bibtex. But it is clearly impossible to provide 
an APA-compliant system under such a constraint—for example, for some 
works APA requires an original publication date and bibtex does not 
support that. It is similarly difficult to see how one can comply with 
other requirements of APA, such as square brackets around estimated 
dates for archival sources (how do you identify an estimated date?), 
constructing shortened titles that are then alphabetized by the first 
non-significant word, spelling out author names where two or more 
authors share the same abbreviated names, and so on. Biblatex attempts 
to address some of these issues with an explosion of new fields, and 
still, I think, does not succeed. CSL may do a better job on some of 
these, but again, I do not think that the type of organic standards 
set forth by APA and others are fully amenable to any automated 
parsing. This is why I suggested to Alan (off-line) that we need a 
mechanism to override the generated citation and 
bibliography/reference list entries with customized versions (\citeas, 
or additional fields for \cite).


Clearly bibtex is not compatible with the requirements of current 
documentation standards. Those who require compliant citation to 
whatever standard with which they are burdened need a better database, 
support for conversion from bibtex, and a mechanism to override 
whatever automated result is produced. Of these, the last is most 
crucial.


As to the specific issue of association names as author names: Why is 
widening the definition of the author name field using an 
already-supported protection mechanism worse than overloading the use 
of the organization field, which is intended denote an affiliation and 
is not currently supported in the major entry categories?


Sorry, rereading what I wrote, I see that I mistakenly suggested that 
the btx subsystem does not support origdate. It does, but it is a 
non-standard extension of bibtex, which was my point.


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-12 Thread Rik Kabel

On 2017-08-12 04:54, Hans Hagen wrote:

On 8/11/2017 8:58 PM, Rik Kabel wrote:

On 2017-08-11 10:01, Alan Braslau wrote:

...


2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.


I do not think that this should be the case.

APA and Chicago/Turbanian (and doubtless others) accept association 
names as author names, and provide rules for handling them.


and as a consequence i bet this is why journals get typeset partly by 
hand (tweak and cheat on these things) ... and why each publisher then 
has its own style (with cheats and tricks)


The lack of either an author or an editor is currently flagged in 
ConTeXt as an error for books and perhaps other bibtex entry types as 
well. Or do you mean to apply this recommendation to only the 
electronic type or some other limited subset of types?


Perhaps it is better to use the association name as an author and 
protect it with a layer of curlies or quotation marks, as {{Apple, 
Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do 


one can do that of course (an dit will work) but then someone will 
come along and say that ...


our recomendation is that one spends some time on a proper database as 
it pays off


the job and also serve to prevent what would surely be unwanted 
abbreviation for styles that abbreviate what are parsed as given names.
we really try to get away from fuzzyness ... in fact, the bib format 
or at least the way it's often used is a structural coding nightmare 
(and often tex commands are then used to bypass things) .. i think 
that it never went through a proper 'design, test, review, revise' cycle


reverse engineering what is there + side effects took us quite a while 
and esp the author bit is a pain (this parsing) ... there have been 
proposals for alternatives in the past decades (take mlbibtex) but so 
far we're stuck with historic stuff: making a database in a format 
that is not that suitable (no nesting) using practices that are 
counter intuitive and demand lots of obscure magic


(one day Alan will wrap this up in an article)

Hans


Alan has stated elsewhere that his intent is to provide first an 
APA-compliant subsystem, and to add after that support for other 
regimes. He has also expressed an understandable reluctance to add 
non-standard fields to bibtex. But it is clearly impossible to provide 
an APA-compliant system under such a constraint—for example, for some 
works APA requires an original publication date and bibtex does not 
support that. It is similarly difficult to see how one can comply with 
other requirements of APA, such as square brackets around estimated 
dates for archival sources (how do you identify an estimated date?), 
constructing shortened titles that are then alphabetized by the first 
non-significant word, spelling out author names where two or more 
authors share the same abbreviated names, and so on. Biblatex attempts 
to address some of these issues with an explosion of new fields, and 
still, I think, does not succeed. CSL may do a better job on some of 
these, but again, I do not think that the type of organic standards set 
forth by APA and others are fully amenable to any automated parsing. 
This is why I suggested to Alan (off-line) that we need a mechanism to 
override the generated citation and bibliography/reference list entries 
with customized versions (\citeas, or additional fields for \cite).


Clearly bibtex is not compatible with the requirements of current 
documentation standards. Those who require compliant citation to 
whatever standard with which they are burdened need a better database, 
support for conversion from bibtex, and a mechanism to override whatever 
automated result is produced. Of these, the last is most crucial.


As to the specific issue of association names as author names: Why is 
widening the definition of the author name field using an 
already-supported protection mechanism worse than overloading the use of 
the organization field, which is intended denote an affiliation and is 
not currently supported in the major entry categories?


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-12 Thread Hans Hagen

On 8/11/2017 8:58 PM, Rik Kabel wrote:

On 2017-08-11 10:01, Alan Braslau wrote:

...


2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.


I do not think that this should be the case.

APA and Chicago/Turbanian (and doubtless others) accept association 
names as author names, and provide rules for handling them.


and as a consequence i bet this is why journals get typeset partly by 
hand (tweak and cheat on these things) ... and why each publisher then 
has its own style (with cheats and tricks)


The lack of either an author or an editor is currently flagged in 
ConTeXt as an error for books and perhaps other bibtex entry types as 
well. Or do you mean to apply this recommendation to only the electronic 
type or some other limited subset of types?


Perhaps it is better to use the association name as an author and 
protect it with a layer of curlies or quotation marks, as {{Apple, 
Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do 


one can do that of course (an dit will work) but then someone will come 
along and say that ...


our recomendation is that one spends some time on a proper database as 
it pays off


the job and also serve to prevent what would surely be unwanted 
abbreviation for styles that abbreviate what are parsed as given names.
we really try to get away from fuzzyness ... in fact, the bib format or 
at least the way it's often used is a structural coding nightmare (and 
often tex commands are then used to bypass things) .. i think that it 
never went through a proper 'design, test, review, revise' cycle


reverse engineering what is there + side effects took us quite a while 
and esp the author bit is a pain (this parsing) ... there have been 
proposals for alternatives in the past decades (take mlbibtex) but so 
far we're stuck with historic stuff: making a database in a format that 
is not that suitable (no nesting) using practices that are counter 
intuitive and demand lots of obscure magic


(one day Alan will wrap this up in an article)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-11 Thread Rik Kabel

On 2017-08-11 10:01, Alan Braslau wrote:

...


2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.


I do not think that this should be the case.

APA and Chicago/Turbanian (and doubtless others) accept association 
names as author names, and provide rules for handling them.


The lack of either an author or an editor is currently flagged in 
ConTeXt as an error for books and perhaps other bibtex entry types as 
well. Or do you mean to apply this recommendation to only the electronic 
type or some other limited subset of types?


Perhaps it is better to use the association name as an author and 
protect it with a layer of curlies or quotation marks, as {{Apple, 
Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do 
the job and also serve to prevent what would surely be unwanted 
abbreviation for styles that abbreviate what are parsed as given names.


--
Rik
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography in MKIV, custom rendering

2017-08-11 Thread Alan Braslau
Hello,

You find a need to modify the rendering of the bibliography as you are
misusing the bibtex data entry.

Here is your example, corrected:

1) @electronic is more appropriate than @misc;
2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.

Note that the only difference, in fact, between @electronic and @misc
is this optional field, organization. We get this from the bibtex
references and from the standard definitions in bibtex tools such as
jabref.

Your example did point out a correction that should now be in the APS
specification definitions in the latest version that can be found on
the Garden. Previously, a url (or doi) got included as a hyperlink
tag to the text "howpublished" field. The logic has been modified to
show the url (or doi) explicitly if present, in the absence of the
howpublished field.

Alan



\startbuffer [input]

@electronic{objective-c,
 organization = "Apple Inc.",
 note = "Online; accessed at 31-July-2017",
 title = "About Objective-C",
 url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
 year = "2014"
}
\stopbuffer

\usebtxdataset[default][input.buffer]
\usebtxdefinitions[aps]

\setupinteraction [state=start]

\starttext
According to Apple Inc., Objective-C is the main programming language, 
when writing software for MacOS~\cite[objective-c].

\placelistofpublications

\showbtxdatasetcompleteness
\stoptext



---- Forwarded Message 
Subject: [NTG-context] Bibliography in MKIV, custom rendering
Date: Mon, 31 Jul 2017 04:23:16 +0200
From: Gerion Entrup <gerion.entrup-c...@flump.de>
Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
To: ntg-context@ntg.nl

> Hi,
> 
> I need your help again. I've a bibliography and some entries
> references to websites. Unfortunately the URL is not always rendered
> and the name ist always parsed as name of a person, not from an
> organisation etc.
> 
> What I want to achieve is to use the standard aps style, but with
> additionally the following two rules:
> 1. The name is always rendered without abbrevations (I guess, this is 
> authorconversion=normal).
> 2. If an URL is given, it is always rendered.
> 
> My input is a bib-file. Here is a minimal example:
> 
> input.bib
> ```
> @misc{objective-c,
> author = "Apple Inc.",
> note = "Online; accessed at 31-July-2017",
> title = "About Objective-C",
> url =
> "https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
> year = "2014" }
> ```
> 
> test.tex
> ```
> \usebtxdataset[default][input.bib]
> \usebtxdefinitions[aps]
> \setupbtx[default:cite][alternative=num]
> \setupbtx[default:list][authorconversion=normal]
> 
> \starttext
> According to Apple Inc., Objective-C is the main programming
> language, when writing software for MacOS~\cite[objective-c].
> 
> \placelistofpublications
> \stoptext
> ```
> 
> I've tried to understand the manual, yout can see some of my attempts
> in the minimal example. But I don't get really far.
> 
> Can you give me a hint?
> 
> Gerion
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-01 Thread Hans Hagen

On 7/31/2017 9:28 PM, Gerion Entrup wrote:

Am Montag, 31. Juli 2017, 04:23:16 CEST schrieb Gerion Entrup:

Hi,

I need your help again. I've a bibliography and some entries references to
websites. Unfortunately the URL is not always rendered and the name ist always
parsed as name of a person, not from an organisation etc.

What I want to achieve is to use the standard aps style, but with additionally
the following two rules:
1. The name is always rendered without abbrevations (I guess, this is
authorconversion=normal).
2. If an URL is given, it is always rendered.

My input is a bib-file. Here is a minimal example:

input.bib
```
@misc{objective-c,
 author = "Apple Inc.",
 note = "Online; accessed at 31-July-2017",
 title = "About Objective-C",
 url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
 year = "2014"
}
```

test.tex
```
\usebtxdataset[default][input.bib]
\usebtxdefinitions[aps]
\setupbtx[default:cite][alternative=num]
\setupbtx[default:list][authorconversion=normal]

\starttext
According to Apple Inc., Objective-C is the main programming language, when 
writing software for MacOS~\cite[objective-c].

\placelistofpublications
\stoptext
```

I've tried to understand the manual, yout can see some of my attempts in the
minimal example. But I don't get really far.

Can you give me a hint?


I have "fixed" this with directly modifying the publ-imp-aps.mkvi. I guess,
this is the worst way to achive this thing, but I don't know a better one.

Here is the patch, if someone is interested.

Gerion

--- publ-imp-aps.mkvi.original  2017-07-31 21:23:14.736856430 +0200
+++ publ-imp-aps.mkvi   2017-07-31 21:24:46.860462851 +0200
@@ -58,7 +58,7 @@
  \definebtx
[aps:\s!list]
[aps]
-  [\c!authorconversion=normalshort]
+  [\c!authorconversion=normal]
  
  \definebtx

[aps:\s!list:author]
@@ -1117,6 +1117,12 @@
  
  \startsetups btx:aps:list:misc

  \fastsetup{btx:aps:list:electronic}
+\btxdoif {url} {
+\btxspace
+\btxleftparenthesis
+\goto{\hyphenatedurl{\btxflush{url}}}[url(\btxflush{url})]
+\btxrightparenthesis
+}
  % Note that organization is an "ignored" field.
  \stopsetups


just load the aps style and then in your own style put the overloads 
(you can then use \setupbtx)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-07-31 Thread Gerion Entrup
Am Montag, 31. Juli 2017, 04:23:16 CEST schrieb Gerion Entrup:
> Hi,
> 
> I need your help again. I've a bibliography and some entries references to 
> websites. Unfortunately the URL is not always rendered and the name ist 
> always 
> parsed as name of a person, not from an organisation etc.
> 
> What I want to achieve is to use the standard aps style, but with 
> additionally 
> the following two rules:
> 1. The name is always rendered without abbrevations (I guess, this is 
> authorconversion=normal).
> 2. If an URL is given, it is always rendered.
> 
> My input is a bib-file. Here is a minimal example:
> 
> input.bib
> ```
> @misc{objective-c,
> author = "Apple Inc.",
> note = "Online; accessed at 31-July-2017",
> title = "About Objective-C",
> url = 
> "https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
> year = "2014"
> }
> ```
> 
> test.tex
> ```
> \usebtxdataset[default][input.bib]
> \usebtxdefinitions[aps]
> \setupbtx[default:cite][alternative=num]
> \setupbtx[default:list][authorconversion=normal]
> 
> \starttext
> According to Apple Inc., Objective-C is the main programming language, when 
> writing software for MacOS~\cite[objective-c].
> 
> \placelistofpublications
> \stoptext
> ```
> 
> I've tried to understand the manual, yout can see some of my attempts in the 
> minimal example. But I don't get really far.
> 
> Can you give me a hint?

I have "fixed" this with directly modifying the publ-imp-aps.mkvi. I guess,
this is the worst way to achive this thing, but I don't know a better one.

Here is the patch, if someone is interested.

Gerion

--- publ-imp-aps.mkvi.original  2017-07-31 21:23:14.736856430 +0200
+++ publ-imp-aps.mkvi   2017-07-31 21:24:46.860462851 +0200
@@ -58,7 +58,7 @@
 \definebtx
   [aps:\s!list]
   [aps]
-  [\c!authorconversion=normalshort]
+  [\c!authorconversion=normal]
 
 \definebtx
   [aps:\s!list:author]
@@ -1117,6 +1117,12 @@
 
 \startsetups btx:aps:list:misc
 \fastsetup{btx:aps:list:electronic}
+\btxdoif {url} {
+\btxspace
+\btxleftparenthesis
+\goto{\hyphenatedurl{\btxflush{url}}}[url(\btxflush{url})]
+\btxrightparenthesis
+}
 % Note that organization is an "ignored" field.
 \stopsetups

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography in MKIV, custom rendering

2017-07-30 Thread Gerion Entrup
Hi,

I need your help again. I've a bibliography and some entries references to 
websites. Unfortunately the URL is not always rendered and the name ist always 
parsed as name of a person, not from an organisation etc.

What I want to achieve is to use the standard aps style, but with additionally 
the following two rules:
1. The name is always rendered without abbrevations (I guess, this is 
authorconversion=normal).
2. If an URL is given, it is always rendered.

My input is a bib-file. Here is a minimal example:

input.bib
```
@misc{objective-c,
author = "Apple Inc.",
note = "Online; accessed at 31-July-2017",
title = "About Objective-C",
url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html;,
year = "2014"
}
```

test.tex
```
\usebtxdataset[default][input.bib]
\usebtxdefinitions[aps]
\setupbtx[default:cite][alternative=num]
\setupbtx[default:list][authorconversion=normal]

\starttext
According to Apple Inc., Objective-C is the main programming language, when 
writing software for MacOS~\cite[objective-c].

\placelistofpublications
\stoptext
```

I've tried to understand the manual, yout can see some of my attempts in the 
minimal example. But I don't get really far.

Can you give me a hint?

Gerion
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography issue, @ELECTRONIC editor

2017-02-24 Thread Rik Kabel

On 2017-02-24 19:31, Alan Braslau wrote:

On Fri, 24 Feb 2017 12:36:28 -0500
Rik Kabel  wrote:


Although either editor or author should be accepted, only author is
processed. There is a warning message generated by the publications
subsystem: unable to create short for 'Edited', needs one of
[author,editor] but clearly there is an editor. A reasonable
workaround is to use author instead of editor, but it would be nice
to have a fix.

Editor is not a standard field for the entry @electronic.
It is defined for @article, @periodical, @book, @inbook, @incollection,
and @proceedings. This follows the bibtex documentation and the
standard tools used for maintaining bib files.

Of course, we could add this, or any other field, but I find no entry
either in the APA Specifications describing this.

Alan

Sorry. You are, of course, right about that. I misread the table in 
mkiv-publications.


The problem I have is that all non-author electronic entries are grouped 
at the top of the bibliography by date. However, APA for electronic 
entries with no author should use the title (or a few salient words from 
the text) at the beginning of the bibliography entry. Currently ConTeXt 
uses a blank space and the date.


--
Rik

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography issue, @ELECTRONIC editor

2017-02-24 Thread Alan Braslau
On Fri, 24 Feb 2017 12:36:28 -0500
Rik Kabel  wrote:

> Although either editor or author should be accepted, only author is
> processed. There is a warning message generated by the publications
> subsystem: unable to create short for 'Edited', needs one of
> [author,editor] but clearly there is an editor. A reasonable
> workaround is to use author instead of editor, but it would be nice
> to have a fix.

Editor is not a standard field for the entry @electronic.
It is defined for @article, @periodical, @book, @inbook, @incollection,
and @proceedings. This follows the bibtex documentation and the
standard tools used for maintaining bib files.

Of course, we could add this, or any other field, but I find no entry
either in the APA Specifications describing this.

Alan

-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography issue, @ELECTRONIC editor

2017-02-24 Thread Rik Kabel

ConTeXters,

The following example demonstrates an issue with the ELECTRONIC bib type:

   \startbuffer[TestBib]
   @ELECTRONIC{Edited,
  editor = {An Editor},
  title = {A title},
  url = {http://www.example.com},
  year = {2017},
   }
   @ELECTRONIC{Authored,
  author = {An Author},
  title = {Another title},
  url = {http://www.example.com},
  year = {2017},
   }
   \stopbuffer
 \loadbtxdefinitionfile[apa]
 \usebtxdefinitions[apa]
 \usebtxdataset[TestBib.buffer]
 \definebtxrendering   [Pubs][apa]
   \enabletrackers[publications.authorhash]
   \starttext
   \nocite[*]
   \placelistofpublications[Pubs]
   \stoptext

Although either editor or author should be accepted, only author is 
processed. There is a warning message generated by the publications 
subsystem:


   unable to create short for 'Edited', needs one of [author,editor]

but clearly there is an editor. A reasonable workaround is to use author 
instead of editor, but it would be nice to have a fix.


--
Rik
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography sorting order by Czech alphabet in Context

2017-02-08 Thread Petra Janouchová
Hello Alan,

I have tried the solution you have suggested, nevertheless it does not
affect the position of letter 'Ch' in the list of publications.

Setting the \mainlanguage[cz] affects for example format of \date, but not
the alphabetical order of bibliography. I have tried switching to other
languages like fr, de, nl and none of them had any effect on the sorting.

Commands \setupdelimitedtext[language=cz] and \setupbtxdataset
[language=cz] do not have any effect either.


Is there any way how to change the alphabet sequence of specific language,
in this case of Czech?
It seems like Ch is hardcoded to preceed C and Č. I suspect this may be
also the case of other alphabets.

Thank you,

Petra

On 8 February 2017 at 17:08, Alan Braslau  wrote:

> Hello,
>
> I believed that the sorting order follows the current active language
> (\mainlanguage[cz]).
>
> You might want to try
> \setupbtxdataset [language=cz]
> but I have never used this (I believe that it sets the default language
> for entries lacking a language= field).
>
>
> Sorting can be controlled as follows:
> \startsection [title=Bibliografie]
>   \setupdelimitedtext [language=cz]
>   \placelistofpublications
> \stopsection
>
> This is useful for multilingual documents.
>
> Other settings for \setupdelimitedtext [language=...] are
>  (the default, use the current active language)
> local   (respect the local language directives, i.e. the bibtex entry
>  field language=)
> global  (impose the main document language)
> en, de, nl, ...
>
>
> Alan
>
>
> On Tue, 7 Feb 2017 21:17:03 +0100
> Petra Janouchová  wrote:
>
> > Hello,
> >
> > I am fairly new to the ConTeXt community and I am trying to sort
> > bibliographical references for my thesis. I need to be able to set the
> > sorting order of the bibliographical references by Czech alphabet
> > (e.g., C,Č,D,Ch,...etc.). English sorting puts Ch before C or Č,
> > but in Czech it needs to be after D. Any ideas?
> >
> > http://tex.stackexchange.com/questions/352496/bibliography-
> sorting-order-by-czech-alphabet-in-context/352514#352514
> >
> > Here is the minimal example
> >
> > \mainlanguage[cz]
> >
> > \usebtxdataset[bibliotest.bib]
> > \usebtxdefinitions[apa]
> >
> > \unprotect %here I substitute the annoying ampersand with czech a
> > \def\textampersand{a}
> > \protect
> >
> >
> >  \setupbtx
> >  [apa:cite]
> >  [left=,
> >   right=,
> > separator:2={\btxsemicolon}, % :0 and :1 - between items of a list
> > separator:3={\btxsemicolon},
> > separator:4={\btxsemicolon},
> > separator:names:2={\btxcomma},
> > separator:names:3={\btxcomma},
> > separator:names:4={\btxcomma},
> > etaldisplay=3,
> > etallimit=3
> > ]
> >
> >
> >
> > \starttext
> >
> > \cite[righttext={{123},{116-156}}][Danton2004, Cicikova2011].
> >
> > \cite[Cicikova2011]
> >
> > \cite[Chichikova1978]
> >
> > \startchapter[title=Bibliografie]
> > \placelistofpublications
> > \stopchapter
> > \stoptext
> >
> > and the database bibliotest.bib
> >
> > @book{Danton2004,
> > address = {Oxford},
> > author = {Danton, Gocha R. and {De Angelis}, Franco},
> > publisher = {Oxford University School of Archaeology},
> > title = {{The archaeology of Greek colonisation: essays dedicated to
> > Sir John Boardman}},
> > year = {2004}
> >  }
> >
> > @article{Cicikova2011,
> > address = {Kazanlak},
> > annote = {PDF},
> > author = {{\v{C}}i{\v{c}}ikova, M},
> > pages = {116--121},
> > journal = {{Varia Thracica}},
> > title = {{Article Title}},
> > year = {2011}
> > }
> >
> > @book{Chichikova1978,
> > address = {Oxford},
> > author = {Chichikova, Maria and Dimitrov, Dimitur P. and Alexieva,
> > Marguerite and Author, Name},
> > isbn = {0-86054-003-0},
> > keywords = {Seuthopolis,Thracians},
> > language = {eng},
> > publisher = {BAR Supplementary Series 38},
> > title = {{The Thracian city of Seuthopolis}},
> > year = {1978}
> > }
> >
> > Thanks in advance,
> >
> > Petra
> >
>
>
>
> --
> Alan Braslau
> CEA DSM-IRAMIS-SPEC
> CNRS UMR 3680
> Orme des Merisiers
> 91191 Gif-sur-Yvette cedex FRANCE
> tel: +33 1 69 08 73 15
> fax: +33 1 69 08 87 86
> mailto:alan.bras...@cea.fr
>



-- 
*Petra Janouchová*
Doctoral candidate of Ancient history,
Faculty of Arts, Charles University in Prague

https://cuni.academia.edu/PetraJanouchova
petra.janouch...@gmail.com
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography sorting order by Czech alphabet in Context

2017-02-08 Thread Alan Braslau
Hello,

I believed that the sorting order follows the current active language
(\mainlanguage[cz]).

You might want to try
\setupbtxdataset [language=cz]
but I have never used this (I believe that it sets the default language
for entries lacking a language= field).


Sorting can be controlled as follows:
\startsection [title=Bibliografie]
  \setupdelimitedtext [language=cz]
  \placelistofpublications
\stopsection

This is useful for multilingual documents.

Other settings for \setupdelimitedtext [language=...] are
 (the default, use the current active language)
local   (respect the local language directives, i.e. the bibtex entry
 field language=)
global  (impose the main document language)
en, de, nl, ...


Alan


On Tue, 7 Feb 2017 21:17:03 +0100
Petra Janouchová  wrote:

> Hello,
> 
> I am fairly new to the ConTeXt community and I am trying to sort
> bibliographical references for my thesis. I need to be able to set the
> sorting order of the bibliographical references by Czech alphabet
> (e.g., C,Č,D,Ch,...etc.). English sorting puts Ch before C or Č,
> but in Czech it needs to be after D. Any ideas?
> 
> http://tex.stackexchange.com/questions/352496/bibliography-sorting-order-by-czech-alphabet-in-context/352514#352514
> 
> Here is the minimal example
> 
> \mainlanguage[cz]
> 
> \usebtxdataset[bibliotest.bib]
> \usebtxdefinitions[apa]
> 
> \unprotect %here I substitute the annoying ampersand with czech a
> \def\textampersand{a}
> \protect
> 
> 
>  \setupbtx
>  [apa:cite]
>  [left=,
>   right=,
> separator:2={\btxsemicolon}, % :0 and :1 - between items of a list
> separator:3={\btxsemicolon},
> separator:4={\btxsemicolon},
> separator:names:2={\btxcomma},
> separator:names:3={\btxcomma},
> separator:names:4={\btxcomma},
> etaldisplay=3,
> etallimit=3
> ]
> 
> 
> 
> \starttext
> 
> \cite[righttext={{123},{116-156}}][Danton2004, Cicikova2011].
> 
> \cite[Cicikova2011]
> 
> \cite[Chichikova1978]
> 
> \startchapter[title=Bibliografie]
> \placelistofpublications
> \stopchapter
> \stoptext
> 
> and the database bibliotest.bib
> 
> @book{Danton2004,
> address = {Oxford},
> author = {Danton, Gocha R. and {De Angelis}, Franco},
> publisher = {Oxford University School of Archaeology},
> title = {{The archaeology of Greek colonisation: essays dedicated to
> Sir John Boardman}},
> year = {2004}
>  }
> 
> @article{Cicikova2011,
> address = {Kazanlak},
> annote = {PDF},
> author = {{\v{C}}i{\v{c}}ikova, M},
> pages = {116--121},
> journal = {{Varia Thracica}},
> title = {{Article Title}},
> year = {2011}
> }
> 
> @book{Chichikova1978,
> address = {Oxford},
> author = {Chichikova, Maria and Dimitrov, Dimitur P. and Alexieva,
> Marguerite and Author, Name},
> isbn = {0-86054-003-0},
> keywords = {Seuthopolis,Thracians},
> language = {eng},
> publisher = {BAR Supplementary Series 38},
> title = {{The Thracian city of Seuthopolis}},
> year = {1978}
> }
> 
> Thanks in advance,
> 
> Petra
> 



-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography sorting order by Czech alphabet in Context

2017-02-07 Thread Petra Janouchová
Hello,

I am fairly new to the ConTeXt community and I am trying to sort
bibliographical references for my thesis. I need to be able to set the
sorting order of the bibliographical references by Czech alphabet (e.g.,
C,Č,D,Ch,...etc.). English sorting puts Ch before C or Č, but in Czech
it needs to be after D. Any ideas?

http://tex.stackexchange.com/questions/352496/bibliography-sorting-order-by-czech-alphabet-in-context/352514#352514

Here is the minimal example

\mainlanguage[cz]

\usebtxdataset[bibliotest.bib]
\usebtxdefinitions[apa]

\unprotect %here I substitute the annoying ampersand with czech a
\def\textampersand{a}
\protect


 \setupbtx
 [apa:cite]
 [left=,
  right=,
separator:2={\btxsemicolon}, % :0 and :1 - between items of a list
separator:3={\btxsemicolon},
separator:4={\btxsemicolon},
separator:names:2={\btxcomma},
separator:names:3={\btxcomma},
separator:names:4={\btxcomma},
etaldisplay=3,
etallimit=3
]



\starttext

\cite[righttext={{123},{116-156}}][Danton2004, Cicikova2011].

\cite[Cicikova2011]

\cite[Chichikova1978]

\startchapter[title=Bibliografie]
\placelistofpublications
\stopchapter
\stoptext

and the database bibliotest.bib

@book{Danton2004,
address = {Oxford},
author = {Danton, Gocha R. and {De Angelis}, Franco},
publisher = {Oxford University School of Archaeology},
title = {{The archaeology of Greek colonisation: essays dedicated to Sir
John Boardman}},
year = {2004}
 }

@article{Cicikova2011,
address = {Kazanlak},
annote = {PDF},
author = {{\v{C}}i{\v{c}}ikova, M},
pages = {116--121},
journal = {{Varia Thracica}},
title = {{Article Title}},
year = {2011}
}

@book{Chichikova1978,
address = {Oxford},
author = {Chichikova, Maria and Dimitrov, Dimitur P. and Alexieva,
Marguerite and Author, Name},
isbn = {0-86054-003-0},
keywords = {Seuthopolis,Thracians},
language = {eng},
publisher = {BAR Supplementary Series 38},
title = {{The Thracian city of Seuthopolis}},
year = {1978}
}

Thanks in advance,

Petra

-- 
*Petra Janouchová*
Doctoral candidate of Ancient history,
Faculty of Arts, Charles University in Prague

https://cuni.academia.edu/PetraJanouchova
petra.janouch...@gmail.com
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bibliography

2017-02-07 Thread Alan Braslau
On Tue, 7 Feb 2017 13:24:07 +0100
Jean-Pierre Delange  wrote:

> But I don't understand why the word 'Author' is printed at the end of
> each line as the following minimal sample below shows it, e.g. :
> Aristote (n.d.). Les Politiques. Author. Cicéron (n.d.). Tusculanes,
> V, 8. Author.

According to the APA style manual, a book without a publisher is
self-published, and one is directed to use the word "Author".

To avoid this, you need to complete the dataset entry, or else choose
a category other than @book such as @unpublished.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bibliography

2017-02-07 Thread Jean-Pierre Delange

Dear list,

Thanks to the list and to Hans and Alan's manual "mkiv-publications", I has 
achieved some footnotes with bibliographical dataset. All is fine and I success 
to manage what I want.

But I don't understand why the word 'Author' is printed at the end of each line 
as the following minimal sample below shows it, e.g. : 
Aristote (n.d.). Les Politiques. Author.
Cicéron (n.d.). Tusculanes, V, 8. Author.
(see the sample's printed page 2)

Is there a question of language (english), or anything else ? How to avoid this 
'Author' ? I use the APA style with \usebtxdefinitions, and maybe one can use 
some other style ?
Anyway, many thanks for your help !
JP

\startbuffer[biblio]

@book{Cicéron1,
author = {Cicéron},
title = {Tusculanes, V, 8},
}


@book{Aristote2,
author = {Aristote},
title = {Les Politiques},
  
 }
 

\stopbuffer

\usebtxdataset[philosophie ancienne][biblio.buffer]
\usebtxdefinitions[apa]
\definebtxrendering[philosophie ancienne][apa][dataset=philosophie ancienne]
\setupbtxrendering[continue =yes]
 \starttext

\startchapter[title={Introduction à la Philosophie}]

Dans les notes qui suivent, on s’intéressera à la pensée philosophique comme 
philosophie politique. Aristote, le philosophe grec qui publia et commenta les 
Constitutions des anciennes cités grecques, commence son ouvrage {\it les 
Politiques} par la thèse selon laquelle \quotation {l’homme est un animal 
politique}\footnote{\cite[alternative=entry][philosophie ancienne::Aristote2]}.
\blank
Cicéron, ce grand homme politique et cet écrivain savant, a eu la formule bien 
connue, selon laquelle \quotation{Socrate fit descendre la philosophie du ciel 
sur la terre.}\footnote{\cite[alternative=entry][philosophie 
ancienne::Cicéron1]}, qui désigne la question fondamentale de l’intérêt nourri 
par la philosophie pour les {\it choses humaines}.

\stopchapter
 
\starttext

\startbackmatter

  \startchapter[title={Bibliographie}]

\startsection[title={Philosophie ancienne}]

\placelistofpublications[philosophie ancienne][method=local]

\stopsection

\stopchapter

\stopbackmatter

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] bibliography tool

2016-05-22 Thread Hans Hagen

On 5/22/2016 10:25 AM, Meer, Hans van der wrote:



On 30 Jun 2014, at 17:33, Wolfgang Schuster  wrote:


Am 30.06.2014 um 17:29 schrieb Gour :


Hans Hagen  writes:


beware: the mkii derived bibliograpic support for mkiv is replaced so
that page is kind of obsolete (the new manual is in the distribution)


You mean this one http://wiki.contextgarden.net/Bibliography_mkiv is
also obsolete?

Where is the new manual and is the manual going to be published in paper
form?






There should be a pdf named mkiv-publications.pdf in your context directory.



This no longer seems to be true. I cannot find such a document in directory
   /tex/texmf-context/doc/context/documents/general/manuals
nor have I found the sources in the corresponding directory.
I presume this is "Bibliographies the ConTeXt Way" by Hans Hagen and Alan 
Braslau I got from somewhere (and alas forgot wherefrom).


because it's awaiting an update ...


It would be nice to have it there, because if time permits I intend to play 
with the new bib-macros in order to familiarize with them.


it will be there once alan and i catched up

Hans


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

Re: [NTG-context] bibliography tool

2016-05-22 Thread Meer, Hans van der

> On 30 Jun 2014, at 17:33, Wolfgang Schuster  
> wrote:
> 
> 
> Am 30.06.2014 um 17:29 schrieb Gour :
> 
>> Hans Hagen  writes:
>> 
>>> beware: the mkii derived bibliograpic support for mkiv is replaced so
>>> that page is kind of obsolete (the new manual is in the distribution)
>> 
>> You mean this one http://wiki.contextgarden.net/Bibliography_mkiv is
>> also obsolete?
>> 
>> Where is the new manual and is the manual going to be published in paper
>> form?
> 


> There should be a pdf named mkiv-publications.pdf in your context directory.
> 

This no longer seems to be true. I cannot find such a document in directory
   /tex/texmf-context/doc/context/documents/general/manuals
nor have I found the sources in the corresponding directory.
I presume this is "Bibliographies the ConTeXt Way" by Hans Hagen and Alan 
Braslau I got from somewhere (and alas forgot wherefrom).

It would be nice to have it there, because if time permits I intend to play 
with the new bib-macros in order to familiarize with them.

Hans van der Meer




___
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 - biblio error with the latest beta

2015-07-12 Thread Alan BRASLAU
 It seems to be related to the latest beta recoding.

Probably, as your code below compiles without any problem in the
pre-most-recent-beta distribution.

Alan



On Sat, 11 Jul 2015 22:42:26 +0200
Lukáš Procházka l...@pontex.cz wrote:

 when trying to compile the latest Alan's proposals with the latest
 beta, a very simplified code:
 
 
 \startbuffer[biblio]
 @article{Angell,
Author = {Marcia Angell},
Journal = {New York Review of Books},
Month = {July 15},
Title = {The Truth About the Drug Companies},
Year = {2004},
 }
 @article{Me,
Author = {Štěpán Čech},
Journal = {New York Review of Books},
Month = {July 15},
Title = {The Truth About the Drug Companies},
Year = {2004},
 }
 @article{101,
Author = {Štěpán Čech},
Journal = {New York Review of Books},
Month = {July 15},
Title = {The Truth About the Drug Companies},
Year = {2004},
 }
 \stopbuffer
 
 
 
 \usebtxdataset[biblio.buffer]
 
 
 
 \starttext
Hello \cite[Angell] \cite[Me] \cite[101]!
 
\hairline
\placelistofpublications[criterium=all]
 \stoptext
 



-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS UMR 3680
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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 (bug compiling components-001.tex?) (now with sample files)

2015-07-11 Thread Alan BRASLAU
On Fri, 10 Jul 2015 11:29:17 +0200
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 3) I would like to alter citation style from [1] to MA2004; I
 guess this could be done by \setuppublications[refcommand=author]...

MKIV:

\cite[short][bibtexkey]

or, to make this the default cite style:

\setupbtx[alternative=short]

which should give MA04 (the short style is first two initials of the
author name or the first initials of multiple author names followed by
a two digit year)

You can modify the style using

\setupbtx[default:cite:short][left=,right=]

to get rid of the brackets.

 4) Finally, in list of publications, I'd rather enumerate
 publications in [1] style rather than simple 1, i.e. enclose the
 publication number into [].

Similarly,

\setupbtx[default:list:numbering][left={[},right={]}]

to add brackets to the list.


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 - biblio error with the latest beta

2015-07-11 Thread Lukáš Procházka

Hello,

when trying to compile the latest Alan's proposals with the latest beta, a very 
simplified code:


\startbuffer[biblio]
@article{Angell,
  Author = {Marcia Angell},
  Journal = {New York Review of Books},
  Month = {July 15},
  Title = {The Truth About the Drug Companies},
  Year = {2004},
}
@article{Me,
  Author = {Štěpán Čech},
  Journal = {New York Review of Books},
  Month = {July 15},
  Title = {The Truth About the Drug Companies},
  Year = {2004},
}
@article{101,
  Author = {Štěpán Čech},
  Journal = {New York Review of Books},
  Month = {July 15},
  Title = {The Truth About the Drug Companies},
  Year = {2004},
}
\stopbuffer



\usebtxdataset[biblio.buffer]



\starttext
  Hello \cite[Angell] \cite[Me] \cite[101]!

  \hairline
  \placelistofpublications[criterium=all]
\stoptext


crashes with:


D:\Lukas\Docs\Ull-Gra\Testcontext.exe Bib64.mkiv --nonstopmode

mtx-context | run 1: luatex 
--fmt=c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --interaction=nonstopmode --jobname=Bib64 
--lua=c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bf
e781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 
--c:fulljobname=./Bib64.mkiv --c:input=./Bib64.mkiv --c:kindofrun=1 --c:maxnofruns=8 
--c:nonstopmode cont-yes.mkiv
This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/W32TeX) (rev 5041)
 \write18 enabled.
open source  1  1  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.07.30 10:31 MKIV beta  fmt: 2015.7.11  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
close source 2  2  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv

system   files  jobname 'Bib64', input './Bib64.mkiv', result 'Bib64'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  D:/Lukas/Docs/Ull-Gra/Test/Bib64.mkiv
publications adding bib data to set 'standard' from source 'biblio'
fontspreloading latin modern fonts (second stage)
fonts'fallback modern-designsize rm 12pt' is loaded
publications no field 'num' for tag 'Angell' in dataset 'standard'
fontstreatment  fixing some wrong widths
publications no field 'num' for tag 'Me' in dataset 'standard'
publications no field 'num' for tag '101' in dataset 'standard'

lua errorerror on line 36 in file 
D:/Lukas/Docs/Ull-Gra/Test/Bib64.mkiv:

c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:650: attempt to 
index local 'used' (a nil value)
stack traceback:
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:650: in 
function 'enhance'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-dat.lua:151: in 
function '__index'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:1349: in 
function 'btxpreparelistentries'
[\directlua]:1: in main chunk

26
27 \usebtxdataset[biblio.buffer]
28
29 

30
31 \starttext
32   Hello \cite[Angell] \cite[Me] \cite[101]!
33
34   \hairline
35   \placelistofpublications[criterium=all]
36   \stoptext
37


backend  xmp  using file 
'c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1
close source 2  3  D:/Lukas/Docs/Ull-Gra/Test/Bib64.mkiv
close source 1  3  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

mkiv lua stats   used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats   used cache path: 
c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats   resource resolver: loadtime 0.010 seconds, 1 scans with 
scantime 0.026 seconds, 0 shared scans, 9 found files, scanned paths: 
c:/windows/fonts
mkiv lua stats   stored bytecode data: 353 modules (0.136 sec), 69 tables 
(0.003 sec), 422 chunks (0.139 sec)
mkiv lua stats   running in nuts mode: yes
mkiv lua stats   cleaned up reserved nodes: 44 nodes, 442 lists of 441
mkiv lua stats   node memory usage: 2 glue, 2 penalty, 9 attribute, 28 
glue_spec, 3 attribute_list, 2 temp
mkiv lua stats   node list callback tasks: 6 unique task lists, 5 instances 
(re)created, 45 calls
mkiv lua stats   used backend: pdf (backend for directly generating pdf output)
mkiv lua stats   loaded patterns: en::2, load time: 0.000
mkiv lua stats   jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats   callbacks: 162 direct, 213 indirect, 375 total
mkiv lua stats   result saved in file: Bib64.pdf, 

Re: [NTG-context] Bibliography (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello Alan,

thanks for the idea. Now I have:

 Bib6.mkiv, UTF-8
\startbuffer[biblio]
@article{Angell,
   Author = {Marcia Angell},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
@article{Me,
   Author = {Štěpán Čech},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
@article{101,
   Author = {Štěpán Čech},
   Journal = {New York Review of Books},
   Month = {July 15},
   Title = {The Truth About the Drug Companies},
   Year = {2004},
}
\stopbuffer

%%

\usebtxdataset[biblio.buffer]

\if+- % (1)
   \def\bracketed#1{\hbox to 20pt{\hfill [#1]}}

   \setuppublications
 [sorttype=bbl,
  autohang=no,
  refcommand=num,
  criterium=all,
  numbering=bib,
  %numbercommand=\bracketed,
 ]
\fi

%%

\starttext
   Hello \cite[Angell] \cite[Me] \cite[101]!

   \hairline
   \placelistofpublications[criterium=all]
   \hairline
   %\placepublications[criterium=all] % (2)
\stoptext


Some more questions:

1) Is \placepublications deprecated?

I'm getting Undefined control sequence when I uncomment (2);
even though \placepublications is widely cited on wiki (e.g. 
http://wiki.contextgarden.net/Bibliography_mkiv ) and is also mentioned in 
bibmod-doc.pdf 
(http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf ).

2) When I turn (1) on (\if+- - \if++), the Ctx doesn't crash but citations are 
broken and no list of pubs is generated.

I copied \setuppublications from 
http://wiki.contextgarden.net/Theory_book_style ;
strange for me that also empty \setuppublications (i.e.

   \setuppublications
 [%sorttype=bbl,
  %autohang=no,
  %refcommand=num,
  %criterium=all,
  %numbering=bib,
  %numbercommand=\bracketed,
 ]

) produces the same no-result.

3) I would like to alter citation style from [1] to MA2004; I guess this could be 
done by \setuppublications[refcommand=author] (see bibmod-doc.pdf, art. 2.1, pg. 2);
but - as mentioned at 2) - it doesn't work.

4) Finally, in list of publications, I'd rather enumerate publications in [1] style 
rather than simple 1, i.e. enclose the publication number into [].

In http://wiki.contextgarden.net/Theory_book_style , 
\setuppublications[numbercommand=\bracketed] provided that, but again, it 
doesn't work here due to 2).

So, how to overcome all these obstacles?

Best regards,

Lukas


On Thu, 09 Jul 2015 20:30:27 +0200, Alan BRASLAU alan.bras...@cea.fr wrote:


On Wed, 8 Jul 2015 22:21:36 +0200
Lukáš Procházka l...@pontex.cz wrote:


- have a DB of publications (preferably in standard ConTeXt
space, not in a .bib file)


MKiv bibliographies:

\startbuffer[biblio]
entries in .bib format
\stopbuffer

\usebtxdataset[biblio.buffer]

\cite[bibkey]

\placelistofpublications



Alan




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Bib6.log
Description: Binary data


Bib6.mkiv
Description: Binary data


Bib6.pdf
Description: Adobe PDF document
___
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 (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Alan BRASLAU
On Fri, 10 Jul 2015 08:47:35 +0200
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 I'm getting Undefined control sequence when I uncomment (2);
 even though \placepublications is widely cited on wiki (e.g.
 http://wiki.contextgarden.net/Bibliography_mkiv ) and is also
 mentioned in bibmod-doc.pdf
 (http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf
 ).

Do not mix-up the bibmod (mkii, also adapted for mkiv)
with the mkiv bibliography dataset system (which is completely new).

I do not know anything about the wiki on this subject but it must be
completely obsolete as the development of this new system has been very
active over the past year.

Hans and I are (still) working on the documentation that has been
promised.

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 (bug compiling components-001.tex?) (now with sample files)

2015-07-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

On Fri, 10 Jul 2015 10:29:52 +0200, Alan BRASLAU alan.bras...@cea.fr wrote:


On Fri, 10 Jul 2015 08:47:35 +0200
Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:


I'm getting Undefined control sequence when I uncomment (2);
even though \placepublications is widely cited on wiki (e.g.
http://wiki.contextgarden.net/Bibliography_mkiv ) and is also
mentioned in bibmod-doc.pdf
(http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf
).


Do not mix-up the bibmod (mkii, also adapted for mkiv)
with the mkiv bibliography dataset system (which is completely new).


OK. I studied MkIV related part on bibliography on wiki, probably too archaic.


I do not know anything about the wiki on this subject but it must be
completely obsolete as the development of this new system has been very
active over the past year.

Hans and I are (still) working on the documentation that has been
promised.


Great.

Back to my questions:

3) I would like to alter citation style from [1] to MA2004; I guess this could be 
done by \setuppublications[refcommand=author]...

4) Finally, in list of publications, I'd rather enumerate publications in [1] style 
rather than simple 1, i.e. enclose the publication number into [].

Are / will be points 3) a 4) achievable anyhow - now, in near future, any day?

Thank you anyway.

Best regards,

Lukas


Alan




--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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 (bug compiling components-001.tex?)

2015-07-09 Thread Alan BRASLAU
On Wed, 8 Jul 2015 22:21:36 +0200
Lukáš Procházka l...@pontex.cz wrote:

 - have a DB of publications (preferably in standard ConTeXt
 space, not in a .bib file)

MKiv bibliographies:

\startbuffer[biblio]
entries in .bib format
\stopbuffer

\usebtxdataset[biblio.buffer]

\cite[bibkey]

\placelistofpublications



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 (bug compiling components-001.tex?)

2015-07-08 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I also tried one of the ConTeXt suite test files, namely:

test\doc\context\tests\mkiv\bibtex\components-002.tex

where I just commented two lines, so I got:


% Was: components-001.tex

% \endinput % to be adapted

% adapted example from list

\startpublication[
k=me,
t=manual,
a=Hoekwater,
y=2006,
s=TH2006,
n=1,
u=http://contextgarden.net/Bibliography,
]
\author{Taco}[T.]{}{Hoekwater}
\title{\CONTEXT\ Publication Module, The user documententation}
\pubyear{2006}
\note{In case you didn’t know: it’s the document you are reading now}
\pages{14}
\stoppublication

\startproduct components-001

\startfrontmatter

  % \component components-002

  two: \cite[me]

\stopfrontmatter

\placepublications
  [criterium=text]

\stopproduct


But, I'm not able to compile even this file.

I'm getting:


mtx-context | run 1: luatex 
--fmt=c:/Ctx-Beta/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en
 --interaction=nonstopmode --jobname=Bib
--c:path=C:\\Lukas\\ConTeXt\\Styles cont-yes.mkiv
This is LuaTeX, Version beta-0.80.1 (TeX Live 2015/W32TeX) (rev 5274)
 \write18 enabled.

system   callbacks  not registering frozen 'find_format_file'
open source  1  1  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.07.01 21:40 MKIV beta  fmt: 2015.7.2  int: english/english

system   'cont-new.mkiv' loaded
open source  2  2  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv
close source 2  2  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-new.mkiv

system   jobfiles  using path: C:\\Lukas\\ConTeXt\\Styles
system   files  jobname 'Bib', input 
'd:\\Lukas\\ConTeXt\\Test\\Bib.mkiv', result 'Bib'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  d://Lukas/ConTeXt/Test/Bib.mkiv
fontspreloading latin modern fonts (second stage)
fonts'fallback modern-designsize rm 12pt' is loaded
structures   begin of sectionblock 'frontpart'
publications analyzing previous publication run for 'default'

lua errorerror on line 30 in file d://Lukas/ConTeXt/Test/Bib.mkiv:

c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: attempt to 
index field '?' (a nil value)
stack traceback:
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: in 
function 'register'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:591: in 
function 'findallused'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2503: in 
function 'processcite'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2814: in 
function '?'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2304: in function 
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2262
(...tail calls...)

20 \pages{14}
21 \stoppublication
22
23 \startproduct components-001
24
25 \startfrontmatter
26
27   % \component components-002
28
29   two: \cite[me]
30 
31 \stopfrontmatter
32
33 \placepublications
34   [criterium=text]
35
36 \stopproduct
37


structures   end of sectionblock 'frontpart'
backend  xmp  using file 
'c:/Ctx-Beta/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pagesflushing realpage 1, userpage 1

lua errorerror on line 33 in file d://Lukas/ConTeXt/Test/Bib.mkiv:

c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: attempt to 
index field '?' (a nil value)
stack traceback:
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:513: in 
function 'register'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:591: in 
function 'findallused'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2503: in 
function 'processcite'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2814: in 
function '?'
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2304: in function 
c:/Ctx-Beta/tex/texmf-context/tex/context/base/publ-ini.lua:2262
(...tail calls...)

23 \startproduct components-001
24
25 \startfrontmatter
26
27   % \component components-002
28
29   two: \cite[me]
30
31 \stopfrontmatter
32
33   \placepublications
34   [criterium=text]
35
36 \stopproduct
37


pagesflushing realpage 2, userpage 2
close source 2  3  d://Lukas/ConTeXt/Test/Bib.mkiv
close source 1  3  
c:/Ctx-Beta/tex/texmf-context/tex/context/base/cont-yes.mkiv
...
mtx-context | fatal error: return code: 1


The full log is attached...

What is wrong?

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038


Re: [NTG-context] Bibliography (bug compiling components-001.tex?)

2015-07-08 Thread Lukáš Procházka

Hello,

On Wed, 08 Jul 2015 20:53:10 +0200, Hans Hagen pra...@wxs.nl wrote:


On 7/8/2015 4:06 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

I also tried one of the ConTeXt suite test files, namely:

test\doc\context\tests\mkiv\bibtex\components-002.tex

where I just commented two lines, so I got:


% Was: components-001.tex

% \endinput % to be adapted


that file is not working now which is why it had an \endinput


OK.

Is there a way to have list of publications... - something like this to work:


\startpublication
  [k=me,
   t=article,
   a=LPr,
   y=2000,
   s=Shr,
   n=1,
  ]
  \city{Prg}
\stoppublication

\starttext
  Hello \cite[me].

  \placepublications[criterium=all]
\stoptext


So:

- publications to be defined before \starttext, with each publication enclosed 
in \startpublication ... \stoppublication pairs,
- \cite command to work,
- list of publications via \placepublications to work.

I mentioned this theme once in the mailing list - with subject Bibliography - 
but with no response...
The bibtex/components-002.tex seemed to be quite close...

Or: which is the recommended way to:

- have a DB of publications (preferably in standard ConTeXt space, not in a 
.bib file)
- to refer to a publication
- to build a list of publications?

(A MWE or a link would be appreciated...)

Best regards,

Lukas



Hans



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

___
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 (bug compiling components-001.tex?)

2015-07-08 Thread Hans Hagen

On 7/8/2015 4:06 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote:

Hello,

I also tried one of the ConTeXt suite test files, namely:

test\doc\context\tests\mkiv\bibtex\components-002.tex

where I just commented two lines, so I got:


% Was: components-001.tex

% \endinput % to be adapted


that file is not working now which is why it had an \endinput

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

2015-07-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

I have a bibliography database in Lua.
I suppose to use this DB to create a list of publications with Lua and 
\startpublication ... \stoppublication.
So I will get something like:


% Will be generated by Lua, but for now 
\startpublication
  [k=me,
   t=article,
   a=LPr,
   y=2000,
   s=Shr,
   n=1,
  ]
  \city{Prg}
\stoppublication
% Will be generated by Lua, but for now 

\setuppublications[alternative=apa]

\starttext
  Hello \cite[me] -- \cite[Shr] -- \cite[1].

  \placepublications[criterium=all]
\stoptext


The problem is that \cite produces (Xx, ) and no list of 
publications is generated.

What am I doing wrong?

NB: I learned from
http://wiki.contextgarden.net/Bibliography_mkiv
and
http://www.let.rug.nl/alfa/texmf/tetex30/context/bib/bibmod-doc.pdf

My one-off is that I have not a .bib file and I would like to avoid .bib 
generation and use of BibTeX if possible.
I guess that having a biblio DB in Lua is handy enough as Lua can convert the 
DB in whatever format - eg. via

context.startpublication(...)
 ...
context.stoppublication()

So, how to handle the bibliography in a best manner?

Than you in advance,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038

Bib.test.mkiv
Description: Binary data


Bib.test.pdf
Description: Adobe PDF document
___
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: printing just Single Author et al.

2015-05-07 Thread Mojca Miklavec
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,
?

(MkIV, experimental reimplementation.)

Thank you,
Mojca
___
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: printing just Single Author et al.

2015-05-07 Thread Csikos Bela
Mojca Miklavec írta:
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,

It's not clear what you want exactly. That is, how many rules do you want 
regarding
number of authors?

I don't know how ConTeXt handes author numbers. But in normal bibtex this is 
generally
implemented as max authors and min authors (naturally it depends on the bst 
file you use).
If the total number of authors is less than or equal to max authors, all author 
names are listed.
If total number of authors is more than max authors, min authors are listed 
followed by et al.
By adjusting the bst file you can change every single details.

An example: if you set max number to 7 and min number to 3, then in case of 7 
or less
authors all are listed, in case of 8 or more the first 3 are listed followed by 
et al.

Would these two rules fit your requirements? Or do you want a third rule (in 
additon to the
above rules) for very high number of authors, when only the very first author 
is listed?

In this case you have to edit the bst file as well. What makes it harder 
ConTeXt has special bst files and you have to edit those bst files.

If you have only a few article like this, the easiest solution might be to edit 
the bib file, and change the author field to what you want in the output.

This is a real shortcoming of ConTeXt bibliography generating mechanism. To 
customize
it you have to be able to edit bst files and be very familiar with ConTeXt 
bibliography
generating module, and TeX programming might be required too.

(MkIV, experimental reimplementation.)

I dont't know about this, what I wrote above applies to normal MkIV (and I 
guess to MkII
too). I have no idea if this experimental reimplementation uses other 
bibliographics
mechanism.

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] Bibliography: printing just Single Author et al.

2015-05-07 Thread Csikos Bela
Mojca Miklavec írta:
On Thu, May 7, 2015 at 2:29 PM, Csikos Bela wrote:
 Mojca Miklavec írta:
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,

 It's not clear what you want exactly. That is, how many rules do you want 
 regarding
 number of authors?

 I don't know how ConTeXt handes author numbers. But in normal bibtex this is 
 generally
 implemented as max authors and min authors (naturally it depends on the bst 
 file you use).
 If the total number of authors is less than or equal to max authors, all 
 author names are listed.
 If total number of authors is more than max authors, min authors are listed 
 followed by et al.
 By adjusting the bst file you can change every single details.

 An example: if you set max number to 7 and min number to 3, then in case of 
 7 or less
 authors all are listed, in case of 8 or more the first 3 are listed followed 
 by et al.

 Would these two rules fit your requirements? Or do you want a third rule (in 
 additon to the
 above rules) for very high number of authors, when only the very first 
 author is listed?

Oh, interesting. I wasn't aware of that rule. I thought that in case
of more than n authors, the first n would be printed.

I was thinking of a rule if I specify something special on this
particular entry, then print one author et al. (without me having to
bother to actually try to include all the hundred names if I know in
advance that none of them would be printed anyway), but a rule like
if more than N, then print just one would most probably work for me.

How does one set that lower number?

See my other answer too.
You set authoretallimit=6 % Up to six authors all author are listed
You might need to set artauthoretallimit=6 too.
You set authoretaldisplay=1 % if there are more tnan 6 authors only one is 
listed
You might need to set artauthoretaldisplay=1.

 In this case you have to edit the bst file as well. What makes it harder 
 ConTeXt has special bst files and you have to edit those bst files.

 If you have only a few article like this, the easiest solution might be to 
 edit the bib file, and change the author field to what you want in the 
 output.

 This is a real shortcoming of ConTeXt bibliography generating mechanism. To 
 customize
 it you have to be able to edit bst files and be very familiar with ConTeXt 
 bibliography
 generating module, and TeX programming might be required too.

No, configuration of bibliographies in ConTeXt does not (and should
not) require knowledge of bst files. I always managed to get around
with some relatively straightforward settings and commands.

If you want to remove dots after the initials or remove the space between 
initials you have to. If you want to modify what is inserted into the bbl file 
you have to.

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] Bibliography: printing just Single Author et al.

2015-05-07 Thread Csikos Bela
Mojca Miklavec írta:
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,
?

(MkIV, experimental reimplementation.)

I checked the bibmod-doc manual. According to it the author numbers can be set 
by
authoretallimit, editoretallimit, artauthoretallimit, authoretaldisplay, 
editoretaldisplay,
artauthoretaldisplay. Don't they work for you? It works for me if I change them 
in
the corresponding bibl-style.tex file. In the document alternative=style as:

\setuppublications[alternative=style]

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] Bibliography: printing just Single Author et al.

2015-05-07 Thread Mojca Miklavec
On Thu, May 7, 2015 at 2:29 PM, Csikos Bela wrote:
 Mojca Miklavec írta:
Hi,

When citing articles with five authors I prefer to list all of them,
but in some articles with one hundred authors I would prefer just J.
Someone et al. since listing five more co-authors doesn't add
anything substantial to the information.

Is there any trick that would allow liming the number of listed
authors on per-article basis? Simply specifying
author = Just Someone et al.,

 It's not clear what you want exactly. That is, how many rules do you want 
 regarding
 number of authors?

 I don't know how ConTeXt handes author numbers. But in normal bibtex this is 
 generally
 implemented as max authors and min authors (naturally it depends on the bst 
 file you use).
 If the total number of authors is less than or equal to max authors, all 
 author names are listed.
 If total number of authors is more than max authors, min authors are listed 
 followed by et al.
 By adjusting the bst file you can change every single details.

 An example: if you set max number to 7 and min number to 3, then in case of 7 
 or less
 authors all are listed, in case of 8 or more the first 3 are listed followed 
 by et al.

 Would these two rules fit your requirements? Or do you want a third rule (in 
 additon to the
 above rules) for very high number of authors, when only the very first author 
 is listed?

Oh, interesting. I wasn't aware of that rule. I thought that in case
of more than n authors, the first n would be printed.

I was thinking of a rule if I specify something special on this
particular entry, then print one author et al. (without me having to
bother to actually try to include all the hundred names if I know in
advance that none of them would be printed anyway), but a rule like
if more than N, then print just one would most probably work for me.

How does one set that lower number?

 In this case you have to edit the bst file as well. What makes it harder 
 ConTeXt has special bst files and you have to edit those bst files.

 If you have only a few article like this, the easiest solution might be to 
 edit the bib file, and change the author field to what you want in the output.

 This is a real shortcoming of ConTeXt bibliography generating mechanism. To 
 customize
 it you have to be able to edit bst files and be very familiar with ConTeXt 
 bibliography
 generating module, and TeX programming might be required too.

No, configuration of bibliographies in ConTeXt does not (and should
not) require knowledge of bst files. I always managed to get around
with some relatively straightforward settings and commands.

Mojca
___
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: printing just Single Author et al.

2015-05-07 Thread Robert Blackstone

On 7 May 2015, at 12:00 , Mojca Miklavec mojca.miklavec.li...@gmail.com
 
 Is there any trick that would allow liming the number of listed
 authors on per-article basis? Simply specifying
author = Just Someone et al.,
 ?
 
 (MkIV, experimental reimplementation.)

Hello Mojca,
The trick that I would use, in fact the procedure that I always use, is not to 
use bib-files but to separately generate the bbl-file and input that.
ConTeXt uses the .bbl, and once you have that you can tweak it in (almost) any 
way you like. You could if necessary, make two or more versions of the same 
publication, for instance in a footnote “Just Someone et al.” and in the 
Bibliography the complete list of Authors of that publication.
For my Bibliographic data I even needed three versions of each entry, one with 
authorname, to use your example, “Someone, Just” in the Bibliography, “Just 
Someone” for footnotes, the first occurrence, and “Someone” with a short book- 
or article title for all susequent occurrences.
No problem when you use the .bbl. Obviously the different versions should have 
(slightly) diiferent cite-keys.
(And take care not to input the .bib-file, since each time you process the 
thing a fresh .bbl is created wiping out all your modifications.)

I hope it solves your problem.

Best regards,

Robert Blackstone

___
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: printing just Single Author et al.

2015-05-07 Thread Mojca Miklavec
On Thu, May 7, 2015 at 4:13 PM, Csikos Bela wrote:
 Mojca Miklavec írta:

No, configuration of bibliographies in ConTeXt does not (and should
not) require knowledge of bst files. I always managed to get around
with some relatively straightforward settings and commands.

 If you want to remove dots after the initials or remove the space between 
 initials you have to. If you want to modify what is inserted into the bbl 
 file you have to.

ConTeXt has at least three different mechanisms to deal with
bibliographies by now (one is actually using BibTeX, one is using pure
ConTeXt setups for new entries, the third one is new/unstable and
allows entries in arbitrary format). From what I understand at least
the last two approaches circumvent BibTeX completely, so bst files are
not used at all.

I admit that I never tried to change spacing or remove the dots after
initials, but I would be surprised if doing that would require
fiddling with bst. I always controlled how a specific entry is
represented (when I wanted modifications) by a relatively readable
ConTeXt setup, but others should comment about specifics.

Mojca
___
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 again: “von” and “van”

2015-01-31 Thread Hans Hagen

On 1/28/2015 4:10 AM, Alan BRASLAU wrote:

I have been arguing with Hans over the proper treatment of particles,
in general. The rules vary greatly - here we are looking at a
comparison between Dutch and German practice. In French, the use often
depends on history differing before and after the revolution. In
Spanish, we have other practice.

One solution is to make the rendering depend on the language= bibtex
field. But this does not work universally. With Hans, we have extended
the bibtex standard so that names can be explicitly separated, as in:
author = {particle, lastname, suffix, firstname}
This allows the author to use a free form for each component without
resorting to any bibtex trickery (like capitalization or not). How
these components are handled or rendered is not entirely worked out.
Indeed, the German practice differs from others. Thus my suggestion of
the use of the language field (or setting).


I've added a tracer for authors. The main problem with authors is that 
bibtex was never set up to multilingual (there has been written and 
talked a lot about it by Jean Micheakl Hufflen who made a multilingual 
bibtex).


So, in order to deal with names, the way to go is roughly as follows:

- multiple names are separated by 'and' (hopefully there are no parents 
who names their kids This and That)


- when a name has no commas it gets analyzed and split according to some 
heuristics ... there is not that much we can do about it (but we try to 
catch as much as possible) ... this can mean that a particle is seen as 
one of the surnames but that is seldom a big issue as eventually the 
name gets combined again


- in the mkiv publication subsystem names travel around in their split 
form: initials, firstnames, vons (bad name, might change), surnames, 
juniors (also bad name), so


Alan Xavier von Braslau jr becomes

[A X] [Alan Xavier] [von] [Braslau] [jr]

Now that can can never be robust expecially when names are written in 
full, so that is why we look at names with commas differnetly:


Alan Xavier Braslau

becomes

[A X] [Alan Xavier] [] [Braslau] []

but

Xavier Braslau, Alan

becomes

[A] [Alan] [] [Xavier Braslau] []

the snippets in a two element name is still analyzed according to some 
heuristics


When there are more snippets (where {} indicates an empty snippet) the 
filling of the record depends on the amount of snippets. In principle 
you can have of them, including the initials if they are kind of special.)


Keep in mind that there is nothing like a bibtex standard (and it's 
still beta anyway awaiting version 1).


Here is a test:

\startbuffer[mybib]

@book{something-1,
author = { Foo Bar von Something },
title  = { Whatever 1 },
year   = { 2015 }
}

@book{something-2,
author = { Foo Bar von Something and John Doe },
title  = { Whatever 2 },
year   = { 2015 }
}

@book{something-3,
author = { von Something, Foo Bar and John Doe },
title  = { Whatever 3 },
year   = { 2015 }
}

@book{something-4,
author = { {}, von Something, Foo Bar and John Doe },
title  = { Whatever 4 },
year   = { 2015 }
}

@book{something-5,
author = { {}, von Something, {}, Foo Bar and John Doe },
title  = { Whatever 5 },
year   = { 2015 }
}

@book{something-6,
author = { {}, {von Something}, {}, Foo Bar, FoBa and John Doe },
title  = { Whatever 6 },
year   = { 2015 }
}

\stopbuffer

\usemodule[art-01]

\usebtxdataset[mybib.buffer]

\starttext

\showbtxdatasetcompleteness[standard]

\page

\showbtxdatasetauthors[standard]

\stoptext

Of course we can add all kind of manipulators when typesetting them, but 
adding all kind of complex tweaks to the input makes no sense: (1) I 
can't remember them as till now i never needed a bibliography myself, 
and (2) Alan can't document them because there are to many demands and 
options but above all (3) only one user will use that specific tweak and 
forgets about it after that specific thesis demand was met.


Hans

ps. As one has access to the loaded bib data it is always possible to 
writ every specific renderers given willingness to mess with Lua.



-
  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 again: “von” and “van”

2015-01-29 Thread Robert Blackstone

On 28 Jan 2015, at 12:00 ,  Keith Schultz keithjschu...@icloud.com wrote
 
 We could simply add all kinds of switches and coding to help this process,
 but in the end we end up with an over complicated format that grows into a 
 monster!

and

 
 I as an old school type and database person would think it far better, to take
 a more pratical approach.

Most probably I’m not qualified to seriously discuss Bibliography matters in 
ConTeXt, but wat Keith has written here appeals to me.

It would probably be OK to try and control all and everything in a Bibliography 
with commands and codes if there were only a few standard ways of presenting a 
bibliography.
But that is not the case, even if most people seem to use apa-style.

What should one do with an old book, of which there are several “facsimile 
editions” and an English translation, and you were required, by the publisher 
or the university, to render it in the Bibliography in the following way:

Gasparini, Francesco, L’Armonico pratico al cimbalo (Venice, 1709); repr. (New 
York, 1967); repr. (Bologna, 2001); trans. Frank Stillings as The Practical 
Harmonist at the Harpsichord (New Haven, CT, 1963)

or, other example:

Buchner, Hans, Das Fundamentbuch (c1525), CH-Bmi, MS F.I.8; ME: in Carl 
Paesler, ‘Fundamentbuch von Hans von Constanz, Ein Beitrag zur Geschichte des 
Orgelspiels im 16. Jahrhundert’, VMw, 5 (1889), 1-192

?

With a Bibliography to make of about 500 items, for a PhD thesis, of which more 
than half were of this kind, I gave up on all sophisticated tools of BibTeX and 
exclusively used the format Booklet, with Author, Title, City and PubYear, 
generated a .bbl and edited that to give me  the correct form.
And, yes, I had to tweak the apa -style a little but that part was easy.

The two examples are in the .bbl-file as follows:

\startpublication[k=Gasparini:2001ublt,t=booklet,
a={{{Gasparini, Francesco}}},y=2001,
n=73,s={Gas}01]
\author[]{}[]{}{{Gasparini, Francesco}}
\pubyear{1963}
\title{{L'armonico pratico al cimbalo {\em (Venice, 1708); repr.~(New York, 
1967); repr. (Bologna, 2001); trans.~by Frank Stillings~as} The Practical 
Harmonist at the Harpsichord}}
\city{New Haven, CT}
\stoppublication

\startpublication[k=Buchner:1525fblt,t=booklet,
a={{{Buchner, Hans}}},y=,
n=39,s={Buc}]
\author[]{}[]{}{{Buchner, Hans}}
\title{{{Das Fundamentbuch} {\em ({\em c}1525), CH-Bmi, MS F.I.8; ME: in Carl 
Paesler,  \quote{Fundamentbuch von Hans von Constanz, Ein Beitrag zur 
Geschichte des Orgelspiels im 16.~Jahrhundert}}, VMw, {\em 5 (1889), 1-192}}}
\stoppublication

Primitive? Certainly. But it is straightforward, very flexible and it works. 

I hope of course that the new Bibliography tool will be very powerful, but I 
also hope that it will remain possible, in ConTeXt, to keep doing things in a 
simple manner.

Best regards,

Robert Blackstone



___
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 again: “von” and “van”

2015-01-29 Thread Ulrike Fischer
Am Thu, 29 Jan 2015 13:06:59 +0100 schrieb BPJ:

 How is a prefix identified as such with this technique? 

biber uses the btparse library
(http://search.cpan.org/~ambs/Text-BibTeX-0.70/btparse/doc/bt_split_names.pod)
and prefixes (von-Parts) are more or less identifyed by lowercase
letters (as in bibtex, see also tamethebeast.pdf). I actually run
once into a problem with a lowercase name which biber didn't like:
https://github.com/plk/biber/issues/43 

There are some tricks, like \uppercase{d}, commands, braces, which
one can use to fine-tune the name parsing.

 Is there a hardcoded list somewhere or is it name begins with a
 'word' in lowercase. IMHO it would be desirable that the prefix
 itself could be specified in a field.

Well the main problem is that authors are name *lists*, and that
there can be more then one name list in an entry. 

But biblatex is extensible. You can, if you want, define a new field
say authorprefixes={de,von,none,Bbla} and then write suitable
macros that uses this prefixes instead of the one parsed from the
name. But I doubt that it is really needed. One shouldn't
overcomplicate a system only to catch every special case. 



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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 again: “von” and “van”

2015-01-29 Thread BPJ
How is a prefix identified as such with this technique? Is there a
hardcoded list somewhere or is it name begins with a 'word' in lowercase.
IMHO it would be desirable that the prefix itself could be specified in a
field.

onsdag 28 januari 2015 skrev Ulrike Fischer ne...@nililand.de:

 Am Tue, 27 Jan 2015 21:11:03 +0100 schrieb Jörg Weger:

  how would you “set up an entry properly” in a BibTeX file where you have
  only one field for author/editor (serious question!)?

 In biblatex/biber you could setup the entries like this:

 @book{goethe,
  author={von Goethe, Johann Wolfgang},
  title={Faust},
  year={1775}
  }

 @book{halen,
  author={van Halen, Edward},
  title={Title},
  year={1775},
  options = {useprefix=true}
  }

 Then you get Goethe and van Halen.

 (It is not a perfect solution: assume a book from Goethe and van
 Halen then you would have to use braces to save the van:
 author={von Goethe, Johann Wolfgang and {van Halen}, Edward},



 --
 Ulrike Fischer
 http://www.troubleshooting-tex.de/


 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : ntg-context@ntg.nl javascript:; /
 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] bibliography: alignment of first hanging lines in publications list, hyphenation

2015-01-28 Thread Jörg Weger

But with

 \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

there is no hanging indentation.

Isn’t it possible for the first “hanging” line of an hanging indentation 
layout to start exactly on the very left, while the next lines are 
exactly indented?


 just the settings of descriptions

To be honest, i don’t know exactly what you mean by „descriptions“.


Greetings Jörg



On 28.01.2015 10:00, Hans Hagen wrote:

On 1/28/2015 8:42 AM, Jörg Weger wrote:

Attached are a MWE using plain APA and the corresponding BibTeX file.
(Don’t mind the mistakes regarding series/volumes, I got that working in
my personal setup that overrides plain APA.)

APA style defaults with hanging indents in the publications list.

The respectively hanging first lines of each entry in the publications
list are not properly aligned on the left. (The indented lines are). I
would like all of those first lines to start on the very left of the
textfield.

If I use \hyphenation to prevent e.g. names from being hyphenated those
words might be driven into the right margin.

Hanging punctuation doesn’t seem to work as well.


Is there anything that can be done about that? Or how can the
justification be switched to flush left/ragged right with hanging
indents on the left?


\setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

just the settings of descriptions


Greetings Jörg


PS: And by the way, “\placebtxrendering[criterium=all]” is not working
anymore. I think I had it working before to place all entries from the
BibTeX file into the publications list regardless of their actual
appearance in the text as citations–which was a good way to test only
the publications list’s layout.


\placebtxrendering[method=dataset]

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

___
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: alignment of first hanging lines in publications list, hyphenation

2015-01-28 Thread Hans Hagen

On 1/28/2015 8:42 AM, Jörg Weger wrote:

Attached are a MWE using plain APA and the corresponding BibTeX file.
(Don’t mind the mistakes regarding series/volumes, I got that working in
my personal setup that overrides plain APA.)

APA style defaults with hanging indents in the publications list.

The respectively hanging first lines of each entry in the publications
list are not properly aligned on the left. (The indented lines are). I
would like all of those first lines to start on the very left of the
textfield.

If I use \hyphenation to prevent e.g. names from being hyphenated those
words might be driven into the right margin.

Hanging punctuation doesn’t seem to work as well.


Is there anything that can be done about that? Or how can the
justification be switched to flush left/ragged right with hanging
indents on the left?


\setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

just the settings of descriptions


Greetings Jörg


PS: And by the way, “\placebtxrendering[criterium=all]” is not working
anymore. I think I had it working before to place all entries from the
BibTeX file into the publications list regardless of their actual
appearance in the text as citations–which was a good way to test only
the publications list’s layout.


\placebtxrendering[method=dataset]

-
  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 again: “von” and “van”

2015-01-28 Thread Keith Schultz
Hi Alan, Hans,

As you say the treatmeant of the „particles“ are complicated.
They depend on „citizenship“, period, country of title, true nobility
or ennoblement, the region of a country one comes, and form of the particle
(abbreviation, captilization).

Practically all of this information is missing in the a normal bibliography.

Sure we can try to guess some from publication date, language, etc.
But, these are very in accurate, and will not give decent results.

Now, I am all for making as easy as possible for the user and have a system
do as much inference as possible.

We could simply add all kinds of switches and coding to help this process,
but in the end we end up with an over complicated format that grows into a 
monster!

I as an old school type and database person would think it far better, to take
a more pratical approach.

Set up the inference rules for the names after 1920.  Most of the ambiguity is 
gone
for most of the western world to my knowledge! (I can not say much about the 
rest,
we have not even talked about them).

We can add fields or a mechanisms where the author of a bibliography can set
display form, sort form etc. that are used.

Yes, this does put the burden on the author, but is the cleanest and most
flexible way to do it.

Or implement a mechanism where the Author of the bibliography can write a 
SETUP/filter for the format of the author field and add a field to the format 
called
authorfieldtype. this way. 
I believe this would be the ConTeXt way.

regards
Keith.

 Am 28.01.2015 um 04:10 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 I have been arguing with Hans over the proper treatment of particles,
 in general. The rules vary greatly - here we are looking at a
 comparison between Dutch and German practice. In French, the use often
 depends on history differing before and after the revolution. In
 Spanish, we have other practice.
 
 One solution is to make the rendering depend on the language= bibtex
 field. But this does not work universally. With Hans, we have extended
 the bibtex standard so that names can be explicitly separated, as in:
 author = {particle, lastname, suffix, firstname}
 This allows the author to use a free form for each component without
 resorting to any bibtex trickery (like capitalization or not). How
 these components are handled or rendered is not entirely worked out.
 Indeed, the German practice differs from others. Thus my suggestion of
 the use of the language field (or setting).
 
 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 again: “von” and “van”

2015-01-28 Thread Ulrike Fischer
Am Tue, 27 Jan 2015 21:11:03 +0100 schrieb Jörg Weger:

 how would you “set up an entry properly” in a BibTeX file where you have 
 only one field for author/editor (serious question!)?

In biblatex/biber you could setup the entries like this:

@book{goethe,
 author={von Goethe, Johann Wolfgang},
 title={Faust},
 year={1775}
 }

@book{halen,
 author={van Halen, Edward},
 title={Title},
 year={1775},
 options = {useprefix=true}
 }

Then you get Goethe and van Halen. 

(It is not a perfect solution: assume a book from Goethe and van
Halen then you would have to use braces to save the van:
author={von Goethe, Johann Wolfgang and {van Halen}, Edward},



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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: alignment of first hanging lines in publications list, hyphenation

2015-01-28 Thread Jörg Weger

I looked in the wiki for “descriptions” and found this:

http://wiki.contextgarden.net/Command/setupdescriptions

I played around a lot with the parameters from there in \setupbtxlist, 
but the problem remains. The only way to get hanging indentation is 
\setupbtxlist[alternative=hanging] and no matter what else I change the 
respectively first lines of every publications list entry are not 
aligned to the very left of the full text width :(


Maybe it has something to do with the numbering?

If I use \setupbtxrendering[numbering=yes] the numbers are aligned 
properly to the very left while the following beginnings of the entries 
are not. Maybe the problem is that the numbers are only “hidden”, but 
not really “deleted”? (Excuse my probably incorrect use of terminology.)


For comparison I tried the old mechanism again:


\setupbibtex[database={BibTeX_file},sort=author]

\setuppublications[alternative=apa]

\starttext

\title{Literaturverzeichnis}

\placepublications[criterium=all]

\stoptext


Here the hanging first lines of each entry align with the title at the 
very left.


I can live with the actual state of the new mkiv mechanism for now as my 
lecturers’ eyes will be blinded by the remaining perfect ConTeXt layout :)


But in future it would be great to have a real hanging indentation in 
the publications list according to the definition that in hanging 
indentation in contrary to normal indentation all but the very first 
line (which starts as a normal line at the very left) are indented.


Greetings Jörg

PS: By the way, Did I thank you for making this great software freely 
available and for the great quick support on the mailing list?




On 28.01.2015 14:39, Jörg Weger wrote:

But with

  \setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

there is no hanging indentation.

Isn’t it possible for the first “hanging” line of an hanging indentation
layout to start exactly on the very left, while the next lines are
exactly indented?

  just the settings of descriptions

To be honest, i don’t know exactly what you mean by „descriptions“.


Greetings Jörg



On 28.01.2015 10:00, Hans Hagen wrote:

On 1/28/2015 8:42 AM, Jörg Weger wrote:

Attached are a MWE using plain APA and the corresponding BibTeX file.
(Don’t mind the mistakes regarding series/volumes, I got that working in
my personal setup that overrides plain APA.)

APA style defaults with hanging indents in the publications list.

The respectively hanging first lines of each entry in the publications
list are not properly aligned on the left. (The indented lines are). I
would like all of those first lines to start on the very left of the
textfield.

If I use \hyphenation to prevent e.g. names from being hyphenated those
words might be driven into the right margin.

Hanging punctuation doesn’t seem to work as well.


Is there anything that can be done about that? Or how can the
justification be switched to flush left/ragged right with hanging
indents on the left?


\setupbtxlist[alternative=left,margin=0cm,align={hanging,hz}]

just the settings of descriptions


Greetings Jörg


PS: And by the way, “\placebtxrendering[criterium=all]” is not working
anymore. I think I had it working before to place all entries from the
BibTeX file into the publications list regardless of their actual
appearance in the text as citations–which was a good way to test only
the publications list’s layout.


\placebtxrendering[method=dataset]

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


___
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 again: “von” and “van”

2015-01-27 Thread Jörg Weger

Hi Keith,

how would you “set up an entry properly” in a BibTeX file where you have 
only one field for author/editor (serious question!)? I normally put the 
names uninverted but inverting Goethe’s name in the BibTeX file didn’t 
change anything. As far as I understood ConTeXt can handle inverted and 
uninverted names in BibTeX name fields equally well. There is something 
in the default mechanism that interpretes the “von” as part of the 
surname. What I was proposing was a way to manually switch to another 
mode where the “von” is treated as an attribute on a by-case-base–just 
like you can switch between “authoryear” and “authoryears” as I learned 
today.


Greetings Jörg




On 27.01.2015 20:16, Keith Schultz wrote:

Hi Jörg,

Though, generally, the von, as well as a few others, are nobility particles in 
Germany, but not necessarily always
noblility particles, but at times signify the place where a persons ancestor 
came from!

Now, in the case Goethe you are right that he was ennobled. Therefore the von 
is not truly part of his name.
He should be listed as you rightly mentioned under Goethe and not von Goethe“.

It is impossible for a bibliographic system to handle this, so there is no 
switch for it!

So, it is up to the author of a text to set up his entries properly, by putting 
the von in the right part of the name field.

regards
Keith

Am 27.01.2015 um 19:20 schrieb Jörg Weger joerg73@googlemail.com:

The default way to diplay (inverted) names with “von” and “van” is “von Goethe” 
and “van Halen” in in-text references and “von Goethe, Johann Wolfgang” and 
“van Halen, Edward”. The problem with this is that while AFAIK the Dutch “van 
Halen” means that one of his ancestors came ”from” a place/city called “Halen” 
in German names the “von” is always a sign of nobility. Even long before 
monarchy and nobility was abolished in Germany by the revolution of 1919 you 
would not have talked about “von Goethe” but simply “Goethe”–so in a reference 
it would be “(Goethe 1774)” and “Goethe, Johann Wolfgang von” in the 
publications list, but still “(van Halen 1984)” and “van Halen, Edward”. It 
would be nice if you could switch between two modes while invoking the 
citation. I have not yet discovered where this order is defined.



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

[NTG-context] bibliography again: “von” and “van”

2015-01-27 Thread Jörg Weger
The default way to diplay (inverted) names with “von” and “van” is “von 
Goethe” and “van Halen” in in-text references and “von Goethe, Johann 
Wolfgang” and “van Halen, Edward”. The problem with this is that while 
AFAIK the Dutch “van Halen” means that one of his ancestors came ”from” 
a place/city called “Halen” in German names the “von” is always a sign 
of nobility. Even long before monarchy and nobility was abolished in 
Germany by the revolution of 1919 you would not have talked about “von 
Goethe” but simply “Goethe”–so in a reference it would be “(Goethe 
1774)” and “Goethe, Johann Wolfgang von” in the publications list, but 
still “(van Halen 1984)” and “van Halen, Edward”. It would be nice if 
you could switch between two modes while invoking the citation. I have 
not yet discovered where this order is defined.


Greetings Jörg
___
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 again: “von” and “van”

2015-01-27 Thread Keith Schultz
Hi Jörg,

Though, generally, the von, as well as a few others, are nobility particles in 
Germany, but not necessarily always 
noblility particles, but at times signify the place where a persons ancestor 
came from!

Now, in the case Goethe you are right that he was ennobled. Therefore the von 
is not truly part of his name.
He should be listed as you rightly mentioned under Goethe and not von Goethe“.

It is impossible for a bibliographic system to handle this, so there is no 
switch for it! 

So, it is up to the author of a text to set up his entries properly, by putting 
the von in the right part of the name field.

regards
Keith
 Am 27.01.2015 um 19:20 schrieb Jörg Weger joerg73@googlemail.com:
 
 The default way to diplay (inverted) names with “von” and “van” is “von 
 Goethe” and “van Halen” in in-text references and “von Goethe, Johann 
 Wolfgang” and “van Halen, Edward”. The problem with this is that while AFAIK 
 the Dutch “van Halen” means that one of his ancestors came ”from” a 
 place/city called “Halen” in German names the “von” is always a sign of 
 nobility. Even long before monarchy and nobility was abolished in Germany by 
 the revolution of 1919 you would not have talked about “von Goethe” but 
 simply “Goethe”–so in a reference it would be “(Goethe 1774)” and “Goethe, 
 Johann Wolfgang von” in the publications list, but still “(van Halen 1984)” 
 and “van Halen, Edward”. It would be nice if you could switch between two 
 modes while invoking the citation. I have not yet discovered where this order 
 is defined.
 

___
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 again: “von” and “van”

2015-01-27 Thread Hans Hagen

On 1/27/2015 8:16 PM, Keith Schultz wrote:

Hi Jörg,

Though, generally, the von, as well as a few others, are nobility particles in 
Germany, but not necessarily always
noblility particles, but at times signify the place where a persons ancestor 
came from!

Now, in the case Goethe you are right that he was ennobled. Therefore the von 
is not truly part of his name.
He should be listed as you rightly mentioned under Goethe and not von Goethe“.

It is impossible for a bibliographic system to handle this, so there is no 
switch for it!


you can try to wrap thing that belong together in { } ... it might work


So, it is up to the author of a text to set up his entries properly, by putting 
the von in the right part of the name field.


indeed, not all can be catched in a poorly specified format

btw, context loads the bib data in memory and fields of type author get 
split into multiple authors and each is split into parts; most magic is 
under our own control so we can always add variants if needed (maybe 
some prefix that indicates a german name or so) but anyway this whole 
von business is on our agenda


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
___

Re: [NTG-context] bibliography again: “von” and “van”

2015-01-27 Thread Alan BRASLAU
I have been arguing with Hans over the proper treatment of particles,
in general. The rules vary greatly - here we are looking at a
comparison between Dutch and German practice. In French, the use often
depends on history differing before and after the revolution. In
Spanish, we have other practice.

One solution is to make the rendering depend on the language= bibtex
field. But this does not work universally. With Hans, we have extended
the bibtex standard so that names can be explicitly separated, as in:
author = {particle, lastname, suffix, firstname}
This allows the author to use a free form for each component without
resorting to any bibtex trickery (like capitalization or not). How
these components are handled or rendered is not entirely worked out.
Indeed, the German practice differs from others. Thus my suggestion of
the use of the language field (or setting).

Alan 


On Tue, 27 Jan 2015 21:50:44 +0100
Hans Hagen pra...@wxs.nl wrote:

 On 1/27/2015 8:16 PM, Keith Schultz wrote:
  Hi Jörg,
 
  Though, generally, the von, as well as a few others, are nobility
  particles in Germany, but not necessarily always noblility
  particles, but at times signify the place where a persons ancestor
  came from!
 
  Now, in the case Goethe you are right that he was ennobled.
  Therefore the von is not truly part of his name. He should be
  listed as you rightly mentioned under Goethe and not von Goethe“.
 
  It is impossible for a bibliographic system to handle this, so
  there is no switch for it!
 
 you can try to wrap thing that belong together in { } ... it might
 work
 
  So, it is up to the author of a text to set up his entries
  properly, by putting the von in the right part of the name field.
 
 indeed, not all can be catched in a poorly specified format
 
 btw, context loads the bib data in memory and fields of type author
 get split into multiple authors and each is split into parts; most
 magic is under our own control so we can always add variants if
 needed (maybe some prefix that indicates a german name or so) but
 anyway this whole von business is on our agenda
 
 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
 ___


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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 again: “von” and “van”

2015-01-27 Thread Jörg Weger

Thank you very much, Hans.

I think I had tried something with double braces before (I use them also 
for German booktitles to keep upper and lowercase intact) but only now I 
got it working:


Writing both

“author = {{Johann Wolfgang von} Goethe}”

and

“author = {Goethe, {Johann Wolfgang von}}”

in the BibTeX are easy workarounds for the problem I was describing. I 
can happily live with that. In case a problem like that arises I will 
anyway first take a look at the according BibTeX entry.


Greetings Jörg

On 27.01.2015 21:50, Hans Hagen wrote:

On 1/27/2015 8:16 PM, Keith Schultz wrote:

Hi Jörg,

Though, generally, the von, as well as a few others, are nobility
particles in Germany, but not necessarily always
noblility particles, but at times signify the place where a persons
ancestor came from!

Now, in the case Goethe you are right that he was ennobled. Therefore
the von is not truly part of his name.
He should be listed as you rightly mentioned under Goethe and not von
Goethe“.

It is impossible for a bibliographic system to handle this, so there
is no switch for it!


you can try to wrap thing that belong together in { } ... it might work


So, it is up to the author of a text to set up his entries properly,
by putting the von in the right part of the name field.


indeed, not all can be catched in a poorly specified format

btw, context loads the bib data in memory and fields of type author get
split into multiple authors and each is split into parts; most magic is
under our own control so we can always add variants if needed (maybe
some prefix that indicates a german name or so) but anyway this whole
von business is on our agenda

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
___

___
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: alignment of first hanging lines in publications list, hyphenation

2015-01-27 Thread Jörg Weger
Attached are a MWE using plain APA and the corresponding BibTeX file. 
(Don’t mind the mistakes regarding series/volumes, I got that working in 
my personal setup that overrides plain APA.)


APA style defaults with hanging indents in the publications list.

The respectively hanging first lines of each entry in the publications 
list are not properly aligned on the left. (The indented lines are). I 
would like all of those first lines to start on the very left of the 
textfield.


If I use \hyphenation to prevent e.g. names from being hyphenated those 
words might be driven into the right margin.


Hanging punctuation doesn’t seem to work as well.


Is there anything that can be done about that? Or how can the 
justification be switched to flush left/ragged right with hanging 
indents on the left?



Greetings Jörg


PS: And by the way, “\placebtxrendering[criterium=all]” is not working 
anymore. I think I had it working before to place all entries from the 
BibTeX file into the publications list regardless of their actual 
appearance in the text as citations–which was a good way to test only 
the publications list’s layout.
\setuplanguage [de]
\mainlanguage [de] 	

\usebtxdataset[testbib_daf.bib]

\showframe

\setbreakpoints[compound]

\setupalign [hyphenated,justified,hanging,hz,]

\definefontfeature[default][default][expansion=quality,protrusion=quality,] 

\hyphenation{Helbig Deutscher Heraus-geber}


\starttext

\cite[authoryears][weinrich:2006] 

\cite[authoryear][goethe:2008]

\cite[authoryears][hoelscher:2006]

\cite[authoryear][martinez:1999]

\cite[authoryears][stedje:2007]

\cite[authoryear][wrobel:2007]

\cite[authoryears][baur:2001] 

\cite[authoryear][hoffmann:2000]

\cite[authoryears][sereno:1994] \\

\blank

\startsection[title=Literaturverzeichnis, number=no]

\placebtxrendering[criterium=text]

\stopsection

\stoptext

@Book{		  goethe:2008,
  author	= {{Johann Wolfgang von} Goethe},
  title		= {{Die Leiden des jungen Werthers}},
  publisher	= {Deutscher Taschenbuchverlag},
  year		= 2008,
  address	= {München},
  note		= {Original von 1774},
}

@Book{		  hoelscher:2006,
  author	= {Petra Hölscher and Eberhard Piepho and Jörg Roche},
  title		= {{Handlungsorientierter Unterricht mit Lernszenarien –
		  Kernfragen zum Spracherwerb}},
  publisher	= {Finken},
  year		= 2006,
  address	= {Oberursel},
}

@Book{		  martinez:1999,
  author	= {Matias Martinez and Michael Scheffel},
  title		= {{Einführung in die Erzähltheorie}},
  publisher	= {Beck},
  year		= 1999,
  address	= {München},
}

@Book{		  stedje:2007,
  author	= {Astrid Stedje},
  title		= {{Deutsche Sprache gestern und heute}},
  publisher	= {Fink},
  year		= 2007,
  address	= {München},
  edition	= {6.~neubearb.},
}

@Book{		  weinrich:2006,
  author	= {Harald Weinrich},
  title		= {{Sprache, das heißt Sprachen}},
  publisher	= {Narr},
  year		= 2006,
  address	= {Tübingen},
}

@Book{		  wrobel:2007,
  author	= {Ulrike Wrobel},
  title		= {{Raum als kommunikative Ressource: eine
		  handlungstheoretische Analyse visueller Sprachen}},
  publisher	= {Peter Lang},
  year		= 2007,
  volume	= 47,
  series	= {{Arbeiten zur Sprachanalyse}},
  address	= {Frankfurt am Main u.|~|a.},
}

@InCollection{	  sereno:1994,
  author	= {Joan A. Sereno},
  title		= {{Phonosyntactics}},
  booktitle	= {{Sound Symbolism}},
  publisher	= {Cambridge University Press},
  year		= 1994,
  editor	= {Leanne Hinton and Joanna Nichols and John Ohala},
  pages		= {263–275},
  address	= {New York},
}

@InCollection{	  baur:2001,
  author	= {Rupprecht Baur},
  title		= {{Deutsch als Fremdsprache – Deutsch als Zweitsprache}},
  booktitle	= {{Deutsch als Fremdsprache}},
  publisher	= {de Gruyter},
  year		= 2001,
  editor	= {Gerhard Helbig and Lutz Götze and Gert Henrici and Hans-Jürgen Krumm},
  volume	= {19.1},
  series	= {{HSK}},
  pages		= {617–628},
  address	= {Berlin},
}

@Book{	  hoffmann:2000,
  title		= {{Sprachwissenschaft: Ein Reader}},
  publisher	= {Walter de Gruyter},
  year		= 2000,
  editor	= {Ludger Hoffmann},
  address	= {Berlin, New York},
}
___
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 again: “von” and “van”

2015-01-27 Thread Jörg Weger
As I have already replied to Hans’ post, I don’t mind using the “double 
braces solution” as an easy workaround to distinguish German “vons” and 
Dutch “vans”. But I am not sure if that solution solves the problems 
with French and Spanish name attributes as well.


Greetings Jörg

On 28.01.2015 04:10, Alan BRASLAU wrote:

I have been arguing with Hans over the proper treatment of particles,
in general. The rules vary greatly - here we are looking at a
comparison between Dutch and German practice. In French, the use often
depends on history differing before and after the revolution. In
Spanish, we have other practice.

One solution is to make the rendering depend on the language= bibtex
field. But this does not work universally. With Hans, we have extended
the bibtex standard so that names can be explicitly separated, as in:
author = {particle, lastname, suffix, firstname}
This allows the author to use a free form for each component without
resorting to any bibtex trickery (like capitalization or not). How
these components are handled or rendered is not entirely worked out.
Indeed, the German practice differs from others. Thus my suggestion of
the use of the language field (or setting).

Alan


On Tue, 27 Jan 2015 21:50:44 +0100
Hans Hagen pra...@wxs.nl wrote:


On 1/27/2015 8:16 PM, Keith Schultz wrote:

Hi Jörg,

Though, generally, the von, as well as a few others, are nobility
particles in Germany, but not necessarily always noblility
particles, but at times signify the place where a persons ancestor
came from!

Now, in the case Goethe you are right that he was ennobled.
Therefore the von is not truly part of his name. He should be
listed as you rightly mentioned under Goethe and not von Goethe“.

It is impossible for a bibliographic system to handle this, so
there is no switch for it!


you can try to wrap thing that belong together in { } ... it might
work


So, it is up to the author of a text to set up his entries
properly, by putting the von in the right part of the name field.


indeed, not all can be catched in a poorly specified format

btw, context loads the bib data in memory and fields of type author
get split into multiple authors and each is split into parts; most
magic is under our own control so we can always add variants if
needed (maybe some prefix that indicates a german name or so) but
anyway this whole von business is on our agenda

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
___




___
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: separating different kinds of literature

2015-01-26 Thread Alan BRASLAU
On Mon, 26 Jan 2015 10:25:53 +0100
Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:

 Hi,
 
 What is the proper way to separate bibliography according to some
 criteria?
 
 I would like to separate serious publications from web sites (used
 when referring to hardware models used in experiments for example).
 
 Thank you,
 Mojca

Why not use two different datasets?

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
___

[NTG-context] Bibliography: separating different kinds of literature

2015-01-26 Thread Mojca Miklavec
Hi,

What is the proper way to separate bibliography according to some criteria?

I would like to separate serious publications from web sites (used
when referring to hardware models used in experiments for example).

Thank you,
Mojca
___
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: separating different kinds of literature

2015-01-26 Thread Hans Hagen

On 1/26/2015 10:25 AM, Mojca Miklavec wrote:

Hi,

What is the proper way to separate bibliography according to some criteria?

I would like to separate serious publications from web sites (used
when referring to hardware models used in experiments for example).


I can add a kind of filtering plugin mechanism but first we need to 
stabelize what we have.


We can filter on keyword, although I hadn't; yet adapted that to the 
latest internals ... when you pick up the beta you can do this:


\startsection[title=A List (bogus)]
\placebtxrendering[criterium=all,keyword=bogus]
\stopsection

\startsection[title=A List (important)]
\placebtxrendering[criterium=all,keyword=important]
\stopsection

\startsection[title=A List (rest)]
\placebtxrendering[criterium=all]
\stopsection

Because flushed entries get flagged you will get th enot yet flushed 
last. We can of course refine that model (e.g. keyword={!bogus} and so) 
but not today (operating in flu-mode).


See attached example-003.tex.

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
-


examples.7z
Description: application/7z-compressed
___
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 problems

2014-08-26 Thread Gerben Wierda
I have set up:

\setuppublications[numbering=short]
\setupcite[short]

but the \cite commands show (Author, Year) and not the short code and the 
\placepublications does not indent the entries enough, hence the item entry’s 
first column (the short code) overlaps with the actual entry.

How do I fix these? Can’t find it on the wiki or in the bibmod-doc.pdf

G___
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 problems

2014-08-26 Thread Gerben Wierda
On 26 Aug 2014, at 10:34, Gerben Wierda gerben.wie...@rna.nl wrote:

 I have set up:
 
 \setuppublications[numbering=short]
 \setupcite[short]
 
 but the \cite commands show (Author, Year) and not the short code and the 
 \placepublications does not indent the entries enough, hence the item entry’s 
 first column (the short code) overlaps with the actual entry.
 
 How do I fix these? Can’t find it on the wiki or in the bibmod-doc.pdf

I did not look well.
refcommand=short,autohang=yes


 
 G
 ___
 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] Bibliography: criterium=all

2014-07-16 Thread Hans Hagen

On 7/16/2014 2:20 AM, Flavien Lambert wrote:

Thanks Hans, I am really sorry but I still do not get any entry printed
(I followed your explanation as well as p. 25 of mkiv-publications.pdf)

\usebtxdataset[example][./mkiv-publications.bib]

\definebtxrendering[dataset=example,method=dataset]

\starttext
\showbtxdatasetfields[example]
some text
\placebtxrendering[example]
\stoptext

Could you just give a minimal example?
And, if possible, a way to sort by date...

Once again, my apologies for taking your time with that.

Best,
F.


On 16 July 2014 04:31, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl
wrote:

On 7/15/2014 12:39 PM, Flavien Lambert wrote:

Hi everyone, I really have difficulties with the bibliograpy system.
Sorry about that. I would like to print the whole bibliography so I
followed mkiv-publications.pdf and ended up with the file:

\usebtxdataset[example][./__mkiv-publications.bib]

\definebtxrendering
[example]
[dataset=example,
 method=local,
 alternative=apa]

\starttext

\showbtxdatasetfields[example]
\placebtxrendering
[example]
[criterium=all]

\stoptext

I get the list but not the bibliography itself.

What is wrong with my file? Is there also a way to sort the
entries by date?


The criterium is used for cited entries, and text/all then means for
the whole document. In your case you wan the data set (no refs in
the text):

\placebtxrendering
   [example]
   [method=dataset]

This axis is one of the new things as using criterium for that is messy.


\usebtxdataset
 [example]
 [t:/manuals/publications-mkiv/mkiv-publications.bib]

\definebtxrendering
  [example]
  [dataset=example]

\starttext
\showbtxdatasetfields[example]
some text
\placebtxrendering[example][method=dataset]
\stoptext

-
  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: criterium=all

2014-07-16 Thread Flavien Lambert
Great! Thanks a lot!

And concerning sorting by date?




On 16 July 2014 15:33, Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 2:20 AM, Flavien Lambert wrote:

 Thanks Hans, I am really sorry but I still do not get any entry printed
 (I followed your explanation as well as p. 25 of mkiv-publications.pdf)

 \usebtxdataset[example][./mkiv-publications.bib]

 \definebtxrendering[dataset=example,method=dataset]

 \starttext
 \showbtxdatasetfields[example]
 some text
 \placebtxrendering[example]
 \stoptext

 Could you just give a minimal example?
 And, if possible, a way to sort by date...

 Once again, my apologies for taking your time with that.

 Best,
 F.


 On 16 July 2014 04:31, Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl

 wrote:

 On 7/15/2014 12:39 PM, Flavien Lambert wrote:

 Hi everyone, I really have difficulties with the bibliograpy
 system.
 Sorry about that. I would like to print the whole bibliography so
 I
 followed mkiv-publications.pdf and ended up with the file:

 \usebtxdataset[example][./__mkiv-publications.bib]


 \definebtxrendering
 [example]
 [dataset=example,
  method=local,
  alternative=apa]

 \starttext

 \showbtxdatasetfields[example]
 \placebtxrendering
 [example]
 [criterium=all]

 \stoptext

 I get the list but not the bibliography itself.

 What is wrong with my file? Is there also a way to sort the
 entries by date?


 The criterium is used for cited entries, and text/all then means for
 the whole document. In your case you wan the data set (no refs in
 the text):

 \placebtxrendering
[example]
[method=dataset]

 This axis is one of the new things as using criterium for that is
 messy.


 \usebtxdataset
  [example]
  [t:/manuals/publications-mkiv/mkiv-publications.bib]

 \definebtxrendering
   [example]
   [dataset=example]


 \starttext
 \showbtxdatasetfields[example]
 some text
 \placebtxrendering[example][method=dataset]
 \stoptext


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

___
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: criterium=all

2014-07-16 Thread Hans Hagen

On 7/16/2014 10:10 AM, Flavien Lambert wrote:

Great! Thanks a lot!

And concerning sorting by date?


sorttype=author

sorts by author,year,journal,title,page

so what do you mean with 'by year'

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
___


Re: [NTG-context] Bibliography: criterium=all

2014-07-16 Thread Flavien Lambert
The sort by author is perfect.
Thanks,
F.
On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 10:10 AM, Flavien Lambert wrote:

 Great! Thanks a lot!

 And concerning sorting by date?


 sorttype=author

 sorts by author,year,journal,title,page

 so what do you mean with 'by year'

 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
 
 ___

___
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: criterium=all

2014-07-16 Thread Hans Hagen

On 7/16/2014 11:31 AM, Flavien Lambert wrote:

The sort by author is perfect.


fyi, sorting authors is kind of complex as we need to take all name 
elements into account (initials, firstnames, surnames, vons, juniors); 
of course there can be multiple authors; add to the extra axes year 
journal, title and page


the torture test is a list with 400K author specifications (taken from a 
bunch of bib databases) which eventually produces a 5500 page document


in practice, certainly when we have smaller databases, load time can be 
neglected (here it is .4 sec luatex vs .3 sec luajittex); sort 
preparation and processing of that bunch takes 35 sec for luatex and 19 
sec for luajittex but of course for normal cases you won't even noticed 
it .. bib databases with 400K entries are probably not used often


(i have no clue if bibtex can handle these numbers)


Thanks,
F.

On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl
mailto:pra...@wxs.nl wrote:

On 7/16/2014 10:10 AM, Flavien Lambert wrote:

Great! Thanks a lot!

And concerning sorting by date?


sorttype=author

sorts by author,year,journal,title,page

so what do you mean with 'by year'

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
http://www.pragma-ade.com
  | www.pragma-pod.nl
http://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 mailto:ntg-context@ntg.nl /
http://www.ntg.nl/mailman/__listinfo/ntg-context
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/
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
___




--

-
  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: criterium=all

2014-07-16 Thread Alan BRASLAU
Hans,

Sorting simply by year (or, rather, year then author then title ...)
could be useful. Take, for example, a pluriannual report having many
references. One might wish to display a list of publications by year.
Should this be selected using sorttype=year?

Another possible syntax could be
  sorttype={author,year,title,page}
and this would be the default for APA.
Of course, the other common sorting is sorttype=cite.

Furthermore,
  sorttype={year,author,title,page}
would be another variant, and I can even imagine using:
  sorttype={journal,volume,number,page}
or
  sorttype={publisher,year,title}
and I am sure that users may need something totally unanticipated.

The change from the present is that sortype=author implies
{author,year,title,page}. I suppose that it could default to this order
if no other order is specified. Just like sorttype=year could default
to something sane like {year,author,title,page} unless a different
order is explicitly given, etc.

A subtlety is how to handle missing fields, say in a mixture of
articles and books where articles have journal titles (journal) and
article titles (title) and books have book titles (title). Should
missing journal fields (books) come before or after articles or should
title then be taken into account, as in {journal|title}? Do we need to
allow such logic?

We can continue to discuss this with Thomas and Luigi but I mention it
here on the mailing list as Flavien Lambert brought up the question.

Alan 




On Wed, 16 Jul 2014 11:52:15 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 11:31 AM, Flavien Lambert wrote:
  The sort by author is perfect.
 
 fyi, sorting authors is kind of complex as we need to take all name 
 elements into account (initials, firstnames, surnames, vons,
 juniors); of course there can be multiple authors; add to the extra
 axes year journal, title and page
 
 the torture test is a list with 400K author specifications (taken
 from a bunch of bib databases) which eventually produces a 5500 page
 document
 
 in practice, certainly when we have smaller databases, load time can
 be neglected (here it is .4 sec luatex vs .3 sec luajittex); sort 
 preparation and processing of that bunch takes 35 sec for luatex and
 19 sec for luajittex but of course for normal cases you won't even
 noticed it .. bib databases with 400K entries are probably not used
 often
 
 (i have no clue if bibtex can handle these numbers)
 
  Thanks,
  F.
 
  On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl
  mailto:pra...@wxs.nl wrote:
 
  On 7/16/2014 10:10 AM, Flavien Lambert wrote:
 
  Great! Thanks a lot!
 
  And concerning sorting by date?
 
 
  sorttype=author
 
  sorts by author,year,journal,title,page
 
  so what do you mean with 'by year'
 
  Hans


-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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: criterium=all

2014-07-16 Thread Rob Heusdens
Hello,

This is more a 'side-comment', but anytime I see an application that wants
in fact to query data from some dataresource, I ask myself: why is that
not implemented as a real relational database?

BibTex is some weird implementation for a problem that in facts requests a
real relational dababase approach, in which your data does not reside in a
file, but a couple of tables. Like PUBLISHER (the organisation that
publishes the article/book/journal, etc.), PUBLICATION, EDITION,
AUTHOR/CONTRIBUTOR (a person making a contribution to a PUBLICATION, like
author, co-author, editor) etc.

For example: every author that has contributed to a publication (or
edition thereof) has only one record in the AUTHOR table, and for each
contribution to a PUBLICATION/EDITION there is a record in the
CONTRIBUTION table, with the foreign keys to the primary key of
AUTHOR/CONTRIBUTOR and to the PUBLICATION/EDITION table.

A data-model for such must exist in the real-world, somewhere, I guess.
But Tex and other implementors have choosen to implement this in a simple
flat-file system, and which I think is part of the problem, because the
implemenation as flat file has certain limits. Esp. when more demanding
features are requested.

Still thinking that ultimately that would be the best way to implement
BibTex, using a relational database as repository instead of flat files.
And you could implement many other 'nice' featueres, like querying other
works related to the works you want to cite (for instance at the basis of
relevant key/reference words or other).

Would be do-able I guess (LuaTex can access dabatases), only problem is
you have to convert al these .bib files into the database format.

But don't know if anyone has thought about implementing Bibtex as a database.

Greetings,

Rob

 Hans,

 Sorting simply by year (or, rather, year then author then title ...)
 could be useful. Take, for example, a pluriannual report having many
 references. One might wish to display a list of publications by year.
 Should this be selected using sorttype=year?

 Another possible syntax could be
   sorttype={author,year,title,page}
 and this would be the default for APA.
 Of course, the other common sorting is sorttype=cite.

 Furthermore,
   sorttype={year,author,title,page}
 would be another variant, and I can even imagine using:
   sorttype={journal,volume,number,page}
 or
   sorttype={publisher,year,title}
 and I am sure that users may need something totally unanticipated.

 The change from the present is that sortype=author implies
 {author,year,title,page}. I suppose that it could default to this order
 if no other order is specified. Just like sorttype=year could default
 to something sane like {year,author,title,page} unless a different
 order is explicitly given, etc.

 A subtlety is how to handle missing fields, say in a mixture of
 articles and books where articles have journal titles (journal) and
 article titles (title) and books have book titles (title). Should
 missing journal fields (books) come before or after articles or should
 title then be taken into account, as in {journal|title}? Do we need to
 allow such logic?

 We can continue to discuss this with Thomas and Luigi but I mention it
 here on the mailing list as Flavien Lambert brought up the question.

 Alan




 On Wed, 16 Jul 2014 11:52:15 +0200
 Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 11:31 AM, Flavien Lambert wrote:
  The sort by author is perfect.

 fyi, sorting authors is kind of complex as we need to take all name
 elements into account (initials, firstnames, surnames, vons,
 juniors); of course there can be multiple authors; add to the extra
 axes year journal, title and page

 the torture test is a list with 400K author specifications (taken
 from a bunch of bib databases) which eventually produces a 5500 page
 document

 in practice, certainly when we have smaller databases, load time can
 be neglected (here it is .4 sec luatex vs .3 sec luajittex); sort
 preparation and processing of that bunch takes 35 sec for luatex and
 19 sec for luajittex but of course for normal cases you won't even
 noticed it .. bib databases with 400K entries are probably not used
 often

 (i have no clue if bibtex can handle these numbers)

  Thanks,
  F.
 
  On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl
  mailto:pra...@wxs.nl wrote:
 
  On 7/16/2014 10:10 AM, Flavien Lambert wrote:
 
  Great! Thanks a lot!
 
  And concerning sorting by date?
 
 
  sorttype=author
 
  sorts by author,year,journal,title,page
 
  so what do you mean with 'by year'
 
  Hans


 --
 Alan Braslau
 CEA DSM-IRAMIS-SPEC
 CNRS URA 2464
 Orme des Merisiers
 91191 Gif-sur-Yvette cedex FRANCE
 tel: +33 1 69 08 73 15
 fax: +33 1 69 08 87 86
 mailto:alan.bras...@cea.fr
 ___
 If your question is of interest to others as well, please add an entry to
 the Wiki!

 maillist : 

Re: [NTG-context] Bibliography: criterium=all

2014-07-16 Thread Hans Hagen

On 7/16/2014 2:24 PM, Rob Heusdens wrote:

Hello,

This is more a 'side-comment', but anytime I see an application that wants
in fact to query data from some dataresource, I ask myself: why is that
not implemented as a real relational database?

BibTex is some weird implementation for a problem that in facts requests a
real relational dababase approach, in which your data does not reside in a
file, but a couple of tables. Like PUBLISHER (the organisation that
publishes the article/book/journal, etc.), PUBLICATION, EDITION,
AUTHOR/CONTRIBUTOR (a person making a contribution to a PUBLICATION, like
author, co-author, editor) etc.

For example: every author that has contributed to a publication (or
edition thereof) has only one record in the AUTHOR table, and for each
contribution to a PUBLICATION/EDITION there is a record in the
CONTRIBUTION table, with the foreign keys to the primary key of
AUTHOR/CONTRIBUTOR and to the PUBLICATION/EDITION table.

A data-model for such must exist in the real-world, somewhere, I guess.
But Tex and other implementors have choosen to implement this in a simple
flat-file system, and which I think is part of the problem, because the
implemenation as flat file has certain limits. Esp. when more demanding
features are requested.

Still thinking that ultimately that would be the best way to implement
BibTex, using a relational database as repository instead of flat files.
And you could implement many other 'nice' featueres, like querying other
works related to the works you want to cite (for instance at the basis of
relevant key/reference words or other).

Would be do-able I guess (LuaTex can access dabatases), only problem is
you have to convert al these .bib files into the database format.

But don't know if anyone has thought about implementing Bibtex as a database.


the main problem there is that normally authors collect their own 
bibentries and that bib has become sort of a standard ... i have no 
problem with a database approach but it would also mean normalizing 
(e.g. get rid of tex stuff in bib entries) and so


technically it's no problem but politically ...

(similar arguments can be given for math habit and so)

with context we're not too bound to such 'standards'  but we can't 
ignore them (and therefore support them); the bib implementation is 
flexible enough to be extended but in order to get a database approach 
done a reasonable set of users need to carry it


(there are some search options built in btw)



Greetings,

Rob


Hans,

Sorting simply by year (or, rather, year then author then title ...)
could be useful. Take, for example, a pluriannual report having many
references. One might wish to display a list of publications by year.
Should this be selected using sorttype=year?

Another possible syntax could be
   sorttype={author,year,title,page}
and this would be the default for APA.
Of course, the other common sorting is sorttype=cite.

Furthermore,
   sorttype={year,author,title,page}
would be another variant, and I can even imagine using:
   sorttype={journal,volume,number,page}
or
   sorttype={publisher,year,title}
and I am sure that users may need something totally unanticipated.

The change from the present is that sortype=author implies
{author,year,title,page}. I suppose that it could default to this order
if no other order is specified. Just like sorttype=year could default
to something sane like {year,author,title,page} unless a different
order is explicitly given, etc.

A subtlety is how to handle missing fields, say in a mixture of
articles and books where articles have journal titles (journal) and
article titles (title) and books have book titles (title). Should
missing journal fields (books) come before or after articles or should
title then be taken into account, as in {journal|title}? Do we need to
allow such logic?

We can continue to discuss this with Thomas and Luigi but I mention it
here on the mailing list as Flavien Lambert brought up the question.

Alan




On Wed, 16 Jul 2014 11:52:15 +0200
Hans Hagen pra...@wxs.nl wrote:


On 7/16/2014 11:31 AM, Flavien Lambert wrote:

The sort by author is perfect.


fyi, sorting authors is kind of complex as we need to take all name
elements into account (initials, firstnames, surnames, vons,
juniors); of course there can be multiple authors; add to the extra
axes year journal, title and page

the torture test is a list with 400K author specifications (taken
from a bunch of bib databases) which eventually produces a 5500 page
document

in practice, certainly when we have smaller databases, load time can
be neglected (here it is .4 sec luatex vs .3 sec luajittex); sort
preparation and processing of that bunch takes 35 sec for luatex and
19 sec for luajittex but of course for normal cases you won't even
noticed it .. bib databases with 400K entries are probably not used
often

(i have no clue if bibtex can handle these numbers)


Thanks,
F.

On 16 Jul 2014 17:16, Hans Hagen pra...@wxs.nl

Re: [NTG-context] Bibliography: criterium=all

2014-07-16 Thread Alan BRASLAU
BibTeX was one approach that is somewhat a standard. There are other
bibliography database file formats such as EndNote, RIS, and many
others. From an academic researcher's point of view, one practical
point is the accessibility of bibliographical data. Many websites, both
public as well as paying can output to these formats, so we use
them.

Hans has undertaken a lua reimplementation of using these bibliography
database files. BibTeX as a program is no longer used in the new
bibliography macros. Our use of the bibliography database is far from
covering all of the possibilities of the BibTeX program, but we are
building it up with functionality that we find necessary. The
performance appears to be quite satisfactory and the flexibility of
being able to program in lua has allowed Hans to fairly easily provide
whatever crazy functionality that we have thrown at him so far!

Maybe, as you suggest, a real relational database approach would be
useful. As long as it does not become too complicated and not impose
important dependencies. I am not a specialist on these issues so I do
not have any real opinion, though.

Alan




On Wed, 16 Jul 2014 14:44:59 +0200
Hans Hagen pra...@wxs.nl wrote:

 On 7/16/2014 2:24 PM, Rob Heusdens wrote:
  Hello,
 
  This is more a 'side-comment', but anytime I see an application
  that wants in fact to query data from some dataresource, I ask
  myself: why is that not implemented as a real relational database?
 
  BibTex is some weird implementation for a problem that in facts
  requests a real relational dababase approach, in which your data
  does not reside in a file, but a couple of tables. Like PUBLISHER
  (the organisation that publishes the article/book/journal, etc.),
  PUBLICATION, EDITION, AUTHOR/CONTRIBUTOR (a person making a
  contribution to a PUBLICATION, like author, co-author, editor) etc.
 
  For example: every author that has contributed to a publication (or
  edition thereof) has only one record in the AUTHOR table, and for
  each contribution to a PUBLICATION/EDITION there is a record in the
  CONTRIBUTION table, with the foreign keys to the primary key of
  AUTHOR/CONTRIBUTOR and to the PUBLICATION/EDITION table.
 
  A data-model for such must exist in the real-world, somewhere, I
  guess. But Tex and other implementors have choosen to implement
  this in a simple flat-file system, and which I think is part of the
  problem, because the implemenation as flat file has certain limits.
  Esp. when more demanding features are requested.
 
  Still thinking that ultimately that would be the best way to
  implement BibTex, using a relational database as repository instead
  of flat files. And you could implement many other 'nice' featueres,
  like querying other works related to the works you want to cite
  (for instance at the basis of relevant key/reference words or
  other).
 
  Would be do-able I guess (LuaTex can access dabatases), only
  problem is you have to convert al these .bib files into the
  database format.
 
  But don't know if anyone has thought about implementing Bibtex as a
  database.
 
 the main problem there is that normally authors collect their own 
 bibentries and that bib has become sort of a standard ... i have no 
 problem with a database approach but it would also mean normalizing 
 (e.g. get rid of tex stuff in bib entries) and so
 
 technically it's no problem but politically ...
 
 (similar arguments can be given for math habit and so)
 
 with context we're not too bound to such 'standards'  but we can't 
 ignore them (and therefore support them); the bib implementation is 
 flexible enough to be extended but in order to get a database
 approach done a reasonable set of users need to carry it
 
 (there are some search options built in btw)
___
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: criterium=all

2014-07-15 Thread Flavien Lambert
Hi everyone, I really have difficulties with the bibliograpy system. Sorry
about that. I would like to print the whole bibliography so I followed
mkiv-publications.pdf and ended up with the file:

\usebtxdataset[example][./mkiv-publications.bib]

\definebtxrendering
  [example]
  [dataset=example,
   method=local,
   alternative=apa]

\starttext

\showbtxdatasetfields[example]
\placebtxrendering
  [example]
  [criterium=all]

\stoptext

I get the list but not the bibliography itself.

What is wrong with my file? Is there also a way to sort the entries by date?

Best,
F.
___
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
___

  1   2   3   4   >