On Tue, 16 May 2006 15:27:46 +0200, Taco Hoekwater <[EMAIL PROTECTED]>  
wrote:

> nico wrote:
>>
>> Hm, I think it could be interesting to add such a feature to context,  
>> but
>> I understand it cannot be done immediately. Latex already have such  
>> things
>
> Sure. Can you point me to the documentation of 'bibtopic'

http://www.tex.ac.uk/tex-archive/macros/latex/contrib/bibtopic/bibtopic.pdf

> and also
> propose a calling / configuration syntax for the ConTeXt  version?
> (it is easier for me if I know what to work towards)

I don't know if it's doable or if it breaks the consistency of the current  
interface, but I would see something like the list mechanism:

\definebiblist[name][\setupbiblist options]
\setupbiblist[name][\setuppublicationlist options]
\setupbibfile[name][\setupbibtex options]
\placebiblist[name]

\definecombinedbiblist[bibgroup][biblist list][\setupcombinedlist options]
\setupcombinedlist[bibgroup][ not yet clear what options it should provide  
]

\startbibentry[name][\startpublication options]

\setupcite[name][what][options] (name optional)
\cite[name][what][ref] or \cite[what][name:ref] (name optional)

To keep the current interface, a default global publication list could  
exist:

\setuppublicationlist = \setupbiblist[publication]
\startpublication = \startbibentry[publication]
\placepublications = \placebiblist[publication]
\setupbibtex = \setupbibfile[publication]

Example of use:

% the specs come only from bibtex files
\definebiblist[specs][criterium=all]
\setupbibtex[specs][database={spec1,spec2},sort=short]

\definebiblist[manuals][criterium=all]
\setupbibtex[manuals][database=manbase,sort=short]

% also an embedded definition for the manuals
\startbibentry[manuals][k=me,t=manual,a=Hoekwater,y=2006]
\author[]{Taco}[T.]{}{Hoekwater}
\title{Publication Module}
\stopbibentry

% all the biblio stuff
\definecombinedbiblist[allbibs][specs,manuals][criterium=all]

% let's go
\starttext
\chapter{The doc}
\section{References in the chapter}
\subsection{Specifications}
\placebiblist[specs][criterium=cite]

\subsection{Manuals}
\placebiblist[manuals][criterium=local]

\section{Introduction}
As explained in \cite[manuals][key][me]...

\chapter{References Summary}
\placecombinedlist[allbibs]
\stoptext

What is not clear for me:
- if the bibentry numbering must be global or could restart to 1 for each  
list,
- if it is really feasible to place the biblists several times in the doc,  
and if so, to which list the \cite actually points to.

I hope that all of this doesn't sound too stupid :-)

Regards,
BG
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to