From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74291 Path: news.gmane.org!not-for-mail From: Philipp Gesang Newsgroups: gmane.comp.tex.context Subject: Re: strc-lst.lua [was: Bibliography problem] Date: Fri, 3 Feb 2012 15:04:58 +0100 Message-ID: <20120203140458.GA17889@phlegethon> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1406158027==" X-Trace: dough.gmane.org 1328277908 22310 80.91.229.3 (3 Feb 2012 14:05:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 3 Feb 2012 14:05:08 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 03 15:05:05 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RtJlB-00084n-C2 for gctc-ntg-context-518@m.gmane.org; Fri, 03 Feb 2012 15:05:05 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7800FCB1DA; Fri, 3 Feb 2012 15:05:04 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id BA-6KUUEdupG; Fri, 3 Feb 2012 15:05:04 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94642CB1E4; Fri, 3 Feb 2012 15:04:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 92D85CB1E4 for ; Fri, 3 Feb 2012 15:04:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id UvWrVSWiPtzT for ; Fri, 3 Feb 2012 15:04:42 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 33BB1CB1DA for ; Fri, 3 Feb 2012 15:04:41 +0100 (CET) Original-Received: from relay.uni-heidelberg.de (relay.uni-heidelberg.de [129.206.100.212]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q13E4fiY005093 for ; Fri, 3 Feb 2012 15:04:41 +0100 Original-Received: from ix.urz.uni-heidelberg.de (cyrus-portal.urz.uni-heidelberg.de [129.206.100.176]) by relay.uni-heidelberg.de (8.14.1/8.14.1) with ESMTP id q13E4ecL012324 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 3 Feb 2012 15:04:41 +0100 Original-Received: from extmail.urz.uni-heidelberg.de (extmail.urz.uni-heidelberg.de [129.206.100.140]) by ix.urz.uni-heidelberg.de (8.13.8/8.13.8) with ESMTP id q13E4eBs017303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 3 Feb 2012 15:04:40 +0100 Original-Received: from localhost (dslb-188-104-132-066.pools.arcor-ip.net [188.104.132.66]) (authenticated bits=0) by extmail.urz.uni-heidelberg.de (8.13.4/8.13.1) with ESMTP id q13E4dWj021110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 3 Feb 2012 15:04:39 +0100 Mail-Followup-To: mailing list for ConTeXt users In-Reply-To: X-Operating-System: Linux phlegethon 3.2.2-1-ARCH X-Polite-Request: "Please try to be nice, don't send html mail." User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=129.206.100.212; country=DE; region=01; city=Heidelberg; latitude=49.4167; longitude=8.7000; http://maps.google.com/maps?q=49.4167,8.7000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06Gtq4FgO - 510522cd6a39 - 20120203 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:74291 Archived-At: --===============1406158027== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-02-02 20:22, Michael Green wrote: > On 2012-02-02 15:46 -800, Philipp Gesang wrote: > > On 2012-02-02 15:26, Michael Green wrote:=20 > > > On 2012-02-01 12:48 -800, Philipp Gesang wrote:=20 > > >=20 > > > Thanks for all your help, but I'm afraid it's still not working for m= e.=20 > > >=20 > > > I did two tests. (1) Using this change alone and (2) using this chang= e together with the one you recommended to strc-lst.mkvi=20 > > > http://archive.contextgarden.net/message/20120201.194023.3e8d62a3.en.= html=20 > >=20 > > I believe the second one should already have fixed it. Have you=20 > > run =E2=80=9Ccontext --make=E2=80=9D after you modified both files?=20 >=20 > Aha! That's what I didn't do. Thank you very much! >=20 > So, of course, there's another problem. >=20 > If I add "\placepublications[criterium=3Dall]", I get errors that appear = to be related to what we changed. Note that if I press return twice, the do= cument is produced as expected. Wait a sec -- this should have been fixed by the modification to strc-lst.lua. Can it be that in the meantime you updated your Context and this fix got overwritten? If so, please reapply it, remake the format and report back. Anyway it would appear that these issues will be fixed in the next beta. Best regards Philipp >=20 > Thanks again for the help. >=20 > mjg >=20 > ---- file ---------------------------- >=20 > \setupbibtex[database=3Dtest] > \setuppublications[alternative=3Dapa] >=20 > \starttext > Here is a cite command: \cite[hh2010a] > \placepublications[criterium=3Dall] >=20 > \stoptext > \endinput > -------------------------------------- >=20 > ---- test.bib --------------------- >=20 > @ARTICLE{hh2010a, > author =3D {Hans Hagen}, > title =3D {The Font Name Mess}, > journal =3D {MAPS}, > year =3D {2010}, > volume =3D {40}, > pages =3D {2-8}, > keywords =3D {context}, > } > -------------------------------------- >=20 > ---- log --------------------------- > ConTeXt ver: 2012.01.25 14:16 MKIV fmt: 2012.2.2 int: english/english >=20 > system > cont-new.mkiv loaded > (/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/b= ase/cont-new.mkiv > system > beware: some patches loaded from cont-new.mkiv > ) > system > 2012bib.top loaded > (2012bib.top) > fonts > latin modern fonts are not preloaded > languages > language en is active > publications > wrote a new auxiliary file \jobname.aux > This is BibTeX, Version 0.99d (TeX Live 2011) > The top-level auxiliary file: 2012bib.aux > The style file: cont-no.bst > Database file #1: test.bib > publications > loading formatting style from bibl-apa > (/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/b= ib/bibl-apa.tex){/Users/michaelgreen/Applications/context/tex/texmf-context= /fonts/map/pdftex/context/mkiv-base.map} > fonts > preloading latin modern fonts (second stage) > fonts > typescripts > unknown: library 'loc' > {/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips/lm/lm= -math.map}{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvi= ps/lm/lm-rm.map} > fonts > fallback modern rm 12pt is loaded > publications > loading database from 2012bib.bbl > (2012bib.bbl) > publications > placing all entries, use 'text' to be more selective > ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:52= 9: attempt to index local 'l' (a nil value) > stack traceback: > ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: in function= 'location' > ...text/tex/texmf-context/tex/context/base/strc-lst.lua:692: in function= 'listlocation' >
:1: in main chunk. >=20 > system > tex > error on line 4 in file 2012bib.tex: LuaTeX error= ... >=20 > 1 \setupbibtex[database=3Dtest] > 2 \setuppublications[alternative=3Dapa] > 3 =20 > 4 >> \starttext > 5 Here is a cite command: \cite[hh2010a] > 6 \placepublications[criterium=3Dall] > 7 =20 > 8 \stoptext > 9 \endinput > 10 =20 >=20 >=20 > \ctxcommand ...\directlua \zerocount {commands.#1} > =20 > ...cation {\structurelistlocation=20 > }\fi \doifstructurelist= has... > \strc_lists_apply_renderingsetup ...enderingsetup=20 > \edef \currentlistalter= nat... > l.4 } > =20 > \typesetpubslist ...hacks.flush("\@@pbsorttype ")} > \stoppacked \endgroup= =20 > \dodoplacepublications ...sttrue \typesetpubslist=20 > \inpublistfalse \global= \a... > ... > l.6 \placepublications[criterium=3Dall] > =20 > ?=20 > ! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:52= 9: attempt to index local 'l' (a nil value) > stack traceback: > ...text/tex/texmf-context/tex/context/base/strc-lst.lua:529: in function= 'location' > ...text/tex/texmf-context/tex/context/base/strc-lst.lua:692: in function= 'listlocation' >
:1: in main chunk. >=20 > system > tex > error on line 4 in file 2012bib.tex: LuaTeX error= ... >=20 > 1 \setupbibtex[database=3Dtest] > 2 \setuppublications[alternative=3Dapa] > 3 =20 > 4 >> \starttext > 5 Here is a cite command: \cite[hh2010a] > 6 \placepublications[criterium=3Dall] > 7 =20 > 8 \stoptext > 9 \endinput > 10 =20 >=20 >=20 > \ctxcommand ...\directlua \zerocount {commands.#1} > =20 > ...cation {\structurelistlocation=20 > }\fi \doifstructurelist= has... > \strc_lists_apply_renderingsetup ...enderingsetup=20 > =20 > l.4 } > =20 > \typesetpubslist ...hacks.flush("\@@pbsorttype ")} > \stoppacked \endgroup= =20 > \dodoplacepublications ...sttrue \typesetpubslist=20 > \inpublistfalse \global= \a... > ... > l.6 \placepublications[criterium=3Dall] > =20 > ?=20 > backend > xmp > using file '/Users/michaelgreen/Applications/cont= ext/tex/texmf-context/tex/context/base/lpdf-pdx.xml' > pages > flushing realpage 1, userpage 1, subpage 1 > ) > mkiv lua stats > used config file - selfautoparent:texmf/web2c/= texmfcnf.lua > mkiv lua stats > used cache path - /Users/michaelgreen/Applica= tions/context/tex/texmf-cache/luatex-cache/context/2448223e6631addb83df348d= 74153606 > mkiv lua stats > resource resolver - loadtime 0.010 seconds, 0 s= cans with scantime 0.000 seconds, 0 shared scans, 16 found files, scanned p= aths:=20 > mkiv lua stats > stored bytecode data - 301 modules, 65 tables, 366= chunks > mkiv lua stats > cleaned up reserved nodes - 39 nodes, 9 lists of 431 > mkiv lua stats > node memory usage - 2 glue, 2 penalty, 9 attrib= ute, 28 glue_spec, 3 attribute_list > mkiv lua stats > node list callback tasks - 6 unique task lists, 5 inst= ances (re)created, 189 calls > mkiv lua stats > used backend - pdf (backend for directly g= enerating pdf output) > mkiv lua stats > loaded patterns - en::2 > mkiv lua stats > jobdata time - 0.000 seconds saving, 0.000= seconds loading > mkiv lua stats > callbacks - 271 direct, 976 indirect, 1= 247 total > mkiv lua stats > lxml preparation time - 0.000 seconds, 0 nodes, 11 = lpath calls, 0 cached calls > mkiv lua stats > interactive elements - 0 references, 1 destinations > mkiv lua stats > result saved in file - 2012bib.pdf > mkiv lua stats > loaded fonts - 3 files: lmmath-regular.otf= lmroman10-italic.otf lmroman10-regular.otf > mkiv lua stats > fonts load time - 0.220 seconds=20 > mkiv lua stats > luatex banner - this is luatex, version bet= a-0.70.1-2011051908 (rev 4277) > mkiv lua stats > control sequences - 32211 of 65536 + 100000 > mkiv lua stats > current memory usage - 41 MB (ctx: 42 MB) > mkiv lua stats > runtime - 4.544 seconds, 1 processed = pages, 1 shipped pages, 0.220 pages/second >=20 > mtx-context | fatal error: return code: 1localhost:2012 bibliography = michaelgreen$=20 >=20 > -------------------------------------- >=20 > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to= the Wiki! >=20 > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ --=20 () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments --xHFwDpU9dbj6ez1V Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8r6YoACgkQ02lYlJYWs9LHqwCeM1YXZq+RHs3ZYGRNCqUF8AjS 4k4Anj2i+cuzfFE7wlqYMC2KXz6FduB2 =eEIF -----END PGP SIGNATURE----- --xHFwDpU9dbj6ez1V-- --===============1406158027== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1406158027==--