From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74277 Path: news.gmane.org!not-for-mail From: Michael Green Newsgroups: gmane.comp.tex.context Subject: Re: strc-lst.lua [was: Bibliography problem] Date: Thu, 2 Feb 2012 15:26:53 -0800 Message-ID: <15D6172B-638A-42FA-BB6B-452802C2AB2A@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328225239 14736 80.91.229.3 (2 Feb 2012 23:27:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2012 23:27:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 03 00:27:16 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 1Rt63g-0004UJ-GB for gctc-ntg-context-518@m.gmane.org; Fri, 03 Feb 2012 00:27:16 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 99810CB2A5; Fri, 3 Feb 2012 00:27:15 +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 rXHX89Dgn5My; Fri, 3 Feb 2012 00:27:12 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8CE0ECB285; Fri, 3 Feb 2012 00:27:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 06A3DCB285 for ; Fri, 3 Feb 2012 00:27:11 +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 ZQz6TIuw0bmv for ; Fri, 3 Feb 2012 00:26:59 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id C8F41CB275 for ; Fri, 3 Feb 2012 00:26:58 +0100 (CET) Original-Received: from mail-pw0-f41.google.com (mail-pw0-f41.google.com [209.85.160.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q12NQvrZ004730 for ; Fri, 3 Feb 2012 00:26:57 +0100 Original-Received: by pbaa12 with SMTP id a12so3025182pba.14 for ; Thu, 02 Feb 2012 15:26:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=q3cjAisN8AhYTwWINqDN3C3qHXpf5DxCeLRe0d5vEY8=; b=JTweMngoNYuq9yQyh2G+dIywcYQ8/O5fTR7S5eQfBv9AbCTmk12N1uPayRdcCEbo8q LGfo8Oxw8vBQDodkvyVutgWd010N4BmUMutTxp6/WtPk8X4iqGG312sVE2ya+Dw6JABo mfa7vnpbc1Px0uX76CEesgAdpF+qajI+F/A6k= Original-Received: by 10.68.73.104 with SMTP id k8mr11621931pbv.104.1328225216327; Thu, 02 Feb 2012 15:26:56 -0800 (PST) Original-Received: from [172.18.0.176] (74-212-198-162.static-ip.telepacific.net. [74.212.198.162]) by mx.google.com with ESMTPS id j4sm8789823pbg.12.2012.02.02.15.26.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Feb 2012 15:26:55 -0800 (PST) X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.160.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0rGtbqVfP - bdf10fbcec22 - 20120203 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:74277 Archived-At: On 2012-02-01 12:48 -800, Philipp Gesang wrote: > On 2012-01-27 12:23, Michael Green wrote: = > > I'm having a problem with bibliographies. = > = > I believe the bug is in strc-lst.lua. = > = > =B7=B7=B7=B7 line 526ff. =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7 = > = > function lists.location(n) = > local l =3D lists.result[n] = > - return l.references.internal or n = > + return l and l.references.internal or n = > end = > = > =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7= =B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7=B7 = > = > Works here. = > = > Philipp = > = Thanks for all your help, but I'm afraid it's still not working for me. I did two tests. (1) Using this change alone and (2) using this change toge= ther with the one you recommended to strc-lst.mkvi http://archive.contextgarden.net/message/20120201.194023.3e8d62a3.en.html Alas, the logs were the same both times. If it works for you perhaps there'= s something amiss on my end. But I don't have the foggiest idea what it mig= ht be. ConTeXt ver: 2012.01.25 14:16 MKIV fmt: 2012.2.1 int: english/english system > cont-new.mkiv loaded (/Users/michaelgreen/Applications/context/tex/texmf-context/tex/context/bas= e/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/bib= /bibl-apa.tex){/Users/michaelgreen/Applications/context/tex/texmf-context/f= onts/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-m= ath.map}{/Users/michaelgreen/Applications/context/tex/texmf/fonts/map/dvips= /lm/lm-rm.map} fonts > fallback modern rm 12pt is loaded check > missing or ungrouped '=3D' after 'pubs' in line 5 (68>:) publications > loading database from 2012bib.bbl (2012bib.bbl) ! Extra \endgroup. system > tex > error on line 5 in file 2012bib.tex: Extra ... 1 \setupbibtex[database=3Dtest] 2 \setuppublications[alternative=3Dapa] 3 = 4 \starttext 5 >> Here is a cite command: \cite[hh2010a] 6 = 7 \stoptext 8 \endinput 9 %\placepublications[criterium=3Dall] 10 = \docite ...else \donumberedcite {#1}\fi \endgroup = = = = l.5 Here is a cite command: \cite[hh2010a] = ? = ---- Example file ---------------------------------------- = = \setupbibtex[database=3Dtest] = \setuppublications[alternative=3Dapa] = = \starttext = Here is a cite command: \cite[hh2010a] = \stoptext = ---- test.bib ---------------------------------------- = @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}, } ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________