[NTG-context] Bibliography bug

Pontus Lurcock pont at talvi.net
Sun Feb 27 23:48:50 CET 2011


After some further staring at the code and bibmod-doc, I've come up with 
the following patch:

--- bibl-apa.tex.orig	2011-02-28 11:32:05.996248627 +1300
+++ bibl-apa.tex	2011-02-28 11:32:47.576251922 +1300
@@ -133,13 +133,13 @@
 
 \def\insertorg#1#2#3%
    {\insertorganization
        {\insertcity
             {#1}
-            {\insertcountry{, }{}{#2}: }%
-            {\insertcountry{}{: }{#2}}}%
-       {}%
+            {\insertcountry{, }{}{}: }%
+            {\insertcountry{}{: }{}}}%
+       {#2}%
        {\insertcity
             {#1}
             {\insertcountry{, }{}{#2}}%
             {\insertcountry{}{#2}{#3}}}%
     }

This fixes my example, and makes (to me) better sense according to the
semantics of the \insert... commands: the <after> argument to
\insertorg gets passed down to the <after> of \insertcity rather than
spliced into the <before>. It's also closer to the definition of
\insertpublisher immediately preceding it in the file.

I hope that this can be integrated into the next beta, if it doesn't
turn out to be a horrendous mistake...

Regards,

Pont

On Sun 27 Feb 2011, Pontus Lurcock wrote:

> Greetings everyone,
> 
> Since this is my first post here, I would like to start by saying
> thank you to all the ConTeXt developers and documenters for a great
> system. I'm using ConTeXt to typeset my doctoral dissertation, with
> (so far) reasonable success. But I've run into what I think is a minor
> bug in the default bibliography style. Minimal example:
> 
> ---8<---
> 
> \startpublication[k=test,t=inproceedings,a=Smith,y=2000]
> \author[]{John}[J.]{}{Smith}
> \pubyear{2000}
> \arttitle{A fascinating exposition}
> \editor[]{Adam}[A.]{}{Jones}
> \title{Proceedings of Something}
> \city{London}
> \pages{123--132}
> \organization{Institute of Whatever}
> \stoppublication
> 
> \starttext
> \placepublications[criterium=all]
> \stoptext
> 
> ---8<---
> 
> Using Linux minimals, context Mark IV, v. 2011.02.25 22:03, this gives
> me:
> 
>   Smith, J. (2000). A fascinating exposition. In Jones, A., editor,
>   Proceedings of Something, pages 123–132. London.: Institute of
>   Whatever
> 
> I think that "London.: Institute of Whatever" should be "London:
> Institute of Whatever." with full stop after organization rather than
> city.
> 
> I assume the fix is simple, but I swiftly got lost when I tried
> jumping into the bibliography code, so I hope that someone else can
> help here.
> 
> Thanks,
> 
> Pont


More information about the ntg-context mailing list