ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with Module Units
@ 2014-02-27 18:22 Fabrice Couvreur
  2014-02-27 21:43 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice Couvreur @ 2014-02-27 18:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]

Hi,
I see that there is no space between the words "pour"and "km".
Regards,
Fabrice


\usemodule[units]

\definetypeface [me] [rm] [serif] [pagella] [default]
\definetypeface [me] [ss] [sans]  [dejavu]  [default]
\definetypeface [me] [mm] [math]  [xits]    [default]
\setupbodyfont[me,12pt]

\starttext
Zeus désire se désaltérer avec un jus de planète pressée. La planète qu'il
va choisir dans le système solaire doit suffire à remplir à ras bord ses
deux verres de forme conique. Le premier verre a un rayon de base de 6000
\Unit \Kilo \Meter  pour une hauteur égale au rayon de la planète. Le
deuxième verre a un rayon de base égal à celui de la planète pour une
hauteur de 2000  \Unit \Kilo \Meter.

Le but de l'exercice est de trouver quelle planète sera sacrifiée.
\stoptext

[-- Attachment #1.2: Type: text/html, Size: 1241 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] 5+ messages in thread

* Re: Problem with Module Units
  2014-02-27 18:22 Problem with Module Units Fabrice Couvreur
@ 2014-02-27 21:43 ` Wolfgang Schuster
  2014-02-27 22:31   ` Fabrice
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2014-02-27 21:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 505 bytes --]


Am 27.02.2014 um 19:22 schrieb Fabrice Couvreur <fabrice1.couvreur@gmail.com>:

> Hi, 
> I see that there is no space between the words "pour"and "km". 

When you use the old units module you have to insert a control space with “\ ”, e.g.

\usemodule[units]

\starttext
6000  \Unit \Kilo \Meter \ or 2000  \Unit \Kilo \Meter.
\stoptext

but when you use MkIV you can use the predefined \unit command:

\starttext
\unit{6000 kilometer} or \unit{2000 kilo meter}
\stoptext

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1377 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] 5+ messages in thread

* Re: Problem with Module Units
  2014-02-27 21:43 ` Wolfgang Schuster
@ 2014-02-27 22:31   ` Fabrice
  2014-02-27 22:52     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Fabrice @ 2014-02-27 22:31 UTC (permalink / raw)
  To: ntg-context

Hi Wolfgang,
Firstly thank you for the quick responses you give.
With the old version is ok.
But if I compile the code you gave with the new version, I get the 
letter "r" is really strange!
___________________________________________________________________________________
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] 5+ messages in thread

* Re: Problem with Module Units
  2014-02-27 22:31   ` Fabrice
@ 2014-02-27 22:52     ` Wolfgang Schuster
  2014-02-27 23:07       ` Fabrice
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2014-02-27 22:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 27.02.2014 um 23:31 schrieb Fabrice <couvreur.fabrice@wanadoo.fr>:

> Hi Wolfgang,
> Firstly thank you for the quick responses you give.
> With the old version is ok.
> But if I compile the code you gave with the new version, I get the letter "r" is really strange!

Don’t load the \units module when you use the new \unit command, you can only use one
mechanism because both aren’t compatible.

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] 5+ messages in thread

* Re: Problem with Module Units
  2014-02-27 22:52     ` Wolfgang Schuster
@ 2014-02-27 23:07       ` Fabrice
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice @ 2014-02-27 23:07 UTC (permalink / raw)
  To: ntg-context

It is ok, thanks.
___________________________________________________________________________________
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] 5+ messages in thread

end of thread, other threads:[~2014-02-27 23:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-27 18:22 Problem with Module Units Fabrice Couvreur
2014-02-27 21:43 ` Wolfgang Schuster
2014-02-27 22:31   ` Fabrice
2014-02-27 22:52     ` Wolfgang Schuster
2014-02-27 23:07       ` Fabrice

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).