* Missing space between digit and unit with the new unit-command
@ 2011-06-30 12:52 yoraxe
2011-06-30 20:43 ` Wolfgang Schuster
0 siblings, 1 reply; 6+ messages in thread
From: yoraxe @ 2011-06-30 12:52 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 297 bytes --]
Hey,
I was happy to have a new (and easier) unit-command, but now I miss the
space that was between the digits and the unit in the unit-module.
I attach the old (unit1) and new variant (unit2) with tex- and pdf-files.
Do I type it in a wrong way or is it possible to fix this?
Thanks,
Yoraxe
[-- Attachment #2: unit1.pdf --]
[-- Type: application/pdf, Size: 8045 bytes --]
[-- Attachment #3: unit1.tex --]
[-- Type: text/x-tex, Size: 67 bytes --]
\usemodule[units]
\starttext
$35\Kilo\Gram\Cubic\Meter$
\stoptext
[-- Attachment #4: unit2.pdf --]
[-- Type: application/pdf, Size: 10666 bytes --]
[-- Attachment #5: unit2.tex --]
[-- Type: text/x-tex, Size: 78 bytes --]
\starttext
$35\unit{kilo gram cubic meter}$
\blank
$35\unit{kgm^3}$
\stoptext
[-- Attachment #6: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Missing space between digit and unit with the new unit-command
2011-06-30 12:52 Missing space between digit and unit with the new unit-command yoraxe
@ 2011-06-30 20:43 ` Wolfgang Schuster
2011-06-30 22:33 ` yoraxe
2011-07-01 16:16 ` Hans Hagen
0 siblings, 2 replies; 6+ messages in thread
From: Wolfgang Schuster @ 2011-06-30 20:43 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 30.06.2011 um 14:52 schrieb yoraxe:
> Hey,
>
> I was happy to have a new (and easier) unit-command, but now I miss the
> space that was between the digits and the unit in the unit-module.
Put the number in the argument of the command.
\starttext
\unit{35 kilogram cubic meter}
\stoptext
@Hans: Can you add a option to replace \cdot with \thinspace, e.g. unitseparator=small|medium|...|cdot
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Missing space between digit and unit with the new unit-command
2011-06-30 20:43 ` Wolfgang Schuster
@ 2011-06-30 22:33 ` yoraxe
2011-07-01 6:15 ` Wolfgang Schuster
2011-07-01 16:16 ` Hans Hagen
1 sibling, 1 reply; 6+ messages in thread
From: yoraxe @ 2011-06-30 22:33 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 30.06.2011 22:43, schrieb Wolfgang Schuster:
>
> Am 30.06.2011 um 14:52 schrieb yoraxe:
>
>> Hey,
>>
>> I was happy to have a new (and easier) unit-command, but now I miss the
>> space that was between the digits and the unit in the unit-module.
>
> Put the number in the argument of the command.
>
> \starttext
> \unit{35 kilogram cubic meter}
> \stoptext
Ok, thanks, for this minimal example it works. But what do I have to
type instead of
\unit{10^{-3} kilogram cubic meter}
(or
\unit{10^{-3} kgm²}
)
? This does not work for me.
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Missing space between digit and unit with the new unit-command
2011-06-30 22:33 ` yoraxe
@ 2011-07-01 6:15 ` Wolfgang Schuster
2011-07-01 17:27 ` yoraxe
0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2011-07-01 6:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 458 bytes --]
Am 01.07.2011 um 00:33 schrieb yoraxe:
> Ok, thanks, for this minimal example it works. But what do I have to
> type instead of
>
> \unit{10^{-3} kilogram cubic meter}
>
> (or
> \unit{10^{-3} kgm²}
> )
>
> ? This does not work for me.
It’s “10e-3”, you can find a list a valid input in the manual [1] for the \digits
commands which is now included in \unit.
[1] http://www.pragma-ade.com/general/magazines/mag-0003.pdf
Wolfgang
[-- Attachment #1.2: Type: text/html, Size: 842 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Missing space between digit and unit with the new unit-command
2011-06-30 20:43 ` Wolfgang Schuster
2011-06-30 22:33 ` yoraxe
@ 2011-07-01 16:16 ` Hans Hagen
1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2011-07-01 16:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 30-6-2011 10:43, Wolfgang Schuster wrote:
>
> Am 30.06.2011 um 14:52 schrieb yoraxe:
>
>> Hey,
>>
>> I was happy to have a new (and easier) unit-command, but now I miss the
>> space that was between the digits and the unit in the unit-module.
>
> Put the number in the argument of the command.
>
> \starttext
> \unit{35 kilogram cubic meter}
> \stoptext
>
> @Hans: Can you add a option to replace \cdot with \thinspace, e.g. unitseparator=small|medium|...|cdot
ok, we will have (normal=>cdot):
\starttext
\unit{35 kilogram cubic meter}
\setupunits[unit][separator=small]
\unit{35 kilogram cubic meter}
\setupunits[unit][separator=none]
\unit{35 kilogram cubic meter}
\stoptext
(plus a low level installer)
-----------------------------------------------------------------
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Missing space between digit and unit with the new unit-command
2011-07-01 6:15 ` Wolfgang Schuster
@ 2011-07-01 17:27 ` yoraxe
0 siblings, 0 replies; 6+ messages in thread
From: yoraxe @ 2011-07-01 17:27 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 01.07.2011 08:15, schrieb Wolfgang Schuster:
>
> Am 01.07.2011 um 00:33 schrieb yoraxe:
>
>> Ok, thanks, for this minimal example it works. But what do I have to
>> type instead of
>>
>> \unit{10^{-3} kilogram cubic meter}
>>
>> (or
>> \unit{10^{-3} kgm²}
>> )
>>
>> ? This does not work for me.
>
> It’s “10e-3”, you can find a list a valid input in the manual [1] for
> the \digits
> commands which is now included in \unit.
>
> [1] http://www.pragma-ade.com/general/magazines/mag-0003.pdf
Thanks a lot. Most programms (also the old digit-module) interpret
“35e-3” as “35\cdot 10^{-3}” but the new unit-command only sets the
“^{-3}“ after the number without “10·“. That's why I was confused. =D
Yoraxe
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-07-01 17:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-30 12:52 Missing space between digit and unit with the new unit-command yoraxe
2011-06-30 20:43 ` Wolfgang Schuster
2011-06-30 22:33 ` yoraxe
2011-07-01 6:15 ` Wolfgang Schuster
2011-07-01 17:27 ` yoraxe
2011-07-01 16:16 ` 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).