[NTG-context] bug with \cite in latest beta (2011.04.13)

Reviczky, Adam adam.reviczky at kcl.ac.uk
Sat Apr 16 23:51:00 CEST 2011


Sadly that didn't help at all (neither on my thesis file nor on the minimal example).

I'm attaching the minimal example with the logs.

Adam

PS: I've changed the line 191 and regenerated the formats.

________________________________________
From: Hans Hagen [pragma at wxs.nl]
Sent: 16 April 2011 22:29
To: mailing list for ConTeXt users
Cc: Reviczky, Adam
Subject: Re: [NTG-context] bug with \cite in latest beta (2011.04.13)

On 16-4-2011 8:53, Reviczky, Adam wrote:
> So does anybody have a working example with 2011.04.13 for the cite?
>
> Using this example gives me a luatex error, and it used to work with earlier beta's:
>
> % sample.bib: http://wiki.contextgarden.net/sample_bib
> %%%
> \setupbibtex[database={sample},sort=author]
> % apa works, but I don't want apa
> % \setuppublications[alternative=apa]
> % neither num or default doesn't work
> \setuppublications[alternative=num]
>
> \starttext
> % \cite[][Eijkhout1991] works, but produces not a numbered output
> \cite[Eijkhout1991]
> \placepublications[criterium=all]
> \stoptext
> %%%
>
> The error I get is:
> ! LuaTeX error /usr/share/texmf/tex/context/base/bibl-tra.lua:192: attempt to compare number with string
> stack traceback:
>       /usr/share/texmf/tex/context/base/bibl-tra.lua:192: in function 'resolve'
>       <main ctx instance>:1: in main chunk.

Does changing the line before it helps?

191:        if first and last then -- also test on last

must be some weird border case.

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
-----------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sample.bib
Type: text/x-bibtex
Size: 729 bytes
Desc: sample.bib
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110416/def02b13/attachment.bib>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.tex
Type: text/x-tex
Size: 158 bytes
Desc: test.tex
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110416/def02b13/attachment.tex>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.log
Type: text/x-log
Size: 5730 bytes
Desc: test.log
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110416/def02b13/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: thesis.log
Type: text/x-log
Size: 3500 bytes
Desc: thesis.log
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20110416/def02b13/attachment-0001.bin>


More information about the ntg-context mailing list