ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Bibliography in MKIV, custom rendering
@ 2017-08-11 14:01 Alan Braslau
  2017-08-11 18:58 ` Rik Kabel
  0 siblings, 1 reply; 13+ messages in thread
From: Alan Braslau @ 2017-08-11 14:01 UTC (permalink / raw)
  To: Gerion Entrup; +Cc: mailing list for ConTeXt users

Hello,

You find a need to modify the rendering of the bibliography as you are
misusing the bibtex data entry.

Here is your example, corrected:

1) @electronic is more appropriate than @misc;
2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.

Note that the only difference, in fact, between @electronic and @misc
is this optional field, organization. We get this from the bibtex
references and from the standard definitions in bibtex tools such as
jabref.

Your example did point out a correction that should now be in the APS
specification definitions in the latest version that can be found on
the Garden. Previously, a url (or doi) got included as a hyperlink
tag to the text "howpublished" field. The logic has been modified to
show the url (or doi) explicitly if present, in the absence of the
howpublished field.

Alan



\startbuffer [input]

@electronic{objective-c,
         organization = "Apple Inc.",
         note = "Online; accessed at 31-July-2017",
         title = "About Objective-C",
         url = 
"https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html",
         year = "2014"
}
\stopbuffer

\usebtxdataset[default][input.buffer]
\usebtxdefinitions[aps]

\setupinteraction [state=start]

\starttext
According to Apple Inc., Objective-C is the main programming language, 
when writing software for MacOS~\cite[objective-c].

\placelistofpublications

\showbtxdatasetcompleteness
\stoptext



-------- Forwarded Message --------
Subject: [NTG-context] Bibliography in MKIV, custom rendering
Date: Mon, 31 Jul 2017 04:23:16 +0200
From: Gerion Entrup <gerion.entrup-ctex@flump.de>
Reply-To: mailing list for ConTeXt users <ntg-context@ntg.nl>
To: ntg-context@ntg.nl

> Hi,
> 
> I need your help again. I've a bibliography and some entries
> references to websites. Unfortunately the URL is not always rendered
> and the name ist always parsed as name of a person, not from an
> organisation etc.
> 
> What I want to achieve is to use the standard aps style, but with
> additionally the following two rules:
> 1. The name is always rendered without abbrevations (I guess, this is 
> authorconversion=normal).
> 2. If an URL is given, it is always rendered.
> 
> My input is a bib-file. Here is a minimal example:
> 
> input.bib
> ```
> @misc{objective-c,
>         author = "Apple Inc.",
>         note = "Online; accessed at 31-July-2017",
>         title = "About Objective-C",
>         url =
> "https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html",
> year = "2014" }
> ```
> 
> test.tex
> ```
> \usebtxdataset[default][input.bib]
> \usebtxdefinitions[aps]
> \setupbtx[default:cite][alternative=num]
> \setupbtx[default:list][authorconversion=normal]
> 
> \starttext
> According to Apple Inc., Objective-C is the main programming
> language, when writing software for MacOS~\cite[objective-c].
> 
> \placelistofpublications
> \stoptext
> ```
> 
> I've tried to understand the manual, yout can see some of my attempts
> in the minimal example. But I don't get really far.
> 
> Can you give me a hint?
> 
> Gerion
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Bibliography in MKIV, custom rendering
@ 2017-07-31  2:23 Gerion Entrup
  2017-07-31 19:28 ` Gerion Entrup
  0 siblings, 1 reply; 13+ messages in thread
From: Gerion Entrup @ 2017-07-31  2:23 UTC (permalink / raw)
  To: ntg-context

Hi,

I need your help again. I've a bibliography and some entries references to 
websites. Unfortunately the URL is not always rendered and the name ist always 
parsed as name of a person, not from an organisation etc.

What I want to achieve is to use the standard aps style, but with additionally 
the following two rules:
1. The name is always rendered without abbrevations (I guess, this is 
authorconversion=normal).
2. If an URL is given, it is always rendered.

My input is a bib-file. Here is a minimal example:

input.bib
```
@misc{objective-c,
        author = "Apple Inc.",
        note = "Online; accessed at 31-July-2017",
        title = "About Objective-C",
        url = "https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Introduction/Introduction.html",
        year = "2014"
}
```

test.tex
```
\usebtxdataset[default][input.bib]
\usebtxdefinitions[aps]
\setupbtx[default:cite][alternative=num]
\setupbtx[default:list][authorconversion=normal]

\starttext
According to Apple Inc., Objective-C is the main programming language, when writing software for MacOS~\cite[objective-c].

\placelistofpublications
\stoptext
```

I've tried to understand the manual, yout can see some of my attempts in the 
minimal example. But I don't get really far.

Can you give me a hint?

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

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

end of thread, other threads:[~2017-08-14  2:50 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-11 14:01 Bibliography in MKIV, custom rendering Alan Braslau
2017-08-11 18:58 ` Rik Kabel
2017-08-12  8:54   ` Hans Hagen
2017-08-12 15:28     ` Rik Kabel
2017-08-12 15:48       ` Rik Kabel
2017-08-12 16:10         ` Hans Hagen
2017-08-13  2:38   ` Alan Braslau
2017-08-13  3:13     ` Rik Kabel
2017-08-13  7:34       ` Hans Hagen
2017-08-14  2:50       ` Alan Braslau
  -- strict thread matches above, loose matches on Subject: below --
2017-07-31  2:23 Gerion Entrup
2017-07-31 19:28 ` Gerion Entrup
2017-08-01 14:26   ` Hans Hagen

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