Re: [NTG-context] Bibliography in MKIV, custom rendering

2017-08-11 Thread Rik Kabel

On 2017-08-11 10:01, Alan Braslau wrote:

...


2) Apple Inc. is not a name so you should not be using author:
organization is more appropriate.


I do not think that this should be the case.

APA and Chicago/Turbanian (and doubtless others) accept association 
names as author names, and provide rules for handling them.


The lack of either an author or an editor is currently flagged in 
ConTeXt as an error for books and perhaps other bibtex entry types as 
well. Or do you mean to apply this recommendation to only the electronic 
type or some other limited subset of types?


Perhaps it is better to use the association name as an author and 
protect it with a layer of curlies or quotation marks, as {{Apple, 
Inc.}}, "{Apple, Inc.}", or '{Apple, Inc.}', any one of which will do 
the job and also serve to prevent what would surely be unwanted 
abbreviation for styles that abbreviate what are parsed as given names.


--
Rik
___
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] tilde in math

2017-08-11 Thread Hans Hagen

On 8/11/2017 7:45 PM, Alan Braslau wrote:

On Fri, 11 Aug 2017 16:15:06 +0200
Hans Hagen  wrote:


Question: does anyone rely on ~ being active and a nbsp in math mode?


Hi Hans,

This is quite common practice in the TeX world.

I have configured my text editor to highlight the utf-8 nbsp, and I use
it largely in text mode. However, it is often my practice to still use
the tilde in math mode, as its explicit presence is always there for a
reason, in order to achieve some effect. So I am accustomed to
interpreting the tilde in math mode in this way.

The question as to whether or not this use within ConTeXt should be
promoted/encouraged is another one. Let me simply suggest that many
users simply copy equations from one source to another, and so it may
be valuable to remain compatible with (La)TeX usage.
it can become an option some day then ... because it permits 
auto-resolving ~= to the proper symbol (as we do with := and such)


Hans


-
  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] tilde in math

2017-08-11 Thread Alan Braslau
On Fri, 11 Aug 2017 16:15:06 +0200
Hans Hagen  wrote:

> Question: does anyone rely on ~ being active and a nbsp in math mode?

Hi Hans,

This is quite common practice in the TeX world.

I have configured my text editor to highlight the utf-8 nbsp, and I use
it largely in text mode. However, it is often my practice to still use
the tilde in math mode, as its explicit presence is always there for a
reason, in order to achieve some effect. So I am accustomed to
interpreting the tilde in math mode in this way.

The question as to whether or not this use within ConTeXt should be
promoted/encouraged is another one. Let me simply suggest that many
users simply copy equations from one source to another, and so it may
be valuable to remain compatible with (La)TeX usage.

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
___

[NTG-context] tilde in math

2017-08-11 Thread Hans Hagen

Hi,

Question: does anyone rely on ~ being active and a nbsp in math mode?

Hans

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

[NTG-context] Bibliography in MKIV, custom rendering

2017-08-11 Thread Alan Braslau
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 
Reply-To: mailing list for ConTeXt users 
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
___

Re: [NTG-context] semicolon in mathmode

2017-08-11 Thread Hans Hagen

On 8/10/2017 10:34 PM, Aditya Mahajan wrote:

On Thu, 10 Aug 2017, Alan Bowen wrote:


Is there a way to remove the thinspace after a semicolon when it is
followed by a number?
It does not seem to be covered by the autopunctuation key in
\setupmathematics.


For a one-off solution, $1{;}2$ should work.

Do we need support for this? That is: treat ; the same as , when enabled?


-
  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] How can I add “page # of ##” on my document ?

2017-08-11 Thread Fabrice Couvreur
Hi Peter and Aditya,

"You run the command "ConTeXt Full" instead of "ConTeXt"

It works !
Thank you

Fabrice

2017-08-11 9:30 GMT+02:00 Peter Münster :

> On Thu, Aug 10 2017, Aditya Mahajan wrote:
>
> > You need to remove the --once call from the context call. (Not sure
> > how to do this in Emacs)
>
> You run the command "ConTeXt Full" instead of "ConTeXt".
>
> --
>Peter
> 
> ___
> 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] How can I add “page # of ##” on my document ?

2017-08-11 Thread Peter Münster
On Thu, Aug 10 2017, Aditya Mahajan wrote:

> You need to remove the --once call from the context call. (Not sure
> how to do this in Emacs)

You run the command "ConTeXt Full" instead of "ConTeXt".

-- 
   Peter
___
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
___