* Bibliography bug
@ 2011-02-27 1:28 Pontus Lurcock
2011-02-27 22:48 ` Pontus Lurcock
0 siblings, 1 reply; 3+ messages in thread
From: Pontus Lurcock @ 2011-02-27 1:28 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bibliography bug
2011-02-27 1:28 Bibliography bug Pontus Lurcock
@ 2011-02-27 22:48 ` Pontus Lurcock
2011-02-28 8:00 ` Taco Hoekwater
0 siblings, 1 reply; 3+ messages in thread
From: Pontus Lurcock @ 2011-02-27 22:48 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bibliography bug
2011-02-27 22:48 ` Pontus Lurcock
@ 2011-02-28 8:00 ` Taco Hoekwater
0 siblings, 0 replies; 3+ messages in thread
From: Taco Hoekwater @ 2011-02-28 8:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 02/27/2011 11:48 PM, Pontus Lurcock wrote:
> After some further staring at the code and bibmod-doc, I've come up with
> the following patch:
That patch looks fine. Hans, can you include it?
Best wishes,
Taco
> --- 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...
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-28 8:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-27 1:28 Bibliography bug Pontus Lurcock
2011-02-27 22:48 ` Pontus Lurcock
2011-02-28 8:00 ` Taco Hoekwater
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).