ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Citation "Error 2" using BibTeX db
@ 2011-12-19  7:49 Chris Lott
  2011-12-20  3:51 ` Pontus Lurcock
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Lott @ 2011-12-19  7:49 UTC (permalink / raw)
  To: Mailing list for ConTeXt users

I was testing citation capability with a BibTeX db based on the
Context Garden bibliography page:
http://wiki.contextgarden.net/Bibliography

The example code using the xampl.bib from my distribution didn't work
at all. So I've tried to make a very small example, which results in
an in-text citation that says [[error 2]] and no citations listed in
the References section:

CONTEXT --VERSION
mtx-context     | main context file:
/Users/chrislott/context/tex/texmf-context/tex/context/base/context.mkiv
mtx-context     | current version: 2011.12.18 15:57

CTXBIBTEST.TEX (I've tried with and without the bibltx module, which
isn't found on my system)
\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=bibtest]
\starttext
"Oh No," he said \cite[lott].
\completepublications
\stoptext

BIBTEST.BIB
@book{lott,
    author  = "Chris Lott",
    title   = "FUBARed",
    publisher  = "NonExistent Press",
        year    = "2011",
        address = "Timbuktu"
}

CTXBIBTEST.BBL (generated by ConTeXt):
\setuppublicationlist[samplesize={Lot11},totalnumber=1]

\startpublication[k=lott,t=book,
a={{Lott}},y=2011,
n=1,s=Lot11]
\author[]{Chris}[C.]{}{Lott}
\pubyear{2011}
\title{FUBARed}
\city{Timbuktu}
\pubname{NonExistent Press}
\stoppublication

CTXBIBTEST.AUX (generated by ConTeXt)

c
--
Chris Lott <chris@chrislott.org>
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Citation "Error 2" using BibTeX db
  2011-12-19  7:49 Citation "Error 2" using BibTeX db Chris Lott
@ 2011-12-20  3:51 ` Pontus Lurcock
  0 siblings, 0 replies; 2+ messages in thread
From: Pontus Lurcock @ 2011-12-20  3:51 UTC (permalink / raw)
  To: ntg-context

On Sun 18 Dec 2011, Chris Lott wrote:

> I was testing citation capability with a BibTeX db based on the
> Context Garden bibliography page:
> http://wiki.contextgarden.net/Bibliography
> 
> The example code using the xampl.bib from my distribution didn't work
> at all. So I've tried to make a very small example, which results in
> an in-text citation that says [[error 2]] and no citations listed in
> the References section:
> 
> CONTEXT --VERSION
> mtx-context     | main context file:
> /Users/chrislott/context/tex/texmf-context/tex/context/base/context.mkiv
> mtx-context     | current version: 2011.12.18 15:57
> 
> CTXBIBTEST.TEX (I've tried with and without the bibltx module, which
> isn't found on my system)
> \usemodule[bib]
> \usemodule[bibltx]
> \setupbibtex[database=bibtest]
> \starttext
> "Oh No," he said \cite[lott].
> \completepublications
> \stoptext
> 
> BIBTEST.BIB
> @book{lott,
>     author  = "Chris Lott",
>     title   = "FUBARed",
>     publisher  = "NonExistent Press",
>         year    = "2011",
>         address = "Timbuktu"
> }

Looks as though it might be a bug in \completepublications, since I
get correct output by changing your tex file to:

\setupbibtex[database=bibtest]
\starttext
"Oh No," he said \cite[lott].
\chapter{Publications}
\placepublications[criterium=text]
\stoptext

(MkIV, ConTeXt suite 2011.10.01 10:48 on Ubuntu 32-bit)

If you're using MkIV, neither of the \usemodules should be necessary.

Hope this helps,

Pont
___________________________________________________________________________________
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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-12-20  3:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-19  7:49 Citation "Error 2" using BibTeX db Chris Lott
2011-12-20  3:51 ` Pontus Lurcock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).