ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Otared Kavian <otared@gmail.com>
Subject: Re: Nabla operator appears italic in formula
Date: Sun, 24 Mar 2013 15:17:15 +0100	[thread overview]
Message-ID: <514F0AEB.1080303@wxs.nl> (raw)
In-Reply-To: <D4EF2DA6-8A8B-47A2-A144-B54ACFA952E5@gmail.com>

On 3/24/2013 12:23 PM, Otared Kavian wrote:
>
> On 24 mars 2013, at 11:24, Hans Hagen <pragma@wxs.nl> wrote:
>
>> On 3/23/2013 9:34 PM, Xenia wrote:
>>> Dear context list,
>>>
>>> using the nabla symbol ∇ in formulas, I wondered why it looks italic and
>>> not upright as for example in [1].
>>> I attach an example.
>>
>> Because that's how it's defined in math italics ... is nabla always supposed to be upright in standard math italic mode?
>>
>> (I'll change the \nable definition to \unexpanded\def\nabla{∇}.)
>>
>> Hans
>
> Hi,
>
> \nabla should be italic if all other math greek symbols, like \Omega, \Gamma, \sum, ect are set in italic. Otherwise \nabla and all such symbols should be upright.
> Would it be possible to make this optional in math italics, something like
> 	\setupmathematics[mathsymbols=italic]
> or
> 	\setupmathematics[mathsymbols=upright]
> Maybe this should be set when one chooses the greek letters to be italic or upright in mathematics.

That is already there

\setupmathematics
   [lcgreek=italic,
    ucgreek=normal]

(normal, italic, none)

I've added sygreek so that one can also influence the nable and 
differential (default normal). I tested with:

\starttext
     \startTEXpage
         \startlines
             \type{--}: \mathematics{    \nabla \phi = ∇ ϕ = 0}
             \type{it}: \mathematics{\it \nabla \phi = ∇ ϕ = 0}
             \type{bf}: \mathematics{\bf \nabla \phi = ∇ ϕ = 0}
             \type{bi}: \mathematics{\bi \nabla \phi = ∇ ϕ = 0}
             \type{tf}: \mathematics{\tf \nabla \phi = ∇ ϕ = 0}
             \blank
             \type{--}: \mathematics{    \mathgreekupright \nabla \phi = 
∇ ϕ = 0}
             \type{it}: \mathematics{\it \mathgreekupright \nabla \phi = 
∇ ϕ = 0}
             \type{bf}: \mathematics{\bf \mathgreekupright \nabla \phi = 
∇ ϕ = 0}
             \type{bi}: \mathematics{\bi \mathgreekupright \nabla \phi = 
∇ ϕ = 0}
             \type{tf}: \mathematics{\tf \mathgreekupright \nabla \phi = 
∇ ϕ = 0}
             \blank
             \setupmathematics[sygreek=italic]
             \type{--}: \mathematics{    \nabla \phi = ∇ ϕ = 0}
             \type{it}: \mathematics{\it \nabla \phi = ∇ ϕ = 0}
             \type{bf}: \mathematics{\bf \nabla \phi = ∇ ϕ = 0}
             \type{bi}: \mathematics{\bi \nabla \phi = ∇ ϕ = 0}
             \type{tf}: \mathematics{\tf \nabla \phi = ∇ ϕ = 0}
         \stoplines
     \stopTEXpage
\stoptext


Hans


-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2013-03-24 14:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-23 20:34 Xenia
2013-03-24 10:24 ` Hans Hagen
2013-03-24 11:23   ` Otared Kavian
2013-03-24 14:17     ` Hans Hagen [this message]
2013-03-24 20:18       ` Xenia

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=514F0AEB.1080303@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=otared@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).