[NTG-context] Bibliography

Procházka Lukáš Ing. - Pontex s. r. o. LPr at pontex.cz
Wed Jul 1 10:35:03 CEST 2015


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 "(Xxxxxxxxxx, 0000)" 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:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751
Fax: +420 244 461 038
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bib.test.mkiv
Type: application/octet-stream
Size: 273 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150701/14647a0a/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Bib.test.pdf
Type: application/pdf
Size: 5646 bytes
Desc: not available
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150701/14647a0a/attachment.pdf>


More information about the ntg-context mailing list