Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
On 16-4-2011 11:51, Reviczky, Adam wrote: 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. line 157: local current = tonumber(found.entries and found.entries.text) -- tonumber needed i wonder why this surfaces now - 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 - ___ 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
Thanks Hans! That was it, now it works again. Best wishes Adam From: Hans Hagen [pra...@wxs.nl] Sent: 17 April 2011 15:57 To: Reviczky, Adam Cc: mailing list for ConTeXt users Subject: Re: [NTG-context] bug with \cite in latest beta (2011.04.13) On 16-4-2011 11:51, Reviczky, Adam wrote: 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. line 157: local current = tonumber(found.entries and found.entries.text) -- tonumber needed i wonder why this surfaces now - 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 - ___ 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
On Sat, 16 Apr 2011 07:55:29 +0200 Bernhard Rosensteiner brosenstei...@gmail.com wrote: when i use \cite[...][reference...] instead of \cite{reference} the error is also not triggered. Anyway strange. Why is that strange? \cite{...} isn't context syntax. I don't find it surprising that wrong usage triggers an error. Thomas ___ 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
On Sat 16 Apr 2011, Bernhard Rosensteiner wrote: when i use \cite[...][reference...] instead of \cite{reference} the error is also not triggered. Anyway strange. I believe that \cite{reference} is incorrect in ConTeXt. The general rule is {} for anything that will actually be typeset as text, and [] for parameters that have a semantic meaning for ConTeXt. Hence things like \section[sec:some-reference]{The visible section title}. (The above is my understanding but I'm sure someone will correct me if it's wrong.) 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
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. Adam ___ 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
On Sat, 16 Apr 2011 07:53:20 +0100 Reviczky, Adam adam.revic...@kcl.ac.uk 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: This is a (new) bug with cite; numbered lists are not working. I'll send Hans a report... Thomas ___ 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
strange in the sense: it worked before and after the update not I will from now on use proper context syntax, thanks for clearing. best regards Bernhard On Samstag, 16. April 2011 at 08:38, Thomas Schmitz wrote: On Sat, 16 Apr 2011 07:55:29 +0200 Bernhard Rosensteiner brosenstei...@gmail.com wrote: when i use \cite[...][reference...] instead of \cite{reference} the error is also not triggered. Anyway strange. Why is that strange? \cite{...} isn't context syntax. I don't find it surprising that wrong usage triggers an error. Thomas ___ 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 ___ ___ 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 ___
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 - ___ 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
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 [pra...@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 - @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) fontslatin modern fonts are not preloaded languageslanguage en is active publications wrote a new auxiliary file \jobname.aux {/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fontspreloading 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} fontsvirtual math unable to resolve name mapsfromchar fontsfallback 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
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
there are some problems with the citecommand in the latest beta. I always get a LuaTeX error... I've hit the same problem, though apa doesn't seem to be affected, so in the meantime you can use: \setuppublications[alternative=apa] Adam ___ 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 ___
Re: [NTG-context] bug with \cite in latest beta (2011.04.13)
when i use \cite[...][reference...] instead of \cite{reference} the error is also not triggered. Anyway strange. best regards Bernhard On Samstag, 16. April 2011 at 06:47, Reviczky, Adam wrote: there are some problems with the citecommand in the latest beta. I always get a LuaTeX error... I've hit the same problem, though apa doesn't seem to be affected, so in the meantime you can use: \setuppublications[alternative=apa] Adam ___ 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 ___ ___ 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 ___
[NTG-context] bug with \cite in latest beta (2011.04.13)
Hello all, there are some problems with the citecommand in the latest beta. I always get a LuaTeX error... Actually i was in the middle of narrowing down a bug where a \cite command in a caption produced a entry in the publication list of the caption text (and also made that sometimes interaction did not work with some references in the text), so i tried to update to the latest beta and now the document does not compile any more. Please see attached files. best regards Bernhard temp.tex Description: Binary data temp.log Description: Binary data temp.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 ___