[NTG-context] Different authorconversion for citation alternatives and bibliographic entries
I dealt with this issue at length in a separate thread (“Different author rendering in entry citation vs. list”) a couple months after you asked about this, so for the benefit of anyone who has been following this thread specifically, I’ll describe the solution I found here. There are (at least) a few commands defined in publ-imp-ini.mkiv that can help conditionally render author fields according to cite parameters rather than list parameters. The first, \btxflushauthornormal{author} (where author can be replaced by another name-type field, if I understand correctly), will flush the specified field according to the “normal” authorconversion. There are similar commands for \btxflushauthorname, \btxflushauthornormalshort, \btxflushauthorinverted, and \btxflushauthorinvertedshort, if you need a different conversion.If you also want to use other cite-specific name-rendering parameters, like etallimit, etaldisplay, and etaloption, then the \currentbtxciteauthorbyfield (which does not accept an argument and will only render the author field or any field in the author set) will do this. To handle citation alternative-dependent formatting, you can use the \currentbtxcitealternative as follows:```\doifelse {\currentbtxcitealternative} {entry} { % Normal short conversion for entry citations \btxflushauthornormalshort{author}} { % Normal conversion for list citations \btxflushauthornormal{author}}```Joey ___ 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] Different authorconversion for citation alternatives and bibliographic entries
Oh, and needless to say, I'd be happy to help with this. > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Freitag, 2. Juli 2021 10:01 > An: 'Alan Braslau' > Cc: ntg-context@ntg.nl > Betreff: AW: [NTG-context] Different authorconversion for citation > alternatives > and bibliographic entries > > > -Ursprüngliche Nachricht- > > Von: Alan Braslau > > Gesendet: Mittwoch, 30. Juni 2021 23:50 > > An: Maier, Denis Christian (UB) > > Cc: ntg-context@ntg.nl > > Betreff: Re: [NTG-context] Different authorconversion for citation > > alternatives and bibliographic entries > > > [...] > > > > > > So what would be needed to make add real support for it? > > > > First of all, come to a consensus on a clear style guide to base this > > on, so as not to run after ambiguous and perhaps contradictory > > specifications. This would be distinct from the APA (author-year) > > model as well as from the minimalist APS > > (numbered) style. Could this perhaps be the Chicago style? (does that > > have a footnote specification?) > > Chicago is certainly not a bad choice for this. It's probably one of the most > complete footnote specifications out there. (I knows multiple variants though, > so you need to settle for one or support both.) One thing to be aware of is > that > Chicago is utterly complex. Other styles like MHRA are a bit simpler. This > complexity might be an advantage and a disadvantage at the same time. It may > be hard to get this completely right. The already mentioned biblatex-chicago > package shows how much is involved. OTOH, if you get this right that should > cover almost everything that might come up in note based styles. > > 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 ___
Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries
> -Ursprüngliche Nachricht- > Von: Alan Braslau > Gesendet: Mittwoch, 30. Juni 2021 23:50 > An: Maier, Denis Christian (UB) > Cc: ntg-context@ntg.nl > Betreff: Re: [NTG-context] Different authorconversion for citation > alternatives > and bibliographic entries > [...] > > > > So what would be needed to make add real support for it? > > First of all, come to a consensus on a clear style guide to base this on, so > as not > to run after ambiguous and perhaps contradictory specifications. This would be > distinct from the APA (author-year) model as well as from the minimalist APS > (numbered) style. Could this perhaps be the Chicago style? (does that have a > footnote specification?) Chicago is certainly not a bad choice for this. It's probably one of the most complete footnote specifications out there. (I knows multiple variants though, so you need to settle for one or support both.) One thing to be aware of is that Chicago is utterly complex. Other styles like MHRA are a bit simpler. This complexity might be an advantage and a disadvantage at the same time. It may be hard to get this completely right. The already mentioned biblatex-chicago package shows how much is involved. OTOH, if you get this right that should cover almost everything that might come up in note based styles. 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 ___
Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries
Hi Alan, Hans, and Chicago style bibliography users, > 3) I believe that Gavin (on CC:) is a user of the Chicago author-year > model. I’d like to use the Notes and Bibliography style in my physics book, with endnotes after each chapter. I would gladly participate by testing and providing feedback. I am using a patched-together \footnote solution right now, and it is not great. The existing "biblatex-chicago” package might be helpful for development, especially in selecting database syntax and perhaps in designing algorithms. The author, David Fussner, has been maintaining and updating since the first public release in 2008. It the extensive documentation, he invites contact. It looks like a complicated project! I’d be happy to discuss this more at our next Norther Colorado ConTeXt User meeting. Would some time next week work? (Alan, who I met on this mailing list, lives a short bike ride from my house.) Gavin ___ 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] Different authorconversion for citation alternatives and bibliographic entries
Chicago-style footnote user here, I would be interested in helping with testing. Jelle On Wed, Jun 30, 2021 at 11:50 PM Alan Braslau wrote: > > On Wed, 30 Jun 2021 19:40:06 + > wrote: > > > > -Ursprüngliche Nachricht- > > > Von: Alan Braslau > > > Gesendet: Mittwoch, 30. Juni 2021 21:11 > > > An: mailing list for ConTeXt users ; Maier, > > > Denis Christian (UB) > > > Betreff: Re: [NTG-context] Different authorconversion for citation > > > alternatives and bibliographic entries > > > > > > On 30/06/21 12:59, denis.ma...@unibe.ch wrote: > > > > Hi, > > > > > > > >> -Ursprüngliche Nachricht- > > > >> Von: ntg-context Im Auftrag von > > > >> Ágoston Volcz > > > >> Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl > > > >> Betreff: [NTG-context] Different authorconversion for citation > > > >> alternatives and bibliographic entries > > > >> > > > >> Hi there, > > > >> > > > >> My university has special requirements for the theses I submit. > > > >> Layout, fonts etc. are pretty straightforward to set up in > > > >> ConTeXt. The one part I'm struggling with is citations / > > > >> bibliography. I have to use the german citation style with > > > >> footnotes. Essentially the first time I cite something, I have > > > >> to put the full entry in a footnote. From the second time on, I > > > >> only have to put a shorter entry in the > > > footnotes. > > > > Is this first citation vs other citations thing currently > > > > possible with ConTeXt? I > > > was thinking that there was no proper support for note style > > > citations in ConTeXt? Has that changed? I remember reading the > > > phrase "We may add additional citation styles if there demand and > > > clear requirements exist." So what's the current state of affairs > > > here? > > > > > > > > Denis > > > > > > Indeed (one can always use \footnote{} but that might not be a good > > > substitute for a proper footnote citation style. > > > > > > I do not use footnote citations as a general style (and personally > > > dislike it, finding them somewhat distracting and sloppy). Yet > > > these are popular in many fields and there is no reason not to > > > support it. > > > > So what would be needed to make add real support for it? > > First of all, come to a consensus on a clear style guide to base this > on, so as not to run after ambiguous and perhaps contradictory > specifications. This would be distinct from the APA (author-year) model > as well as from the minimalist APS (numbered) style. Could this perhaps > be the Chicago style? (does that have a footnote specification?) > > Secondly, identify users who would be willing to spend time testing and > giving feedback. > > Thirdly, motivate Hans and myself to spend time on this (implementing > or helping implement), for neither of us use the footnote style. > > So it can be done, and such a model is presently missing. > > Alan > > ___ > 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 ___
Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries
On Wed, 30 Jun 2021 19:40:06 + wrote: > > -Ursprüngliche Nachricht- > > Von: Alan Braslau > > Gesendet: Mittwoch, 30. Juni 2021 21:11 > > An: mailing list for ConTeXt users ; Maier, > > Denis Christian (UB) > > Betreff: Re: [NTG-context] Different authorconversion for citation > > alternatives and bibliographic entries > > > > On 30/06/21 12:59, denis.ma...@unibe.ch wrote: > > > Hi, > > > > > >> -Ursprüngliche Nachricht- > > >> Von: ntg-context Im Auftrag von > > >> Ágoston Volcz > > >> Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl > > >> Betreff: [NTG-context] Different authorconversion for citation > > >> alternatives and bibliographic entries > > >> > > >> Hi there, > > >> > > >> My university has special requirements for the theses I submit. > > >> Layout, fonts etc. are pretty straightforward to set up in > > >> ConTeXt. The one part I'm struggling with is citations / > > >> bibliography. I have to use the german citation style with > > >> footnotes. Essentially the first time I cite something, I have > > >> to put the full entry in a footnote. From the second time on, I > > >> only have to put a shorter entry in the > > footnotes. > > > Is this first citation vs other citations thing currently > > > possible with ConTeXt? I > > was thinking that there was no proper support for note style > > citations in ConTeXt? Has that changed? I remember reading the > > phrase "We may add additional citation styles if there demand and > > clear requirements exist." So what's the current state of affairs > > here? > > > > > > Denis > > > > Indeed (one can always use \footnote{} but that might not be a good > > substitute for a proper footnote citation style. > > > > I do not use footnote citations as a general style (and personally > > dislike it, finding them somewhat distracting and sloppy). Yet > > these are popular in many fields and there is no reason not to > > support it. > > So what would be needed to make add real support for it? First of all, come to a consensus on a clear style guide to base this on, so as not to run after ambiguous and perhaps contradictory specifications. This would be distinct from the APA (author-year) model as well as from the minimalist APS (numbered) style. Could this perhaps be the Chicago style? (does that have a footnote specification?) Secondly, identify users who would be willing to spend time testing and giving feedback. Thirdly, motivate Hans and myself to spend time on this (implementing or helping implement), for neither of us use the footnote style. So it can be done, and such a model is presently missing. Alan ___ 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] Different authorconversion for citation alternatives and bibliographic entries
> -Ursprüngliche Nachricht- > Von: Alan Braslau > Gesendet: Mittwoch, 30. Juni 2021 21:11 > An: mailing list for ConTeXt users ; Maier, Denis > Christian > (UB) > Betreff: Re: [NTG-context] Different authorconversion for citation > alternatives > and bibliographic entries > > On 30/06/21 12:59, denis.ma...@unibe.ch wrote: > > Hi, > > > >> -Ursprüngliche Nachricht- > >> Von: ntg-context Im Auftrag von Ágoston > >> Volcz > >> Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl > >> Betreff: [NTG-context] Different authorconversion for citation > >> alternatives and bibliographic entries > >> > >> Hi there, > >> > >> My university has special requirements for the theses I submit. > >> Layout, fonts etc. are pretty straightforward to set up in ConTeXt. > >> The one part I'm struggling with is citations / bibliography. > >> I have to use the german citation style with footnotes. Essentially > >> the first time I cite something, I have to put the full entry in a > >> footnote. From the second time on, I only have to put a shorter entry in > >> the > footnotes. > > Is this first citation vs other citations thing currently possible with > > ConTeXt? I > was thinking that there was no proper support for note style citations in > ConTeXt? Has that changed? I remember reading the phrase "We may add > additional citation styles if there demand and clear requirements exist." So > what's the current state of affairs here? > > > > Denis > > Indeed (one can always use \footnote{} but that might not be a good substitute > for a proper footnote citation style. > > I do not use footnote citations as a general style (and personally dislike it, > finding them somewhat distracting and sloppy). Yet these are popular in many > fields and there is no reason not to support it. So what would be needed to make add real support for it? ___ 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] Different authorconversion for citation alternatives and bibliographic entries
On 30/06/21 12:59, denis.ma...@unibe.ch wrote: Hi, -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Ágoston Volcz Gesendet: Mittwoch, 30. Juni 2021 10:20 An:ntg-context@ntg.nl Betreff: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries Hi there, My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. Is this first citation vs other citations thing currently possible with ConTeXt? I was thinking that there was no proper support for note style citations in ConTeXt? Has that changed? I remember reading the phrase "We may add additional citation styles if there demand and clear requirements exist." So what's the current state of affairs here? Denis Indeed (one can always use \footnote{} but that might not be a good substitute for a proper footnote citation style. I do not use footnote citations as a general style (and personally dislike it, finding them somewhat distracting and sloppy). Yet these are popular in many fields and there is no reason not to support it. -- Alan ___ 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] Different authorconversion for citation alternatives and bibliographic entries
Hi, > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Ágoston Volcz > Gesendet: Mittwoch, 30. Juni 2021 10:20 > An: ntg-context@ntg.nl > Betreff: [NTG-context] Different authorconversion for citation alternatives > and > bibliographic entries > > Hi there, > > My university has special requirements for the theses I submit. > Layout, fonts etc. are pretty straightforward to set up in ConTeXt. > The one part I'm struggling with is citations / bibliography. > I have to use the german citation style with footnotes. Essentially the first > time I > cite something, I have to put the full entry in a footnote. From the second > time > on, I only have to put a shorter entry in the footnotes. Is this first citation vs other citations thing currently possible with ConTeXt? I was thinking that there was no proper support for note style citations in ConTeXt? Has that changed? I remember reading the phrase "We may add additional citation styles if there demand and clear requirements exist." So what's the current state of affairs here? 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 ___
Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries
example.tex ``` \startbuffer[example] @book{book, author = {First Last}, title = {Title}, subtitle = {Subtitle}, publisher = {Publisher}, address = {City}, year = {2021} } \stopbuffer \usebtxdataset[example.buffer] \usebtxdefinitions[deu] \starttext \cite[entry][book] \cite[authortitle][book] \placelistofpublications \stoptext ``` publ-imp-deu.mkvi ``` \startbtxrenderingdefinitions[deu] \definebtx [deu] [default=default, specification=deu] \definebtxrendering [deu] [specification=deu, sorttype={author,title}, numbering=num] \definebtx [deu:list] [deu] \definebtx [deu:list:author] [deu:list] [authorconversion=normal] \definebtx [deu:list:book] [deu] \definebtx [deu:cite] [deu] \definebtx [deu:cite:authortitle] [deu] [authorconversion=normalshort] \startsetups btx:deu:list:book \btxflush{author}\btxcolon\btxflush{title}\btxperiod \btxdoif{subtitle}{\btxflush{subtitle}\btxperiod} \btxflush{address}\btxcolon\btxflush{publisher} \btxflush{year}\btxperiod \stopsetups \startsetups btx:deu:cite:authortitle \btxflush{author}\btxcolon\btxflush{title}\btxperiod \btxdoif{subtitle}{\btxflush{subtitle}\btxperiod} \stopsetups \stopbtxrenderingdefinitions ``` This is the shortest example I could get, some lines got very long but I did not want it be too many lines. If I compile this, I get: (First Last: Title. Subtitle. City: Publisher 2021.) First Last: Title. Subtitle. 1 First Last: Title. Subtitle. City: Publisher 2021. Agoston Am Mi., 30. Juni 2021 um 19:26 Uhr schrieb Alan Braslau : > > On 30/06/21 02:20, Ágoston Volcz wrote: > > 2. Entries in the bibliography and fist time citations must have > > 'normal' authorconversion, while consequent citations must have > > 'normalshort'. For consequent citations I defined the 'authortitle' > > alternative. > > In the thesis I have: > > ``` > > \usebtxdataset[default][literature.bib] > > \usebtxdefinitions[deu] > > \setupbtx[deu] > > ``` > > A snippet from the publ-imp-deu.mkvi: > > ``` > > \definebtx > > [deu:list] > > [deu] > > [authorconversion=normal] > > > > \definebtx > > [deu:cite] > > [deu] > > [authorconversion=normalshort, > > alternative=authortitle] > > > > \startsetups btx:deu:list:book > > {\sc \btxflush{author}}\btxcolon \btxflush{title} > > \btxdoif{subtitle}{\btxperiod\btxflush{subtitle}}\btxperiod > > \btxflush{address}\btxcolon \btxflush{publisher} \btxflush{year} > > \btxdoif{series}{ (\btxflush{series} \btxflush{volume})}\btxperiod > > \stopsetups > > > > ``` > > In the setup and definition, the fields I defined do get into the > > citation correctly, but the authorconversion remains 'normal'. If I > > comment out the lines which set up 'normal' authorconversion for the > > list, everything, including the bibliography and 'entry' type > > citations get 'normalshort'. Is that a bug or am I missing something? > > I am not sure that I understand your snippet (a mwe would be useful). > However, it appears that your setup is for the "list" rendering of a > book, and you do specify authorconversion=normal for lists. > > Keep in mind that the bibliography system uses inheritance so it is > important to set options in the right places. Once everything gets > initialized, changing a higher-level parameter might not propagate to > lower-level instances if they have already been defined, the inheritance > taking place at definition time. > > -- > Alan ___ 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] Different authorconversion for citation alternatives and bibliographic entries
On 30/06/21 02:20, Ágoston Volcz wrote: 2. Entries in the bibliography and fist time citations must have 'normal' authorconversion, while consequent citations must have 'normalshort'. For consequent citations I defined the 'authortitle' alternative. In the thesis I have: ``` \usebtxdataset[default][literature.bib] \usebtxdefinitions[deu] \setupbtx[deu] ``` A snippet from the publ-imp-deu.mkvi: ``` \definebtx [deu:list] [deu] [authorconversion=normal] \definebtx [deu:cite] [deu] [authorconversion=normalshort, alternative=authortitle] \startsetups btx:deu:list:book {\sc \btxflush{author}}\btxcolon \btxflush{title} \btxdoif{subtitle}{\btxperiod\btxflush{subtitle}}\btxperiod \btxflush{address}\btxcolon \btxflush{publisher} \btxflush{year} \btxdoif{series}{ (\btxflush{series} \btxflush{volume})}\btxperiod \stopsetups ``` In the setup and definition, the fields I defined do get into the citation correctly, but the authorconversion remains 'normal'. If I comment out the lines which set up 'normal' authorconversion for the list, everything, including the bibliography and 'entry' type citations get 'normalshort'. Is that a bug or am I missing something? I am not sure that I understand your snippet (a mwe would be useful). However, it appears that your setup is for the "list" rendering of a book, and you do specify authorconversion=normal for lists. Keep in mind that the bibliography system uses inheritance so it is important to set options in the right places. Once everything gets initialized, changing a higher-level parameter might not propagate to lower-level instances if they have already been defined, the inheritance taking place at definition time. -- Alan ___ 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] Different authorconversion for citation alternatives and bibliographic entries
On 6/30/2021 1:28 PM, Ágoston Volcz wrote: Thank you! I've moved the files into $TEXMFHOME/tex/context/personal/... and updated the database. This solved the first part of the problem perfectly Hopefully there is also a solution to the second issue. or just tex/texmf-project/ because home gets scanned every run - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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] Different authorconversion for citation alternatives and bibliographic entries
Thank you! I've moved the files into $TEXMFHOME/tex/context/personal/... and updated the database. This solved the first part of the problem perfectly Hopefully there is also a solution to the second issue. Agoston ___ 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] Different authorconversion for citation alternatives and bibliographic entries
On Wed, 30 Jun 2021, Ágoston Volcz wrote: > Hi there, > > My university has special requirements for the theses I submit. > Layout, fonts etc. are pretty straightforward to set up in ConTeXt. > The one part I'm struggling with is citations / bibliography. > I have to use the german citation style with footnotes. Essentially > the first time I cite something, I have to put the full entry in a > footnote. From the second time on, I only have to put a shorter entry > in the footnotes. > I have two problems: > > 1. I created the publ-imp-deu.lua and publ-imp-deu.mkvi files. If I > put them into the > ~/bin/context/tex/texmf-context/tex/context/base/mkiv/ directory, I > get the following two lines in the log: > ``` > publications> unknown library 'deu' > publications> no data definition file 'publ-imp-deu.lua' for 'deu' > ``` > If I put them into the directory where my thesis is, they seem to get > recognized, but I would very much like to reuse them and not have to > copy them to each project directory. What am I doing wrong? Try running mtxrun --generate to update the database. However, I think that texmf-context/... is a bad place to put local files because they can be overwritten by system update. It may be better to put them in $TEXMFHOME/tex/context/personal/... Aditya___ 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] Different authorconversion for citation alternatives and bibliographic entries
Hi there, My university has special requirements for the theses I submit. Layout, fonts etc. are pretty straightforward to set up in ConTeXt. The one part I'm struggling with is citations / bibliography. I have to use the german citation style with footnotes. Essentially the first time I cite something, I have to put the full entry in a footnote. From the second time on, I only have to put a shorter entry in the footnotes. I have two problems: 1. I created the publ-imp-deu.lua and publ-imp-deu.mkvi files. If I put them into the ~/bin/context/tex/texmf-context/tex/context/base/mkiv/ directory, I get the following two lines in the log: ``` publications> unknown library 'deu' publications> no data definition file 'publ-imp-deu.lua' for 'deu' ``` If I put them into the directory where my thesis is, they seem to get recognized, but I would very much like to reuse them and not have to copy them to each project directory. What am I doing wrong? 2. Entries in the bibliography and fist time citations must have 'normal' authorconversion, while consequent citations must have 'normalshort'. For consequent citations I defined the 'authortitle' alternative. In the thesis I have: ``` \usebtxdataset[default][literature.bib] \usebtxdefinitions[deu] \setupbtx[deu] ``` A snippet from the publ-imp-deu.mkvi: ``` \definebtx [deu:list] [deu] [authorconversion=normal] \definebtx [deu:cite] [deu] [authorconversion=normalshort, alternative=authortitle] \startsetups btx:deu:list:book {\sc \btxflush{author}}\btxcolon \btxflush{title} \btxdoif{subtitle}{\btxperiod\btxflush{subtitle}}\btxperiod \btxflush{address}\btxcolon \btxflush{publisher} \btxflush{year} \btxdoif{series}{ (\btxflush{series} \btxflush{volume})}\btxperiod \stopsetups ``` In the setup and definition, the fields I defined do get into the citation correctly, but the authorconversion remains 'normal'. If I comment out the lines which set up 'normal' authorconversion for the list, everything, including the bibliography and 'entry' type citations get 'normalshort'. Is that a bug or am I missing something? Thank you, Agoston ___ 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 ___