![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
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 ---- TIA. Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 04.10.2012 um 11:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
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
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
On Thu, 04 Oct 2012 11:32:20 +0200, Wolfgang Schuster
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
Thanks, this works (I had to renew ConTeXt). Best regards, Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
![](https://secure.gravatar.com/avatar/ac3fbaf0a287c4cffbc9f18fa931586c.jpg?s=120&d=mm&r=g)
\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
Am 04.10.2012 um 11:07 schrieb Procházka Lukáš Ing. - Pontex s. r. o.
: 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
![](https://secure.gravatar.com/avatar/d6e7462bd4209f9c4cd08271985a50df.jpg?s=120&d=mm&r=g)
On Thu, 04 Oct 2012 12:04:14 +0200, Alan BRASLAU
\startformula a = 21407 g \stopformula
:)
The units code should certainly know how to deal with "N"...
Alan
- But "g" is shown like a variable (here: like 'a') - unwanted... I must substitute "N" -> "Newton"... Lukas -- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
participants (3)
-
Alan BRASLAU
-
Procházka Lukáš Ing. - Pontex s. r. o.
-
Wolfgang Schuster