ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Pontus Lurcock <pont@talvi.net>
To: ntg-context@ntg.nl
Subject: Re: Bibliography bug
Date: Mon, 28 Feb 2011 11:48:50 +1300	[thread overview]
Message-ID: <20110227224850.GN29732@rae.vm.bytemark.co.uk> (raw)
In-Reply-To: <20110227012802.GK29732@rae.vm.bytemark.co.uk>

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
___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2011-02-27 22:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-27  1:28 Pontus Lurcock
2011-02-27 22:48 ` Pontus Lurcock [this message]
2011-02-28  8:00   ` Taco Hoekwater

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110227224850.GN29732@rae.vm.bytemark.co.uk \
    --to=pont@talvi.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).