ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] APA 7 and https
@ 2023-12-14 14:34 Oliver Marugg
  2023-12-15 22:07 ` [NTG-context] " rauricastone
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Marugg @ 2023-12-14 14:34 UTC (permalink / raw)
  To: ntg-context mailing list


[-- Attachment #1.1: Type: text/plain, Size: 460 bytes --]

Hi 

I am quite new with ConTeXt, coming from LaTeX. I really like it and it is sooo fast;-). I am currently preparing the framework for the typeset of a research paper with a bibtex bibliography and current apa7 citations. 

How to achieve a change the url in bibliographies DOI from doi: to https://doi.org/  in the list of publications and change the url path in PDF from http: to https:// as recommended in APA7?

Any hints?

Many thanks,

Oliver

[-- Attachment #1.2: Type: text/html, Size: 817 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: APA 7 and https
  2023-12-14 14:34 [NTG-context] APA 7 and https Oliver Marugg
@ 2023-12-15 22:07 ` rauricastone
  2023-12-15 22:17   ` rauricastone
  2023-12-16 21:33   ` Alan Braslau via ntg-context
  0 siblings, 2 replies; 5+ messages in thread
From: rauricastone @ 2023-12-15 22:07 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: APA 7 and https
  2023-12-15 22:07 ` [NTG-context] " rauricastone
@ 2023-12-15 22:17   ` rauricastone
  2023-12-16 21:33   ` Alan Braslau via ntg-context
  1 sibling, 0 replies; 5+ messages in thread
From: rauricastone @ 2023-12-15 22:17 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: APA 7 and https
  2023-12-15 22:07 ` [NTG-context] " rauricastone
  2023-12-15 22:17   ` rauricastone
@ 2023-12-16 21:33   ` Alan Braslau via ntg-context
  2023-12-17  8:05     ` Oliver Marugg
  1 sibling, 1 reply; 5+ messages in thread
From: Alan Braslau via ntg-context @ 2023-12-16 21:33 UTC (permalink / raw)
  To: rauricastone; +Cc: mailing list for ConTeXt users, 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 -0000
rauricastone@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [NTG-context] Re: APA 7 and https
  2023-12-16 21:33   ` Alan Braslau via ntg-context
@ 2023-12-17  8:05     ` Oliver Marugg
  0 siblings, 0 replies; 5+ messages in thread
From: Oliver Marugg @ 2023-12-17  8:05 UTC (permalink / raw)
  To: Alan Braslau; +Cc: mailing list for ConTeXt users

Hi Alan

Many thanks for your solution. 

Oliver 

> Am 16.12.2023 um 22:33 schrieb Alan Braslau <alan.braslau@icloud.com>:
> 
> 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 -0000
> rauricastone@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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-12-18  2:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-14 14:34 [NTG-context] APA 7 and https Oliver Marugg
2023-12-15 22:07 ` [NTG-context] " rauricastone
2023-12-15 22:17   ` rauricastone
2023-12-16 21:33   ` Alan Braslau via ntg-context
2023-12-17  8:05     ` Oliver Marugg

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).