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

Attachment: Bib6.log
Description: Binary data

Attachment: Bib6.mkiv
Description: Binary data

Attachment: 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
___________________________________________________________________________________

Reply via email to