* Re: Two bibliography problems
[not found] <mailman.1.1218276005.32655.ntg-context@ntg.nl>
@ 2008-08-09 22:03 ` Michael Green
2008-08-10 9:08 ` Taco Hoekwater
0 siblings, 1 reply; 5+ messages in thread
From: Michael Green @ 2008-08-09 22:03 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 2148 bytes --]
Taco Hoekwater wrote:
> Michael Green wrote:
>> [snip]
>> (1) I get two periods after a book title when using
>> \setuppublications[alternative=apa].
>>
>> [snip]
>>
>> This happens with all books. On looking at the source, I'm afraid I
>> can't track down where it's coming from or how to fix it.
>>
>> (2) Is it possible to use smart quotes in citations? For instance,
>> for
>> this book, authored by O'Donovan, I can enter the appropriately curly
>> character between O and D in my bibtex file. But it comes out
>> straight
>> in the final document.
>
> Can you tell what version of context you are using and post a short
> but complete example of your input? Neither problem sounds familiar,
> so I have to look at your actual code to see that is going on.
>
> Best wishes,
> Taco
>
I can't reproduce the second problem, with the straight/smart quotes.
Let's ignore it.
The first problem, with the two periods after a book title, has been
with me since at least last year. I can reproduce it with the following:
[A] ConTeXt version.
ConTeXt ver: 2008.08.05 18:47 MKIV fmt: 2008.8.6 int: english/english
This is based TeXLive 2007, originally installed with the MacTeX
installer and updated with cont-tmf,zip from pragma and the ppc-
darwin binaries from http://minimals.contextgarden.net/pragma/osx-ppc/
texmf-osx-ppc/bin/.
My understanding of TeX installations is not sophisticated. Perhaps I
goofed. But everything seems to work.
[B] File
\usemodule[bib]
\setuppublications[alternative=apa,refcommand=authoryear]
\setuppublicationlist[samplesize={Kav86},totalnumber=1]
\startpublication[k=Kavka:1986qe,t=book,
a={{Kavka}},y=1986,
n=2,s=Kav86]
\author[]{Gregory}[G.]{}{Kavka}
\pubyear{1986}
\title{Hobbesian Moral and Political Theory}
\city{Princeton}
\pubname{Princeton University Press}
\stoppublication
\starttext
Here is a reference to the Kavka book: \cite[Kavka:1986qe]
\placepublications
\stoptext
The output I get is:
Here is a reference to the Kavka book: Kavka (1986)
Kavka, G. (1986). Hobbesian Moral and Political Theory.. Princeton:
Princeton
University Press.
Thanks for your help.
Michael
[-- Attachment #1.2: Type: text/html, Size: 6183 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Two bibliography problems
2008-08-09 22:03 ` Two bibliography problems Michael Green
@ 2008-08-10 9:08 ` Taco Hoekwater
0 siblings, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2008-08-10 9:08 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 665 bytes --]
Michael Green wrote:
>
> The first problem, with the two periods after a book title, has been
> with me since at least last year. I can reproduce it with the following:
>
> [A] ConTeXt version.
>
> ConTeXt ver: 2008.08.05 18:47 MKIV fmt: 2008.8.6 int: english/english
Ah. This is using an experimental version of the bib module. I uploaded
a new version of the module for testing two months ago, after reports
that the original bibl-apa was not quite following the apa guidelines.
There has been a lack of feedback up until now, so be careful,
there may well be more problems.
Meanwhile, you could try the attached bibl-apa.tex instead.
Best wishes,
Taco
[-- Attachment #2: bibl-apa.tex --]
[-- Type: text/x-tex, Size: 10086 bytes --]
%D \module
%D [ file=bibl-apa,
%D version=2008.06.09,
%D title=APA bibliography style,
%D subtitle=Publications,
%D author={Taco Hoekwater},
%D date=\currentdate,
%D copyright={Public Domain}]
%C
%C Donated to the public domain. Use at your own risk
\unprotect
\setupcite
[author,year]
[\c!andtext={ and },
\c!otherstext={ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!no,
\c!inbetween={ },
\c!left={(},
\c!right={)}]
\setupcite
[authoryear]
[\c!andtext={ and },
\c!otherstext={ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!yes,
\c!inbetween={ },
\c!left={(},
\c!right={)}]
\setupcite
[authoryears]
[\c!andtext={ and },
\c!otherstext={ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!yes,
\c!inbetween={, },
\c!left={(},
\c!right={)}]
\setupcite
[key,serial,authornum,page,short,type,doi,url]
[\c!andtext={ and },
\c!otherstext={ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!no,
\c!inbetween={ },
\c!left={[},
\c!right={]}]
\setupcite
[num]
[\c!andtext={ and },
\c!otherstext={ et al.},
\c!pubsep={, },
\c!lastpubsep={ and },
\c!compress=\v!yes,
\c!inbetween={--},
\c!left={[},
\c!right={]}]
\setuppublications[%
\c!sorttype=,
\c!criterium=,
\c!refcommand=authoryears,
\c!numbering=\v!no,
\c!autohang=\v!no]
\setuppublicationlist
[\c!width=24pt,
\c!artauthor=\invertedshortauthor,
\c!editor=\invertedshortauthor,
\c!author=\invertedshortauthor,
\c!namesep={, },
\c!lastnamesep={ and },
\c!finalnamesep={ and },
\c!firstnamesep={, },
\c!juniorsep={ },
\c!vonsep={ },
\c!surnamesep={, },
\c!authoretallimit=5,
\c!editoretallimit=5,
\c!artauthoretallimit=5,
\c!authoretaldisplay=5,
\c!editoretaldisplay=5,
\c!artauthoretaldisplay=5,
\c!authoretaltext={ et al.},
\c!editoretaltext={ et al.},
\c!artauthoretaltext={ et al.},
]
\def\maybeyear#1{#1}
\def\etalchar#1{#1}
%D \macros{insertchapter,insertpublisher}
%D Some shortcuts.
% ((#1(type\ |)chapter#2)|#3)
\def\insertchap#1#2#3%
{\insertchapter
{#1\insertbibtype{}{\ }{chapter\ }}{#2}%
{#3}}
% #1city, country: pubname#2
% #1country: pubname#2
% #1pubname#2
% #1city, country#2
% #3
\def\insertpublisher#1#2#3%
{\insertpubname
{\insertcity
{#1}
{\insertcountry{, }{}{}: }%
{#1\insertcountry{}{: }{}}}%
{#2}%
{\insertcity
{#1}
{\insertcountry{, }{}{#2}}%
{\insertcountry{#1}{#2}{#3}}}%
}
\def\insertorg#1#2#3%
{\insertorganization
{\insertcity
{#1}
{\insertcountry{, }{}{#2}: }%
{\insertcountry{}{: }{#2}}}%
{}%
{\insertcity
{#1}
{\insertcountry{, }{}{#2}}%
{\insertcountry{}{#2}{#3}}}%
}
\setuppublicationlayout[article]{%
\insertartauthors{}{ }{\insertthekey{}{ }{}}%
\insertpubyear{(}{). }{\unskip.}%
\insertarttitle{\bgroup }{\egroup. }{}%
\insertjournal{\bgroup \it}{\egroup}
{\insertcrossref{In }{}{}}%
\insertvolume
{\bgroup \it, }
{\insertissue{\egroup\/(}{)}{}\insertpages{, }{.}{.}}
{\insertpages{, pp. }{.}{.}}%
\insertnote{ }{.}{}%
\insertcomment{}{.}{}%
}
\newif\ifeditedbook
\setuppublicationlayout[book]{%
\insertauthors{}{ }{\inserteditors{}{, editor%
\ifnum\getvalue{editor@num}> 1 s\fi
\ \global\editedbooktrue
}{\insertthekey{}{. }{}}}%
\insertpubyear{(}{). }{\unskip.}%
\inserttitle
{\bgroup\it }%
{\/\egroup
\ifeditedbook
\global\editedbookfalse
\insertvolume
{ Number~}%
{\insertseries
{ in~\bgroup}%
{\egroup. }%
{\insertcrossref{ in~}{}{. }}}%
{\insertseries{ }{.}{.}}%
\else
\insertcrossref
{\insertchap{, }{}{}%
\insertpages{, pages }{. }{. }%
\insertvolume{Volume~}{ of~}{}%
}%
{}%
{\insertvolume
{, volume~}%
{\insertseries
{ of~\bgroup\it}%
{\egroup}
{}}
{}%
\insertchap{, }{}{}%
\insertpages{, pages }{.}{.}%
}%
\fi}%
{}%
\insertedition{ }{ edition}{}%
\insertpublisher{ }{.}{.}%
\insertpages{ }{p. }{ }%
\insertnote{}{.}{}%
}
\setuppublicationlayout[inbook]{%
\insertauthors{}{ }{\inserteditors{}{, editor%
\ifnum\getvalue{editor@num}> 1 s\fi
\ \global\editedbooktrue
}{\insertthekey{}{. }{}}}%
\insertpubyear{(}{). }{\unskip.}%
\inserttitle
{\bgroup\it }%
{\/\egroup
\ifeditedbook
\global\editedbookfalse
\insertvolume
{ number~}%
{\insertseries
{ in~\bgroup}%
{\egroup. }%
{\insertcrossref{ in~}{}{.}}}%
{\insertseries{ }{.}{}}%
\else
\insertcrossref
{\insertchap{, }{}{}%
\insertpages{, pages }{. }{. }%
\insertvolume{Volume~}{ of~}{}%
}%
{}%
{\insertvolume
{, volume~}%
{\insertseries
{ of~\bgroup\it}%
{\egroup}
{}}
{}%
\insertchap{, }{}{}%
\insertpages{, pages }{.}{}%
}%
\fi}%
{ }%
\insertedition{ }{ edition.}{}%
\insertpublisher{ }{.}{.}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[booklet]{%
\insertauthors{}{ }{\insertthekey{}{. }{}}%
\insertpubyear{(}{). }{}%
\inserttitle{\bgroup }{\egroup \insertseries{ (}{)}{}. }{}%
\insertedition{ }{ edition.}{}%
\insertpublisher{ }{.}{.}%
\insertpages{}{p. }{}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[manual]{%
\insertauthors{}{ }{\insertthekey{}{. }{}}%
\insertpubyear{(}{). }{}%
\inserttitle{\bgroup \it }{\/\egroup \insertseries{ (}{)}{}. }{}%
\insertedition{ }{ edition.}{}%
\insertorg{ }{.}{.}%
\insertpages{}{p. }{}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[incollection]{%
\insertartauthors{}{ }{\insertthekey{}{. }{}}%
\insertpubyear{(}{). }{}%
\insertarttitle{\bgroup }{\egroup. }{}%
\inserttitle
{In \inserteditors{}%
{, editor\ifnum\getvalue{editor@num}> 1 s\fi, }%
{}%
\bgroup\it}%
{\egroup
\insertseries
{\insertvolume{, number }{~in }{ }}%
{}%
{}%
\insertchap{\unskip, }{ }{ }%
\insertpages{\unskip, pages~}{. }{\unskip. }%
\insertedition{ }{ edition}{}%
\insertpublisher{. }{.}{.}%
}%
{In \insertcrossref{}{}{}%
\insertchap{\unskip, }{ }{ }%
\insertpages{\unskip, pages~}{. }{\unskip. }%
}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[inproceedings]{%
\insertauthors{}{ }{}%
\insertpubyear{(}{). }{}%
\insertarttitle{\bgroup }{\egroup. }{}%%
\inserttitle
{In \inserteditors{}%
{, editor\ifnum\getvalue{editor@num}> 1 s\fi, }%
{}%
\bgroup\it}%
{\egroup
\insertseries
{\insertvolume{, number }{~in }{ }}%
{}%
{}%
\insertchap{\unskip, }{ }{ }%
\insertpages{, pages~}{}{}%
\insertorg{. }{.}{.}%
}%
{In \insertcrossref{}{}{}%
\insertchap{\unskip, }{ }{ }%
\insertpages{\unskip, pages~}{. }{\unskip. }%
}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[proceedings]{%
\inserteditors{}{, editor%
\ifnum\getvalue{editor@num}> 1 s\fi
\ \global\editedbooktrue
}{\insertthekey{}{ }{}}%
\insertpubyear{(}{). }{}%
\inserttitle
{\bgroup\it}%
{\egroup
\insertseries
{\insertvolume{, number }{~in }{ }}%
{}%
{}%
\insertchap{\unskip, }{ }{ }%
\insertpages{, pages~}{}{}%
\insertorg{. }{.}{.}%
}%
{}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[mastersthesis]{%
\insertauthors{}{ }{}%
\insertpubyear{(}{). }{}%
\inserttitle{\bgroup }{\egroup \insertseries{ (}{)}{}. }{}%
\insertbibtype{}{, }{Master's thesis, }%
\insertpublisher{ }{.}{.}%
\insertpages{ }{p. }{}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[phdthesis]{%
\insertauthors{}{ }{}%
\insertpubyear{(}{). }{}%
\inserttitle{\bgroup\it }{\egroup \insertseries{ (}{)}{}. }{}%
\insertbibtype{}{, }{PhD thesis,}%
\insertpublisher{ }{.}{.}%
\insertpages{ }{ p. }{}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[misc]{%
\insertauthors{}{ }{\insertthekey{}{. }{}}%
\insertpubyear{(}{). }{}%
\inserttitle{\bgroup }{\egroup \insertseries{ (}{)}. }{}%
\insertpublisher{ }{.}{.}%
\insertpages{ }{p. }{}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[techreport]{%
\insertauthors{}{ }{}%
\insertpubyear{(}{). }{}%
\inserttitle{\bgroup }{\egroup \insertseries{ (}{)}{}. }{}%
\insertbibtype{}{\insertvolume{ }{, }{, }}{Technical Report}%
\insertpublisher{ }{.}{.}%
\insertpages{ }{p. }{}%
\insertnote{ }{.}{}%
}
\setuppublicationlayout[unpublished]{%
\insertauthors{}{ }{}%
\insertpubyear{(}{). }{}%
\inserttitle{\bgroup }{\egroup \insertseries{ (}{)}{}. }{}%
\insertpublisher{ }{.}{.}%
\insertpages{ }{p. }{}%
\insertbibtype{(}{)}{}%
\insertnote{ }{.}{}%
}
\protect
[-- Attachment #3: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Two bibliography problems
@ 2008-08-12 1:17 Michael Green
0 siblings, 0 replies; 5+ messages in thread
From: Michael Green @ 2008-08-12 1:17 UTC (permalink / raw)
To: ntg-context
Taco Hoekwater wrote
> Michael Green wrote:
>
>>
>> The first problem, with the two periods after a book title, has been
>> with me since at least last year. I can reproduce it with the
>> following:
>>
>> [A] ConTeXt version.
>>
>> ConTeXt ver: 2008.08.05 18:47 MKIV fmt: 2008.8.6 int: english/
>> english
>>
>
> Ah. This is using an experimental version of the bib module. I
> uploaded
> a new version of the module for testing two months ago, after reports
> that the original bibl-apa was not quite following the apa guidelines.
> There has been a lack of feedback up until now, so be careful,
> there may well be more problems.
>
> Meanwhile, you could try the attached bibl-apa.tex instead.
That solves my problem. Thanks!
mjg
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Two bibliography problems
2008-08-08 23:28 Michael Green
@ 2008-08-09 7:53 ` Taco Hoekwater
0 siblings, 0 replies; 5+ messages in thread
From: Taco Hoekwater @ 2008-08-09 7:53 UTC (permalink / raw)
To: mailing list for ConTeXt users
Michael Green wrote:
> This sort of bibliography entry gives me two kinds of trouble.
>
> @book{ODonovan:1999uv,
> Address = {Grand Rapids, Michigan},
> Author = {O'Donovan, Joan Lockwood and O'Donovan, Oliver},
> Publisher = {William B. Eerdmans},
> Title = {From Irenaeus to Grotius: a sourcebook in Christian
> political thought, 100-1625},
> Year = {1999}}
>
> (1) I get two periods after a book title when using
> \setuppublications[alternative=apa]. For this particular entry, here is
> what I get.
>
> O'Donovan, J. L. and O'Donovan, O. (1999). From Irenaeus to Grotius: a
> sourcebook in Christian political thought, 100-1625.. Grand Rapids,
> Michigan: William B. Eerdmans.
>
> This happens with all books. On looking at the source, I'm afraid I
> can't track down where it's coming from or how to fix it.
>
> (2) Is it possible to use smart quotes in citations? For instance, for
> this book, authored by O'Donovan, I can enter the appropriately curly
> character between O and D in my bibtex file. But it comes out straight
> in the final document.
Can you tell what version of context you are using and post a short
but complete example of your input? Neither problem sounds familiar,
so I have to look at your actual code to see that is going on.
Best wishes,
Taco
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Two bibliography problems
@ 2008-08-08 23:28 Michael Green
2008-08-09 7:53 ` Taco Hoekwater
0 siblings, 1 reply; 5+ messages in thread
From: Michael Green @ 2008-08-08 23:28 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1032 bytes --]
This sort of bibliography entry gives me two kinds of trouble.
@book{ODonovan:1999uv,
Address = {Grand Rapids, Michigan},
Author = {O'Donovan, Joan Lockwood and O'Donovan, Oliver},
Publisher = {William B. Eerdmans},
Title = {From Irenaeus to Grotius: a sourcebook in Christian
political thought, 100-1625},
Year = {1999}}
(1) I get two periods after a book title when using \setuppublications
[alternative=apa]. For this particular entry, here is what I get.
O'Donovan, J. L. and O'Donovan, O. (1999). From Irenaeus to Grotius:
a sourcebook in Christian political thought, 100-1625.. Grand Rapids,
Michigan: William B. Eerdmans.
This happens with all books. On looking at the source, I'm afraid I
can't track down where it's coming from or how to fix it.
(2) Is it possible to use smart quotes in citations? For instance,
for this book, authored by O'Donovan, I can enter the appropriately
curly character between O and D in my bibtex file. But it comes out
straight in the final document.
Thanks!
Michael
[-- Attachment #1.2: Type: text/html, Size: 1972 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-08-12 1:17 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1.1218276005.32655.ntg-context@ntg.nl>
2008-08-09 22:03 ` Two bibliography problems Michael Green
2008-08-10 9:08 ` Taco Hoekwater
2008-08-12 1:17 Michael Green
-- strict thread matches above, loose matches on Subject: below --
2008-08-08 23:28 Michael Green
2008-08-09 7:53 ` 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).