[NTG-context] Re: APA 7 and https
Hi I found a solution to reach APA7 list and links. Using $PATH/ConTeXtPATH/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi in line 1306-1312, where \starttexdefinition mutable protected btx:apa:doi \texdefinition {btx:format:goto} { url(https://doi.org/\btxflush{doi}) } { \hyphenatedurl{https://\btxflush{doi}} } \stoptexdefinition Change: url(http://dx.doi.org/\btxflush{doi}) to url(https://doi.org/\btxflush{doi}) and \hyphenatedurl{doi:\btxflush{doi}} to \hyphenatedurl{https://\btxflush{doi}}. With this two changes the correct format in the list of publications is shown according apa7 and as well https links instead of http links will be generated, which is also needed in apa7. Not all apa7 definitions are yet reach with this changes, but its a small step towards. Merry Christmas. Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: APA 7 and https
Sorry I missed to add doi.org at hyphenatedurl, now the whole block shows: \starttexdefinition mutable protected btx:apa:doi \texdefinition {btx:format:goto} { url(https://doi.org/\btxflush{doi}) } { \hyphenatedurl{https://doi.org/\btxflush{doi}} } \stoptexdefinition ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: APA 7 and https
A "better" solution is to put doi = {https://doi.org/__doi__}, in your bibtex database but I would actually use url = {https://doi.org/__doi__}, Not all editors want the complete url for the doi, but some do. The current scheme lets the user define url= and doi= as they wish (and even both) and does not impose a particular format. Alan On Fri, 15 Dec 2023 22:07:25 - rauricast...@gmail.com wrote: > Hi > > I found a solution to reach APA7 list and links. > > Using > $PATH/ConTeXtPATH/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi > in line 1306-1312, where \starttexdefinition mutable protected > btx:apa:doi \texdefinition {btx:format:goto} { > url(https://doi.org/\btxflush{doi}) > } { >\hyphenatedurl{https://\btxflush{doi}} > } > \stoptexdefinition > > Change: > url(http://dx.doi.org/\btxflush{doi}) to > url(https://doi.org/\btxflush{doi}) and > \hyphenatedurl{doi:\btxflush{doi}} to > \hyphenatedurl{https://\btxflush{doi}}. > > With this two changes the correct format in the list of publications > is shown according apa7 and as well https links instead of http links > will be generated, which is also needed in apa7. Not all apa7 > definitions are yet reach with this changes, but its a small step > towards. > > Merry Christmas. > > Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: APA 7 and https
Hi Alan Many thanks for your solution. Oliver > Am 16.12.2023 um 22:33 schrieb Alan Braslau : > > A "better" solution is to put > > doi = {https://doi.org/__doi__}, > > in your bibtex database > > but I would actually use > > url = {https://doi.org/__doi__}, > > Not all editors want the complete url for the doi, but some do. > The current scheme lets the user define url= and doi= as they wish (and > even both) and does not impose a particular format. > > Alan > > > > On Fri, 15 Dec 2023 22:07:25 - > rauricast...@gmail.com wrote: > >> Hi >> >> I found a solution to reach APA7 list and links. >> >> Using >> $PATH/ConTeXtPATH/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi >> in line 1306-1312, where \starttexdefinition mutable protected >> btx:apa:doi \texdefinition {btx:format:goto} { >>url(https://doi.org/\btxflush{doi}) >>} { >> \hyphenatedurl{https://\btxflush{doi}} >>} >> \stoptexdefinition >> >> Change: >> url(http://dx.doi.org/\btxflush{doi}) to >> url(https://doi.org/\btxflush{doi}) and >> \hyphenatedurl{doi:\btxflush{doi}} to >> \hyphenatedurl{https://\btxflush{doi}}. >> >> With this two changes the correct format in the list of publications >> is shown according apa7 and as well https links instead of http links >> will be generated, which is also needed in apa7. Not all apa7 >> definitions are yet reach with this changes, but its a small step >> towards. >> >> Merry Christmas. >> >> Oliver ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___