Re: [NTG-context] strc-lst.lua [was: Bibliography problem]
![](https://secure.gravatar.com/avatar/e3b872c29e07171f8cccdbd6462573f9.jpg?s=120&d=mm&r=g)
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.
···· line 526ff. ················································
function lists.location(n) local l = lists.result[n] - return l.references.internal or n + return l and l.references.internal or n end
·································································
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 together 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 might 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/base/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/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/dvips/lm/lm-rm.map} fonts > fallback modern rm 12pt is loaded check > missing or ungrouped '=' 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=test] 2 \setuppublications[alternative=apa] 3 4 \starttext 5 >> Here is a cite command: \cite[hh2010a] 6 7 \stoptext 8 \endinput 9 %\placepublications[criterium=all] 10 \docite ...else \donumberedcite {#1}\fi \endgroup <to be read again> l.5 Here is a cite command: \cite[hh2010a] ? ---- Example file ---------------------------------------- \setupbibtex[database=test] \setuppublications[alternative=apa] \starttext Here is a cite command: \cite[hh2010a] \stoptext ---- test.bib ---------------------------------------- @ARTICLE{hh2010a, author = {Hans Hagen}, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, }
![](https://secure.gravatar.com/avatar/5ef3be2c0e949ae4c891de058ebf4d76.jpg?s=120&d=mm&r=g)
On 2012-02-02 15:26, Michael Green wrote:
On 2012-02-01 12:48 -800, Philipp Gesang wrote:
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 together with the one you recommended to strc-lst.mkvi http://archive.contextgarden.net/message/20120201.194023.3e8d62a3.en.html
I believe the second one should already have fixed it. Have you run “context --make” after you modified both files? If yes, did you modify the files in the “../texmf-context/..” directory, or might there be a conflicting (older) version in “../texmf-local/..” that gets built into the format instead? (Weird things are known to happen in tex directories.)
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 might be.
This line:
check > missing or ungrouped '=' after 'pubs' in line 5 (68>:) shouldn’t be there anymore.
Regards Philipp
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/base/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/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/dvips/lm/lm-rm.map} fonts > fallback modern rm 12pt is loaded check > missing or ungrouped '=' 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=test] 2 \setuppublications[alternative=apa] 3 4 \starttext 5 >> Here is a cite command: \cite[hh2010a] 6 7 \stoptext 8 \endinput 9 %\placepublications[criterium=all] 10
\docite ...else \donumberedcite {#1}\fi \endgroup
<to be read again>
l.5 Here is a cite command: \cite[hh2010a]
?
---- Example file ----------------------------------------
\setupbibtex[database=test] \setuppublications[alternative=apa]
\starttext Here is a cite command: \cite[hh2010a] \stoptext
---- test.bib ---------------------------------------- @ARTICLE{hh2010a, author = {Hans Hagen}, title = {The Font Name Mess}, journal = {MAPS}, year = {2010}, volume = {40}, pages = {2-8}, keywords = {context}, } ___________________________________________________________________________________ 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 ___________________________________________________________________________________
-- () ascii ribbon campaign - against html e-mail /\ www.asciiribbon.org - against proprietary attachments
participants (2)
-
Michael Green
-
Philipp Gesang