ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alan BRASLAU <alan.braslau@cea.fr>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: wolfgang.schuster@gmail.com
Subject: Re: Math and units
Date: Thu, 4 Oct 2012 12:04:14 +0200	[thread overview]
Message-ID: <20121004120414.1341dcb8@sole> (raw)
In-Reply-To: <56D29771-7617-49C8-ABDD-987168C7D860@gmail.com>

\startformula
  a = 21407 g
\stopformula

:)

The units code should certainly know how to deal with "N"...

Alan


On Thu, 4 Oct 2012 11:32:20 +0200
Wolfgang Schuster <wolfgang.schuster@gmail.com> wrote:

> 
> Am 04.10.2012 um 11:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
> <LPr@pontex.cz>:
> 
> > Hello,
> > 
> > which is the most correct way to display units (here: kN) in math
> > formula?
> > 
> > ----
> > \starttext
> >  \startformula
> >    a = 210 kN % "kN" is shown like a variable (here: like 'a'),
> > which is unwanted \stopformula
> > 
> >  \startformula
> >    a = 210 \unit{kN} % No unit is displayed (?!)
> >  \stopformula
> > 
> >  \startformula
> >    a = 210 \text{~kN} % '~' required?, ugly way
> >  \stopformula
> > \stoptext
> > ----
> 
> 
> The units code doesn’t know how to deal with “N” but you can use the
> full name of the unit (can also be lowercase) or “n” which is also
> accepted.
> 
> \starttext
> 
> \startformula
>   a = \unit{210 kilo Newton}
> \stopformula
> 
> \startformula
>   a = 210 \unit{kilo Newton}
> \stopformula
> 
> \startformula
>   a = 210 \unit{k Newton}
> \stopformula
> 
> \startformula
>   a = 210 \unit{kn}
> \stopformula
> 
> \stoptext
> 
> Wolfgang

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

  parent reply	other threads:[~2012-10-04 10:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-04  9:07 Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-04  9:32 ` Wolfgang Schuster
2012-10-04  9:56   ` Procházka Lukáš Ing. - Pontex s. r. o.
2012-10-04 10:04   ` Alan BRASLAU [this message]
2012-10-04 10:12     ` Procházka Lukáš Ing. - Pontex s. r. o.

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=20121004120414.1341dcb8@sole \
    --to=alan.braslau@cea.fr \
    --cc=ntg-context@ntg.nl \
    --cc=wolfgang.schuster@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).