ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan Braslau <braslau.list@comcast.net>
To: Tomas Badan <tbadan@gmail.com>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Bibliography: I think module [aps] is rendering incorrectly the electronic category and others too
Date: Thu, 21 Mar 2019 17:33:35 -0600	[thread overview]
Message-ID: <20190321173335.4dcb9262@comcast.net> (raw)
In-Reply-To: <CAN-i45+e7FWR9q+EaAV1fK+n6hKmrQZGHLeMDO-52+hZPuXXPw@mail.gmail.com>

On Thu, 21 Mar 2019 13:16:04 -0300
Tomas Badan <tbadan@gmail.com> wrote:

> Looking at context documentations and source code, it says that for
> electronic category we have:
> * Required fields: title
> * Optional fields: address, author, howpublished, month, note,
> organization, url, year, doi
> 
> So, when I run this simple code:
> 
>     \startbuffer[example]
>     @ELECTRONIC {example,
>         title = "One title",
>         url = "http://www.example.org",
>     }
>     \stopbuffer
> 
>     \usebtxdefinitions[aps]
> 
>     \definebtxdataset[basic]
>     \usebtxdataset[basic][example.buffer]
>     \definebtxrendering
>         [basic]
>         [aps]
>         [dataset=basic]
> 
>     \setupbtx[dataset=basic]
>     \nocite[example]
> 
>     \starttext
>     \placelistofpublications[basic]
>     \stoptext
> 
> I've got an output that is similar with:
> 
>     [1] , One title, http://www.example.org (unpublished)
> 
> which seems incorrect to me (author should not be rendered, and I was
> expecting year not to be accounted for too). Am I doing something
> wrong?
> 
> Thanks in advance
> Tomás
> 
> PS. Original question was posted here:
> https://tex.stackexchange.com/questions/480416/bibliography-what-is-the-correct-way-to-setup-and-invoke-the-category-electron


The APS style definitions currently expect:
"author", "collaboration", "organization"

and, indeed, if there is none, it should not include the comma.
So the texdefinition (in publ-imp-aps.mkvi) should be changed to:

\starttexdefinition unexpanded btx:aps:author
    \btxdoif {author} {
        \btxflush{author}
        \btxcomma
    }
\stoptexdefinition



Secondly, why do you expect not to have (unpublished)?
The APS style guides suggest that unpublished material
should be labeled "unpublished" or "private communication".

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
___________________________________________________________________________________

      reply	other threads:[~2019-03-21 23:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-21 16:16 Tomas Badan
2019-03-21 23:33 ` Alan Braslau [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190321173335.4dcb9262@comcast.net \
    --to=braslau.list@comcast.net \
    --cc=ntg-context@ntg.nl \
    --cc=tbadan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).