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 [[email protected]]
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
-----------------------------------------------------------------
@STRING{hh = {Hans Hagen}}
@ELECTRONIC{hh2010,
author = hh,
year = {2010},
title = {Metafun. \CONTEXT\ mkiv},
url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf},
}
@ARTICLE{hh2010a,
author = hh,
title = {The Font Name Mess},
journal = {MAPS},
year = {2010},
volume = {40},
pages = {2-8},
keywords = {context},
}
@ARTICLE{hh2010b,
author = hh,
title = {Grouping in Hybrid Environments},
journal = {MAPS},
year = {2010},
volume = {40},
pages = {67-71},
keywords = {context},
}
@BOOK{Eijkhout1991,
title = {\TeX\ by Topic. A \TeX nician's Reference},
publisher = {Addison-Wesley},
year = {1991},
author = {Victor Eijkhout},
address = {London},
keywords = {general},
}
\setupbibtex[database={sample},sort=author]
% \setuppublications[alternative=num]
\starttext
\cite[Eijkhout1991]
\placepublications[criterium=all]
\stoptext
(test.tex
ConTeXt ver: 2011.04.13 09:23 MKIV fmt: 2011.4.16 int: english/english
system > cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system > beware: some patches loaded from cont-new.mkiv
)
system > test.top loaded
system > options > begin of optionfile
system > options >
system > options > % runtime options files (command line driven)
system > options > \unprotect
system > options > % feedback and basic job control
system > options > % handy for special styles
system > options > \startluacode
system > options > document = document or { }
system > options > document.arguments={
system > options > }
system > options > document.files={
system > options > "test.tex",
system > options > }
system > options > \stopluacode
system > options > % process info
system > options > \setupsystem[inputfile=test.tex]
system > options > \setupsystem[\c!n=1,\c!m=1]
system > options > % modes
system > options > % options (not that important)
system > options > \startsetups *runtime:options
system > options > \stopsetups
system > options > % styles and modules
system > options > \startsetups *runtime:modules
system > options > \stopsetups
system > options > % done
system > options > \protect \endinput
system > options >
system > options > end of optionfile
(test.top)
fonts > latin modern fonts are not preloaded
languages > language en is active
publications > wrote a new auxiliary file \jobname.aux
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
(/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fonts > virtual math > unable to resolve name mapsfromchar
fonts > fallback modern rm 12pt is loaded
system > begin file test.tex at line 4
! 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.
system > tex > error on line 5 in file test.tex: LuaTeX error ...
1 \setupbibtex[database={sample},sort=author]
2 % \setuppublications[alternative=num]
3
4 \starttext
5 >> \cite[Eijkhout1991]
6 \placepublications[criterium=all]
7 \stoptext
8
\bibnumref ...ve("","\number \bibtexblock ","#1")}
\bibalternative \v!right \...
\docite ...cite {#1}{#2}\else \donumberedcite {#1}
\fi \endgroup
<to be read again>
l.5 \cite[Eijkhout1991]
? q
OK, entering \batchmode...
publications > loading database from test.bbl
(test.bbl)
publications > placing all entries, use 'text' to be more selective
backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1, subpage 1
system > end file test.tex at line 7
)</usr/share/texmf/fonts/opentype/public/lm/lmroman12-italic.otf></usr/share/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
mkiv lua stats > used config file - /usr/share/texmf/web2c/texmfcnf.lua
mkiv lua stats > used cache path - /home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d
mkiv lua stats > input load time - 0.152 seconds
mkiv lua stats > stored bytecode data - 283 modules, 58 tables, 341 chunks
mkiv lua stats > cleaned up reserved nodes - 33 nodes, 9 lists of 423
mkiv lua stats > node memory usage - 19 glue_spec
mkiv lua stats > node list callback tasks - 6 unique task lists, 5 instances (re)created, 2410 calls
mkiv lua stats > used backend - pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns - en::2
mkiv lua stats > language load time - 0.063 seconds , nofpatterns: 1
mkiv lua stats > callbacks - 2579 direct, 3017 indirect, 5596 total
mkiv lua stats > randomizer - initialized with value 0.073862066061172
mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats > interactive elements - 0 references, 4 destinations
mkiv lua stats > result saved in file - test.pdf
mkiv lua stats > loaded fonts - 34 files: stmary10.afm eufb10.tfm eufb7.tfm eufm10.tfm eufm7.tfm msam10.tfm msam7.tfm msbm10.tfm msbm7.tfm lmmono12-regular.otf lmmono8-regular.otf lmmono9-regular.otf lmroman12-bold.otf lmroman12-italic.otf lmroman12-regular.otf lmroman7-bold.otf lmroman7-regular.otf lmroman9-bold.otf lmroman9-regular.otf lmsans12-regular.otf lmsans8-regular.otf lmsans9-regular.otf lmex10.tfm lmmi12.tfm lmmi7.tfm lmmi9.tfm lmmib10.tfm lmmib7.tfm lmsy10.tfm lmsy7.tfm lmsy9.tfm rm-lmr12.tfm rm-lmr7.tfm rm-lmr9.tfm
mkiv lua stats > fonts load time - 0.610 seconds
mkiv lua stats > luatex banner - this is luatex, version beta-0.66.0-2011041620 (rev 4159)
mkiv lua stats > control sequences - 30362 of 165536
mkiv lua stats > current memory usage - 32 MB (ctx: 33 MB)
mkiv lua stats > runtime - 4.083 seconds, 1 processed pages, 1 shipped pages, 0.245 pages/second
(/home/reviczky/Desktop/thesis/src/prd_finalreport.tex
ConTeXt ver: 2011.04.13 09:23 MKIV fmt: 2011.4.16 int: english/english
(/usr/share/texmf/tex/context/base/cont-new.mkiv) (prd_finalreport.top
){/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} (/usr/share/texmf/tex/context/base/type-siz.mkiv) (/usr/share/texmf/tex/context/base/type-otf.mkiv){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map} (project_6ccs3prj.tex (env_6ccs3prj.tex (/usr/share/texmf/tex/context/base/colo-imp-x11.mkiv) (/usr/share/texmf/tex/context/base/page-run.mkiv))) (c_titlepage.tex) (c_legal.tex) (c_abstract.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_acknowledgements.tex
Missing character: There is no ⢠(U+2022) in font euler!
Missing character: There is no ⢠(U+2022) in font euler!
Missing character: There is no ⢠(U+2022) in font euler!
) (c_tableofcontents.tex) (c_introduction.tex (/usr/share/texmf/tex/context/sample/knuth.tex)
! 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.
7 [subtitle={Final Report}]
8
9 % - product structure
10 \component c_titlepage
11 \component c_legal
12 \component c_abstract
13 \component c_acknowledgements
14 \component c_tableofcontents
15
16 % double-space
17 >> \setupinterlinespace
18 [big]
19 \component c_introduction
20 \component c_background
21 \component c_body
22 \component c_evaluation
23 \component c_conclusions
24 \setupinterlinespace
25 [reset]
26
27 \component c_bibliography
\bibnumref ...ve("","\number \bibtexblock ","#1")}
\bibalternative \v!right \...
\docite ...cite {#1}{#2}\else \donumberedcite {#1}
\fi \endgroup
<to be read again>
l.17 \input knuth \cite[knuth:texbook:1988]
\par
The lua interpreter ran into a problem, so the
remainder of this lua chunk will be ignored.
) (c_background.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_body.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_evaluation.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_conclusions.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) (c_bibliography.tex (prd_finalreport.bbl)) (c_appendix.tex) (c_userguide.tex (/usr/share/texmf/tex/context/sample/knuth.tex) </home/reviczky/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/schemes/9cd7cb93375dcf361e4c60217fb54c64 (PNG copy)>) (c_programlistings.tex (/usr/share/texmf/tex/context/sample/knuth.tex)) )</usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrecursor-regular.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-bold.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-regular.otf></usr/share/texmf/fonts/opentype/public/euler/euler.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyreadventor-italic.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-italic.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-bold.otf></usr/share/texmf/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf>
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / 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
___________________________________________________________________________________