Re: [NTG-context] Displaying names in Chicago-Turabian "note" style
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
Re: [NTG-context] Displaying names in Chicago-Turabian "note" style
Joel via ntg-context schrieb am 21.12.2021 um 18:51: [...] \define[3]\ifisempty{% \setbox0=\hbox{#1\unskip}% \ifdim\wd0=0pt #2% \else #3% \fi }% No need for your own command because ConTeXt already provides \doifemptyelse which does the same thing. Wolfgang ___ 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 ___
[NTG-context] Displaying names in Chicago-Turabian "note" style
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=]
Re: [NTG-context] Problem with \head inside \itemize
Benjamin Buchmuller via ntg-context schrieb am 21.12.2021 um 14:04: Not sure if this is the behavior to expect, but I would like to get formatted inline headers in itemize like: The syntax for \starthead is \starthead {...} ... \stophead where the argument within the braces is mandatory. – Unformatted item. – *Head One.* Something bla bla. – *Head Two.* Other bla bla. From: \setupitemize[each][2, headintext] % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}] \setupitemize[each][headcolor=red, headstyle=bold] \startitemize \item Unformatted item. \head Head One \par Something bla bla. \starthead Head Two \stophead Other bla bla. % Even worse: No inline any more. \stopitemize However, headstyle= and headcolor= seem to spill all over … Is it a feature or a bug? No bug, just a user error. When you put the head text in the argument of \starthead everything works as expected. \starttext \startitemize[headintext][headstyle=bold] \startitem Unformatted item. \stopitem \starthead {Head One.} Something bla bla. \stophead \starthead {Head Two.} Other bla bla. \stophead \stopitemize \stoptext Wolfgang ___ 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 ___
Re: [NTG-context] Problem with \head inside \itemize
Not sure if this is the behavior to expect, but I would like to get formatted inline headers in itemize like: – Unformatted item. – *Head One.* Something bla bla. – *Head Two.* Other bla bla. From: \setupitemize[each][2, headintext] % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}] \setupitemize[each][headcolor=red, headstyle=bold] \startitemize \item Unformatted item. \head Head One \par Something bla bla. \starthead Head Two \stophead Other bla bla. % Even worse: No inline any more. \stopitemize However, headstyle= and headcolor= seem to spill all over … Is it a feature or a bug? Thanks Benjamin ___ 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 ___
Re: [NTG-context] Critical Editions?
Am 21.12.21 um 11:06 schrieb Denis Maier via ntg-context: Thanks for bringing this topic up again. I'd also be highly interested in this! Me too as a publisher in the humanities and evangelist for ConTeXt ;) I raised the subject at previous context meetings, but the requirements for criticial editions differ so much that it’s hard to tell what is really needed. So it’s good that Jürgen came up with his requirements and solution attempts. I remember several interesting talks about big edition projects at DANTE conferences and online, also of course Massi’s MEO project, and since I also typeset a German literature magazin called “Kritische Ausgabe” I always wanted to publish a book on the subject of big editions from the editorial and technical view... Hraban ___ 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 ___
Re: [NTG-context] Critical Editions?
Thanks for bringing this topic up again. I'd also be highly interested in this! Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von hanneder-- > - via ntg-context > Gesendet: Dienstag, 21. Dezember 2021 10:51 > An: ntg-context@ntg.nl > Cc: hanne...@staff.uni-marburg.de > Betreff: [NTG-context] Critical Editions? > > > I just started switching after long years of typesetting with La-/Omega- > /pdfTeX to Context and was exploring the capabilities of the program for > typesetting critical editions. So I was wondering whether there is any > updated information on how to produce critical editions? > > > Details: > I was able to find the article "Ediciones críticas con ConTeXt" (is this in > use?) > as well as a plan of and a remark concerning critTeXt: "As I learned from a > thread on NTG-context from early 2010 we shouldn't expect a dedicated > package, but that ConTeXt will eventually incorporate the needed > functionalities." What is the status of that? > > > I also found out that for simple editions context already works. For critical > editions in my field we need both footnote references based on > linenumbers (for prose), but also references to verse number, which can be > entered manually. The main problem for me was to find the command > \linenote :) > > % Setup of \linenote > \setupnotation[linenote] > [alternative=serried,width=broad,distance=.5em,display=no] > \setupnote[linenote][way=bypage,paragraph=yes,rule=off] > > % \variant as a footnote without reference number \definenote [variant] > [footnote] \setupnotation[variant][number=no] > \setupnote[variant][way=bypage,paragraph=yes,rule=off] > > % Two "environments" for Sanskrit verses, one with, one without > linenumbers. > > % SANSKRIT EDITION linenumbers > \definelines[slokaed][][indenting={yes, small, even}, > > before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopn > arrower] > > % SANSKRIT EDITION plain (referring to verses) > \definelines[slokaedplain][][indenting={yes, small, even}, >before=\startnarrower,after=\stopnarrower] > > With this the code of the edition can be pleasently minimalistic: > > \startslokaed > mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam >yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam > \linenote{tam ] tat} upāsyam upāsmahe} \stopslokaed > > > \startslokaedplain > mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c > dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d tam ] tat} upāsyam upāsmahe > (2) \stopslokaedplain > > So far, so good. Any hints to a more sophisticated solution are highly > welcome. (I am a simple TeX > user) > Thanks > Jürgen > > > > --- > > Prof. Dr. Juergen Hanneder > Philipps-Universitaet Marburg > FG Indologie u. Tibetologie > Deutschhausstr.12 > 35032 Marburg > Germany > Tel. 0049-6421-28-24930 > hanne...@staff.uni-marburg.de > > __ > _ > 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 > __ > _ ___ 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 ___
[NTG-context] Critical Editions?
I just started switching after long years of typesetting with La-/Omega-/pdfTeX to Context and was exploring the capabilities of the program for typesetting critical editions. So I was wondering whether there is any updated information on how to produce critical editions? Details: I was able to find the article "Ediciones críticas con ConTeXt" (is this in use?) as well as a plan of and a remark concerning critTeXt: "As I learned from a thread on NTG-context from early 2010 we shouldn't expect a dedicated package, but that ConTeXt will eventually incorporate the needed functionalities." What is the status of that? I also found out that for simple editions context already works. For critical editions in my field we need both footnote references based on linenumbers (for prose), but also references to verse number, which can be entered manually. The main problem for me was to find the command \linenote :) % Setup of \linenote \setupnotation[linenote] [alternative=serried,width=broad,distance=.5em,display=no] \setupnote[linenote][way=bypage,paragraph=yes,rule=off] % \variant as a footnote without reference number \definenote [variant] [footnote] \setupnotation[variant][number=no] \setupnote[variant][way=bypage,paragraph=yes,rule=off] % Two "environments" for Sanskrit verses, one with, one without linenumbers. % SANSKRIT EDITION linenumbers \definelines[slokaed][][indenting={yes, small, even}, before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopnarrower] % SANSKRIT EDITION plain (referring to verses) \definelines[slokaedplain][][indenting={yes, small, even}, before=\startnarrower,after=\stopnarrower] With this the code of the edition can be pleasently minimalistic: \startslokaed mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam \linenote{tam ] tat} upāsyam upāsmahe} \stopslokaed \startslokaedplain mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d tam ] tat} upāsyam upāsmahe (2) \stopslokaedplain So far, so good. Any hints to a more sophisticated solution are highly welcome. (I am a simple TeX user) Thanks Jürgen --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel. 0049-6421-28-24930 hanne...@staff.uni-marburg.de ___ 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 ___
Re: [NTG-context] LTR footnotes from RTL paragraph
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Freitag, 17. Dezember 2021 12:24 > An: mailing list for ConTeXt users > Cc: Maier, Denis Christian (UB) ; oi...@gmx.es > Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph > > On 12/17/2021 10:02 AM, Denis Maier via ntg-context wrote: > >> -Ursprüngliche Nachricht- > >> Von: ntg-context Im Auftrag von Pablo > >> Rodriguez via ntg-context > >> Gesendet: Donnerstag, 16. Dezember 2021 18:07 > >> An: Denis Maier via ntg-context > >> Cc: Pablo Rodriguez > >> Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph > >> > >> On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote: > >>> Ok, this works: > >>> > >>> \setupnote[footnote][align=l2r] > >>> > >>> Does that have any drawbacks? > >> > >> Hi Denis, > >> > >> I don’t think it may have (other than forgetting other options, such > >> as hz or hanging). > > > > Ah, I alway forget that. By the way, is there a way to append to setting > instead of overriding it? > > sure, but I don't think it needs to be avocated (valid but not intuitive) > > i'll add this (only a few line addition with no performance hit): > >\definealign[MyAlign][r2l,flushleft] > > so that you can do > >\setupalign[MyAlign] > > and you can also use it as value to the align parameter as well ... the usual > 'context abstraction' Nice! So, IIUC, you should also be able to do something like this then: \definealign[AlignStandard][verytolerant,stretch] \definealign[AlignR2L][AlignStandard][r2l] Is that correct? Re wikifying: I've tried to create the \definealign page, but unlike other command pages this page would look empty with no automatically generated content. So I guess the command is not yet in the command index, right? Denis ___ 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 ___