From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/113836 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joey McCollum via ntg-context Newsgroups: gmane.comp.tex.context Subject: Re: Displaying names in Chicago-Turabian "note" style Date: Tue, 21 Dec 2021 13:18:40 -0500 Message-ID: References: <864272370.146201.1640109077959.ref@mail.yahoo.com> <864272370.146201.1640109077959@mail.yahoo.com> Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============9164388428131015250==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38001"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Joey McCollum To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 21 19:21:43 2021 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzjlf-0009iV-A8 for gctc-ntg-context-518@m.gmane-mx.org; Tue, 21 Dec 2021 19:21:43 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 85FC4287757; Tue, 21 Dec 2021 19:21:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oHKwJvHncJYK; Tue, 21 Dec 2021 19:21:15 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 98DE1287682; Tue, 21 Dec 2021 19:21:15 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9ED23287682 for ; Tue, 21 Dec 2021 19:21:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N033aoLFCKsR for ; Tue, 21 Dec 2021 19:21:10 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.51; helo=mail-io1-f51.google.com; envelope-from=jmccollum20140511@gmail.com; receiver= Original-Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 6E57728733C for ; Tue, 21 Dec 2021 19:21:10 +0100 (CET) Original-Received: by mail-io1-f51.google.com with SMTP id z26so18769921iod.10 for ; Tue, 21 Dec 2021 10:21:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ne2xL+N+5vDZF7bjyQ2CpzOafa5HBj2ChVxpRu3ieg8=; b=E+Rm4a2PAoqYR+1RHS2PrxYqrYAkLwFHxidiVe2hFtk4iFQRGnn4f82mQXrwSCXSfX 9mLAIp/YlWesM4uttJCmXWpp7LWW+HSBr03on0v+FO0Fzbv8jJ7tdxz+0pMUu2b0fRy3 f015uonWHfkHLtc1vL46FWslRHuj0/w4R0G/cmq5uQA1sPec5uitfIuSsY4AAz7iDBhV aaheq8WbyHGr6LIzi/ac0RJWU4Eilqpjksn3WM+Wxapaht5aqicJC7hHXqA4RTJ4XVFk gjMcDqLZljqtsLEs8CwDEGr4XL1fKYdPXWMvMUClRhPWIJ7ZwFaOB+H5bA/1ImqFvo3D fumg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ne2xL+N+5vDZF7bjyQ2CpzOafa5HBj2ChVxpRu3ieg8=; b=CE2JlF35+1u6UTRrlwn7x8MP7hYXUwJNd1rSX6jQ3rq0/vO2I+XL0wNKU+kiH85as6 3J6szp7+pcG55mvNKX3jIk0JgXHlBWXsfJaq19NPUk6rxURLmG9sV2IJj5KeEt4imB07 U3WWmxYu9dd6iuDaqxUH49cJIM01QgkyHo54Z/V95QlzvHtLA3qr2Yz4XyD2vB+eK5ba /fRdStwAmwClzIrYf77kT8esMDTFl8Q/lJM1QtvBEleLif+DUS7SkR8/gAXVfk6r22V4 CAVTh93lJ7ubtBtPS/NEeNFhMjDU0AZAzG6CIZmUhIS1rMxVY1nQd2P34v3qPV7UDpW0 0rew== X-Gm-Message-State: AOAM533a0fvSxbuf3q49MY/DHisChcNDSWZtGkORiHW9aJxW5pRR5Ma0 K+2LanFP+bJIeVDkHyTJWGjVHYDJzsT3YM+LdfvMnJtprlc= X-Google-Smtp-Source: ABdhPJw6u+KsMHMUPtrU21wFp+OWUjm0GwM7uHBPydk5TSgRg4SJgWYZY2ZS3XTWo8XzOHKM6zt/OpdGwav3tagw1R0= X-Received: by 2002:a05:6602:13c9:: with SMTP id o9mr2337795iov.40.1640110868439; Tue, 21 Dec 2021 10:21:08 -0800 (PST) In-Reply-To: <864272370.146201.1640109077959@mail.yahoo.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:113836 Archived-At: --===============9164388428131015250== Content-Type: multipart/alternative; boundary="000000000000b4a6b505d3ac11aa" --000000000000b4a6b505d3ac11aa Content-Type: text/plain; charset="UTF-8" Joel, I've attempted to incorporate most of these features for the SBL citation style (which derives most of the same rules from Chicago) for ConTeXt. You can use my code in https://github.com/jjmccollum/context-sbl as a template for now, if you'd like; we're still waiting for the code to be incorporated into a future ConTeXt update. Regarding the specific features you described: (1) The rules for first name-last name authorconversions and et al. limits for inline citations (i.e., ones in the text/footnotes, but not in the bibliographic list) can be implemented using the general \definebtx[chicagonum:\s!cite] command. In publ-imp-sbl.mkvi, I do this as follows: \definebtx [sbl:\s!cite] [sbl] [\c!alternative=footnote, % by default, SBL uses footnote citation format (defined below) \c!otherstext={\btxspace\btxlabeltext{others}}, % use et al. for truncated author / editor list \c!etallimit=3, % don't use et al. for 3 or fewer authors \c!etaldisplay=1, % but if there are > 3, then only list the first explicitly \c!etaloption=last, \c!authorconversion=\v!normal, % by default, use normal name order for in-text citations ... ] (2) SBL also uses short-form citations for inline citations after the first one. To make these work, it ended up being easiest to create distinct \fastsetups for an "inlineshort" style. Here is how I handled the citation of the author in such instances in publ-imp-sbl.mkvi : \starttexdefinition btx:sbl:inlineshort:author \btxdoif{author} { % If the useidem option is set and this author matches the previously cited author, then just print "idem"; % otherwise, print the author/editor's last name \doifelse{\btxparameter{useidem}} {\v!yes} { \texdefinition{btx:sbl:doifsamefoundnameauthorelse}{\currentbtxtag}{\getvariable{btx:sbl}{previousinlinetag}} { \btxlabeltext{sbl:idem} } { \currentbtxciteauthorbyfield } } { \currentbtxciteauthorbyfield } \btxcomma } \stoptexdefinition (3) I haven't implemented support for ibid. tracking (it's on a wishlist that I sent to Hans and Alan, as it would best be handled by changes to the core publication support module), so I'm afraid I can't help you on that at the moment. There is some placeholder code in publ-imp-sbl.mkvi for handling this when ibid. tracking is eventually implemented, so you might be able to use that as a template. (4) To get the "inverted first author" authorconversion working, I had to create new authorconversions for this. You can find this in the updated publ-imp-author.mkvi file in my GitHub repo: \startsetups \s!btx:\s!list:\s!author:invertedfirst \ifnum\currentbtxauthorindex>\plusone \fastsetup{\s!btx:\s!list:\s!author:normal} \else \fastsetup{\s!btx:\s!list:\s!author:inverted} \fi \stopsetups \startsetups \s!btx:\s!cite:\s!author:invertedfirst \ifnum\currentbtxauthorindex>\plusone \fastsetup{\s!btx:\s!cite:\s!author:normal} \else \fastsetup{\s!btx:\s!cite:\s!author:inverted} \fi \stopsetups Then, in publ-imp-sbl.mkvi, I invoke this setup in the \btxsetup for citations in the bibliographic list as follows: \definebtx [sbl:\s!list:author] [sbl:\s!list] [\c!authorconversion=invertedfirst, \c!separator:names:4={\btxcomma\btxlabeltext{and}\space}] % between only 2 names I hope this helps! Joey On Tue, Dec 21, 2021 at 12:51 PM Joel via ntg-context wrote: > I could not find any existing solution for using Chicago-Turabian "note" > style in ConTeXt, so I have started my own attempt. > > Chicago-Turabian uses footnotes to display the author's details on the > same page, but also uses a bibliography to display an alphabetical list of > the sources again at the end. The footnotes display somewhat differently > each time a source is shown. The first time a source is cited, the footnote > contains a long, detailed reference. Subsequent reappearances of the same > citation are abbreviated somewhat. And "ibid" is used when the source is > cited twice in a row. The bibliography entry contains really detailed > information, similar to what was shown in the first footnote, with minor > differences. > > This code uses three macros: \turabian, used only the first time a source > is reference, \shortturabian, used for subsequent references of the same > source, and `\ibid, for when a source is referenced twice in a row. Each of > these macros simply creates a footnote, showing the author's details, and > also uses \nocite to make sure an entry is added to > \placelistofpublications. Page details are optionally added in #2, and this > information only appears in the footnotes. > > I am having trouble getting the code to display the author's names > correctly. Every attempt ends with strange results, like "FirstLast" with > no space or just "Initial Last". Chicago-Turabian displays the names > differently, depending on the placement: > > (1) First, the \turabian macro should show in ordinary First + Last order > in the footnote, example: "Anna Burns, Robert Smith, and Judith Green", but > if the number of authors exceeds 3, it display "Anna Burns et al." > > (2) Second, the \shorturabian macro should show just the Last names in the > footnote: "Burns, Smith, and Green", also using "Burns et al." if there are > more than 3 names. > > (3) The \ibid macro doesn't show any names. > > (4) Finally, the actual bibliographic entry in \placelistofpublications > uses a strange format, with the first author listed as Last + First order, > all subsequent authors in First + Last order, such as "Burns, Anna, Robert > Smith, and Judith Green.", meanwhile "et al." is never used in the > bibliography, even if there are 100 authors. > > Any help would be greatly appreciated! > --Joel > > Minimal working example follows: > > \startbuffer [bib] > @Book{ball1996, > author = {Ball, Larry}, > title = {Desert lawmen: The high sheriffs \word{of} New Mexico \word{and} > Arizona, 1846-1912}, > publisher = {University \word{of} New Mexico Press}, > year = {1996}, > address = {Albuquerque, NM}, > isbn = {9780826317001} > } > > @Book{minear2009, > author = {Minear, Tish and Limon, Janet}, > title = {Discover Native America: Arizona, Colorado, New Mexico, > \word{and} Utah}, > publisher = {Hippocrene Books}, > year = {2009}, > address = {New York, NY}, > isbn = {9780781803274} > } > > \stopbuffer > > \define[3]\ifisempty{% > \setbox0=\hbox{#1\unskip}% > \ifdim\wd0=0pt > #2% > \else > #3% > \fi > }% > > \usebtxdataset[bib.buffer] > > \startbtxrenderingdefinitions[chicagonum] > > \definebtx[chicagonum] > [default=default, > specification=chicagonum, > otherstext={\btxspace{\it\btxlabeltext{others}}}, > etallimit=10, > etaldisplay=\btxparameter\c!etallimit, > journalconversion=\v!normal, > monthconversion=\v!month, > title=yes, > separator:names:2={\btxcomma}, > separator:names:3={\btxcomma\btxlabeltext{and}\space}, > separator:names:4={\btxspace\btxlabeltext{and}\space}] > > \setupbtxlist[chicagonum] > > \definebtxrendering[chicagonum] > [specification=chicagonum, > sorttype=authoryear, > numbering=no] > > > \startsetups btx:chicagonum:list:book > \btxdoif{author}{ > \btxflush{author} > \btxperiod > } > \btxdoif{title}{ > {\it\Words \btxflush{title}} > \btxperiod > } > \btxdoif{address}{ > \btxflush{address} > \btxcolon > } > \btxdoif{publisher}{ > \btxflush{publisher} > \btxcomma > } > \btxdoif{year}{ > \btxflush{year} > \btxperiod > } > \removeunwantedspaces > \stopsetups > > > \startsetups btx:chicagonum:list:article > \btxdoif{author}{ > \btxflush{author} > \btxperiod > } > \btxdoif{title}{ > \quotation{\Words \btxflush{title}} > \btxperiod > } > \btxdoif{journal}{ > {\it\Words \btxflush{journal}} > } > \btxdoif{volume}{ > \btxflush{volume} > \btxcomma > } > \btxdoif{number}{ > no.~\btxflush{number} > } > \btxdoifelse{month}{ > (\btxflush{month} \btxflush{year}) > \btxcolon > }{ > \btxdoif{year}{ > (\btxflush{year}) > } > \btxcolon > } > \btxdoif{pages}{ > \btxflush{pages} > \btxperiod > } > \removeunwantedspaces > \stopsetups > > \stopbtxrenderingdefinitions > > > \setupbtx[chicagonum][dataset=default, > authorconversion={normal}, > etallimit=] > > \setupbtx[chicagonum:list:author] > [authorconversion={normal}, > etallimit=] > \setupbtx[chicagonum:cite:author] > [authorconversion={normal}, > etallimit=3, > etaldisplay=1] > > \usebtxdefinitions[chicagonum] > > \define[2]\turabian{% > \footnote{% > \ifisempty{\cite[author][#1]}{}{\cite[author][#1]}% > \ifisempty{\cite[title][#1]}{}{,\ {\it\Words \cite[title][#1].}}% > > \ifisempty{\cite[address][#1]\cite[publisher][#1]\cite[year][#1]}{}{\ (}% > \cite[address][#1]: ~% > > \ifisempty{\cite[journal][#1]}{\ifisempty{\cite[publisher][#1]}{}{\cite[publisher][#1]:\ > }}{\cite[journal][#1]:\ }% > \ifisempty{\cite[year][#1]}{}{,\ \cite[year][#1]}% > > \ifisempty{\cite[address][#1]\cite[publisher][#1]\cite[year][#1]}{}{)}% > \ifisempty{#2}{.}{,\ #2.}% > }% > \nocite[#1]% > }% > > > \define[2]\shortturabian{% > \footnote{% > \ifisempty{\cite[author][#1]}{}{\cite[author][#1]}% > \ifisempty{#2}{.}{,\ #2.}% > }% > \nocite[#1]% > }% > > \define[2]\ibid{ > \footnote{% > Ibid\ifisempty{#2}{.}{,\ #2.}% > }% > \nocite[#1]% > } > > \starttext > > \input knuth \turabian{ball1996}{1\endash 23} > > \input knuth \turabian{minear2009}{32\endash 23} > > \ibid{minear2009}{32\endash 23} > \ibid{minear2009}{} > \input knuth \turabian{ball1996}{} > > \input knuth \shortturabian{minear2009}{121\endash 99} > > \startchapter[title=Bibliography] > \placelistofpublications > \stopchapter > > \stoptext > > > > ___________________________________________________________________________________ > 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://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___________________________________________________________________________________ > --000000000000b4a6b505d3ac11aa Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joel,

I've attempted to incorporate= most of these features for the SBL citation style (which derives most of t= he same rules from Chicago) for ConTeXt. You can use my code in=C2=A0https://g= ithub.com/jjmccollum/context-sbl as a template for now, if you'd li= ke; we're still waiting for the code to be incorporated into a future C= onTeXt update. Regarding the specific features you described:
(1) The rules for first name-last name authorconversions and et= al. limits for inline citations (i.e., ones in the text/footnotes, but not= in the bibliographic list) can be implemented using the general \definebtx= [chicagonum:\s!cite] command. In publ-imp-sbl.mkvi, I do this as follows:

\definebtx
=C2=A0 [sbl:\s!cite]
=C2=A0 [sbl]
=C2=A0 [\= c!alternative=3Dfootnote, % by default, SBL uses footnote citation format (= defined below)
=C2=A0 =C2=A0\c!otherstext=3D{\btxspace\btxlabeltext{othe= rs}}, % use et al. for truncated author / editor list
=C2=A0 =C2=A0\c!et= allimit=3D3, % don't use et al. for 3 or fewer authors
=C2=A0 =C2=A0= \c!etaldisplay=3D1, % but if there are > 3, then only list the first exp= licitly
=C2=A0 =C2=A0\c!etaloption=3Dlast,
=C2=A0 =C2=A0\c!authorconv= ersion=3D\v!normal, % by default, use normal name order for in-text citatio= ns
=C2=A0 =C2=A0...
=C2=A0 ]

(2) SBL also uses short-form cita= tions for inline citations after the first one. To make these work, it ende= d up being easiest to create distinct \fastsetups=C2=A0for an "inlines= hort" style. Here is how I handled the citation of the author in such = instances in=C2=A0publ-imp-sbl.mkvi=C2=A0 :

\starttexdef= inition btx:sbl:inlineshort:author
=C2=A0 \btxdoif{author} {
=C2=A0 = =C2=A0 % If the useidem option is set and this author matches the previousl= y cited author, then just print "idem";
=C2=A0 =C2=A0 % otherw= ise, print the author/editor's last name
=C2=A0 =C2=A0 \doifelse{\bt= xparameter{useidem}} {\v!yes} {
=C2=A0 =C2=A0 =C2=A0 \texdefinition{btx:= sbl:doifsamefoundnameauthorelse}{\currentbtxtag}{\getvariable{btx:sbl}{prev= iousinlinetag}} {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \btxlabeltext{sbl:idem}=C2=A0 =C2=A0 =C2=A0 } {
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \currentbtxciteaut= horbyfield
=C2=A0 =C2=A0 =C2=A0 }
=C2=A0 =C2=A0 } {
=C2=A0 =C2=A0 = =C2=A0 \currentbtxciteauthorbyfield
=C2=A0 =C2=A0 }
=C2=A0 =C2=A0 \bt= xcomma
=C2=A0 }
\stoptexdefinition

(3) I haven't implement= ed support for ibid. tracking (it's on a wishlist that I sent to Hans a= nd Alan, as it would best be handled by changes to the core publication sup= port module), so I'm afraid I can't help you on that at the moment.= There is some placeholder code in publ-imp-sbl.mkvi for handling this when= ibid. tracking is eventually implemented, so you might be able to use that= as a template.

(4) To get the "inverted first author" aut= horconversion working, I had to create new authorconversions for this. You = can find this in the updated publ-imp-author.mkvi file in my GitHub repo:
\startsetups \s!btx:\s!list:\s!author:invertedfirst
=C2=A0 =C2=A0 = \ifnum\currentbtxauthorindex>\plusone
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \fa= stsetup{\s!btx:\s!list:\s!author:normal}
=C2=A0 =C2=A0 \else
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 \fastsetup{\s!btx:\s!list:\s!author:inverted}
=C2= =A0 =C2=A0 \fi
\stopsetups

\startsetups \s!btx:\s!cite:\s!author:= invertedfirst
=C2=A0 =C2=A0 \ifnum\currentbtxauthorindex>\plusone
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 \fastsetup{\s!btx:\s!cite:\s!author:normal}
= =C2=A0 =C2=A0 \else
=C2=A0 =C2=A0 =C2=A0 =C2=A0 \fastsetup{\s!btx:\s!cit= e:\s!author:inverted}
=C2=A0 =C2=A0 \fi
\stopsetups

Then, in p= ubl-imp-sbl.mkvi, I invoke this setup in the \btxsetup for citations in the= bibliographic list as follows:

\definebtx
=C2=A0 [sbl:\s!list:au= thor]
=C2=A0 [sbl:\s!list]
=C2=A0 [\c!authorconversion=3Dinvertedfirs= t,
=C2=A0 \c!separator:names:4=3D{\btxcomma\btxlabeltext{and}\space}] % = between only 2 names

I hope this helps!

Joe= y

On Tue, Dec 21, 2021 at 12:51 PM Joel via ntg-context <ntg-context@ntg.nl> wr= ote:
I could not find any exist= ing solution for using Chicago-Turabian "note" style in ConTeXt, = so I have started my own attempt.

Chicago-Turabian uses footnot= es to display the author's details on the same page, but also uses a bi= bliography to display an alphabetical list of the sources again at the end.= The footnotes display somewhat differently each time a source is shown. Th= e first time a source is cited, the footnote contains a long, detailed refe= rence. Subsequent reappearances of the same citation are abbreviated somewh= at. And "ibid" is used when the source is cited twice in a row. T= he bibliography entry contains really detailed information, similar to what= was shown in the first footnote, with minor differences.
This code uses three macros: \turabian, used only t= he first time a source is reference, \shortturabian, used for subsequent re= ferences of the same source, and `\ibid, for when a source is referenced tw= ice in a row. Each of these macros simply creates a footnote, showing the a= uthor's details, and also uses \nocite to make sure an entry is added t= o \placelistofpublications. Page details are optionally added in #2, and th= is information only appears in the footnotes.

I am having trouble = getting the code to display the author's names correctly. Every attempt= ends with strange results, like "FirstLast" with no space or jus= t "Initial Last". Chicago-Turabian displays the names differently= , depending on the placement:

(1) First, the \turabian macro should = show in ordinary First + Last order in the footnote, example: "Anna Bu= rns, Robert Smith, and Judith Green", but if the number of authors exc= eeds 3, it display "Anna Burns et al."

(2) Second, the \sh= orturabian macro should show just the Last names in the footnote: "Bur= ns, Smith, and Green", also using "Burns et al." if there ar= e more than 3 names.

(3) The \ibid macro doesn't show any names.=

(4) Finally, the actual bibliographic entry in \pl= acelistofpublications uses a strange format, with the first author listed a= s Last + First order, all subsequent authors in First + Last order, such as= "Burns, Anna, Robert Smith, and Judith Green.", meanwhile "= et al." is never used in the bibliography, even if there are 100 autho= rs.

Any help would be greatly appreciated!
--Joel

Minimal working example follows:
=
\startbuffer [bib]
@Book{ball1996,
author =3D {Ball, Larry},
t= itle =3D {Desert lawmen: The high sheriffs \word{of} New Mexico \word{and} = Arizona, 1846-1912},
publisher =3D {University \word{of} New Mexico Pres= s},
year =3D {1996},
address =3D {Albuquerque, NM},
isbn =3D {9780= 826317001}
}
=C2=A0
@Book{minear2009,
author =3D {Minear, Tish = and Limon, Janet},
title =3D {Discover Native America: Arizona, Colorado= , New Mexico, \word{and} Utah},
publisher =3D {Hippocrene Books},
yea= r =3D {2009},
address =3D {New York, NY},
isbn =3D {9780781803274}}

\stopbuffer

\define[3]\ifisempty{%
=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 =C2=A0\setbox0=3D\hbox{#1\unskip}%
=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0\ifdim\wd0=3D0pt
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 =C2=A0#2%
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\else
= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0#3%
=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0\fi
}%

\usebtxdataset[bib.buffer]
\startbtxrenderingdefinitions[chicagonum]

\definebtx[chicagonum= ]
=C2=A0=C2=A0 =C2=A0[default=3Ddefault,
=C2=A0=C2=A0 =C2=A0specifica= tion=3Dchicagonum,
=C2=A0=C2=A0 =C2=A0otherstext=3D{\btxspace{\it\btxlab= eltext{others}}},
=C2=A0=C2=A0 =C2=A0etallimit=3D10,
=C2=A0=C2=A0 =C2= =A0etaldisplay=3D\btxparameter\c!etallimit,
=C2=A0=C2=A0 =C2=A0journalco= nversion=3D\v!normal,
=C2=A0=C2=A0 =C2=A0monthconversion=3D\v!month,
= =C2=A0=C2=A0 =C2=A0title=3Dyes,
=C2=A0=C2=A0 =C2=A0separator:names:2=3D{= \btxcomma},
=C2=A0=C2=A0 =C2=A0separator:names:3=3D{\btxcomma\btxlabelte= xt{and}\space},
=C2=A0=C2=A0 =C2=A0separator:names:4=3D{\btxspace\btxlab= eltext{and}\space}]
=C2=A0 =C2=A0
\setupbtxlist[chicagonum]

\d= efinebtxrendering[chicagonum]
=C2=A0=C2=A0 =C2=A0[specification=3Dchicag= onum,
=C2=A0=C2=A0 =C2=A0sorttype=3Dauthoryear,
=C2=A0=C2=A0 =C2=A0nu= mbering=3Dno]


\startsetups btx:chicagonum:list:book
=C2=A0=C2= =A0 =C2=A0\btxdoif{author}{
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxfl= ush{author}
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxperiod
=C2=A0= =C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0\btxdoif{title}{
=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0{\it\Words \btxflush{title}}
=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 =C2=A0\btxperiod
=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2= =A0\btxdoif{address}{
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxflush{ad= dress}
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxcolon
=C2=A0=C2=A0 = =C2=A0}
=C2=A0=C2=A0 =C2=A0\btxdoif{publisher}{
=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 =C2=A0\btxflush{publisher}
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = =C2=A0\btxcomma
=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0\btxdoif{year= }{
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxflush{year}
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0\btxperiod
=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2= =A0 =C2=A0\removeunwantedspaces
\stopsetups


\startsetups btx:= chicagonum:list:article
=C2=A0=C2=A0 =C2=A0\btxdoif{author}{
=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxflush{author}
=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0\btxperiod
=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0\b= txdoif{title}{
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\quotation{\Words \= btxflush{title}}
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxperiod
=C2= =A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0\btxdoif{journal}{
=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0{\it\Words \btxflush{journal}}
=C2=A0=C2=A0 =C2= =A0}=C2=A0=C2=A0 =C2=A0
=C2=A0=C2=A0 =C2=A0\btxdoif{volume}{
=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxflush{volume}
=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0\btxcomma
=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0\bt= xdoif{number}{
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0no.~\btxflush{numbe= r}
=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0\btxdoifelse{month}{
= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(\btxflush{month} \btxflush{year})=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxcolon
=C2=A0=C2=A0 =C2=A0}{=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxdoif{year}{
=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0(\btxflush{year})
=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\btxcol= on
=C2=A0=C2=A0 }
=C2=A0=C2=A0 =C2=A0\btxdoif{pages}{
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0\btxflush{pages}
=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0\btxperiod
=C2=A0=C2=A0 =C2=A0}
=C2=A0=C2=A0 =C2=A0\removeu= nwantedspaces
\stopsetups

\stopbtxrenderingdefinitions

\setupbtx[chicagonum][dataset=3Ddefault,
=C2=A0=C2=A0=C2=A0 authorconve= rsion=3D{normal},
=C2=A0=C2=A0=C2=A0=C2=A0 etallimit=3D]

\setupbt= x[chicagonum:list:author]
=C2=A0=C2=A0=C2=A0 [authorconversion=3D{normal= },
=C2=A0=C2=A0=C2=A0=C2=A0 etallimit=3D]
\setupbtx[chicagonum:cite:a= uthor]
=C2=A0=C2=A0=C2=A0 [authorconversion=3D{normal},
=C2=A0=C2=A0= =C2=A0=C2=A0 etallimit=3D3,
=C2=A0=C2=A0=C2=A0=C2=A0 etaldisplay=3D1]
\usebtxdefinitions[chicagonum]

\define[2]\turabian{%
=C2=A0= =C2=A0 =C2=A0\footnote{%
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\ifisempt= y{\cite[author][#1]}{}{\cite[author][#1]}%
=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0\ifisempty{\cite[title][#1]}{}{,\ {\it\Words \cite[title][#1].}}%=
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\ifisempty{\cite[address][#1]\cit= e[publisher][#1]\cite[year][#1]}{}{\ (}%
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 =C2=A0\cite[address][#1]: ~%
=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\ifisempty{\cite[journal][#1]}{\ifisempt= y{\cite[publisher][#1]}{}{\cite[publisher][#1]:\ }}{\cite[journal][#1]:\ }%=
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\ifisempty{\ci= te[year][#1]}{}{,\ \cite[year][#1]}%
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\ifisempty{\cite[address][#1]\cite[publisher][#1]\cite[year][#1]}{}{)}%<= br>=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\ifisempty{#2}{.}{,\ #2.}%
=C2= =A0=C2=A0 =C2=A0}%
=C2=A0=C2=A0 =C2=A0\nocite[#1]%
}%


\def= ine[2]\shortturabian{%
=C2=A0=C2=A0 =C2=A0\footnote{%
=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 =C2=A0\ifisempty{\cite[author][#1]}{}{\cite[author][#1]}= %
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0\ifisempty{#2}{.}{,\ #2.}%
= =C2=A0=C2=A0 =C2=A0}%
=C2=A0=C2=A0 =C2=A0\nocite[#1]%
}%

\defi= ne[2]\ibid{
=C2=A0=C2=A0 =C2=A0\footnote{%
=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0Ibid\ifisempty{#2}{.}{,\ #2.}%
=C2=A0=C2=A0 =C2=A0}%
=C2= =A0=C2=A0 =C2=A0\nocite[#1]%
}

\starttext

=C2=A0=C2=A0 =C2= =A0\input knuth \turabian{ball1996}{1\endash 23}=C2=A0=C2=A0 =C2=A0
=C2= =A0=C2=A0 =C2=A0
=C2=A0=C2=A0 =C2=A0\input knuth \turabian{minear2009}{3= 2\endash 23}
=C2=A0=C2=A0 =C2=A0
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\ibid{minear2009}{32\endash 23}
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2= =A0\ibid{minear2009}{}
=C2=A0=C2=A0 =C2=A0\input knuth \turabian{ball199= 6}{}=C2=A0=C2=A0 =C2=A0
=C2=A0=C2=A0 =C2=A0
=C2=A0=C2=A0 =C2=A0\input= knuth \shortturabian{minear2009}{121\endash 99}
=C2=A0=C2=A0 =C2=A0
= =C2=A0=C2=A0 =C2=A0\startchapter[title=3DBibliography]
=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0 =C2=A0\placelistofpublications
=C2=A0=C2=A0 =C2=A0\stopc= hapter

\stoptext


_____= ___________________________________________________________________________= ___
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--000000000000b4a6b505d3ac11aa-- --===============9164388428131015250== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============9164388428131015250==--