Re: [NTG-context] beta

2011-06-12 Thread 李延瑞
2011/6/9 Li Yanrui (李延瑞) liyanrui...@gmail.com:
 2011/6/9 Hans Hagen pra...@wxs.nl:
 Hi,

 I uploaded a beta.


 The luatex-plain format has been broken. I use the following file to
 generate format.

 \input plain
 \directlua {tex.enableprimitives('', tex.extraprimitives())}
 \pdfoutput=1
 \everyjob \expandafter {%
    \the\everyjob
    \input luatex-basics\relax
    \input luatex-fonts\relax
    \input luatex-mplib\relax
 }
 \edef\fmtversion{\fmtversion+luatex}
 \dump

 During luatex run I get an error:

 ! LuaTeX error 
 ...pt/context/tex/texmf-context/tex/generic/context/luatex-fonts-merged.lua:2655:
 unexpected symbol near '.

 I think local table.setmetatableindex(t,f) in the
 luatex-fonts-merged.lua should be local function
 table.setmetatableindex(t,f).

 After I modified as above, some simple examples can be compiled.
 However I get an error again when I try to use CJK fonts. For example:

 \font\song=AdobeSongStd-Light
 \bye

 The error message is ! LuaTeX error
 ...-context/tex/generic/context/luatex-fonts-merged.lua:4466: attempt
 to index local 'unicodevector' (a nil value)..


I have updated the beta to 2011.06.11 and used luatex-plain.tex to
generate the format but the same problems still exist.

-- 
Best regards,

Li Yanrui (李延瑞)
___
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
___

Re: [NTG-context] beta

2011-06-12 Thread Otared Kavian
Hi Hans,

Just out of curioisity I tested your example, but mkiv stopped with the error:

! Undefined control sequence.
system   tex  error on line 14 in file units-math-export.tex: 
Undefined control sequence ...
l.14 $10\su
   {km/h}$

Probably I am being somewhat dumb… since the module « dimenesions » is not 
present in the minimals. Has one to define \su somewhere?
I am reporting this upon using ConTeXt  ver: 2011.06.09 12:49 MKIV.

Best regards: OK

On 11 juin 2011, at 16:54, Hans Hagen wrote:

 Hi,
 
 In the process of extending math export I decided to finish and integrate an 
 old experiment with units. Details can change as can configuration.
 
 \usemodule[dimensions]
 \setupbackend[export=yes]
 
 \starttext
 
 \startlines
 $10\su{km/h}$
 $\su{10 km/h}$
 \su{10 km/h}
 10\su{km/h}
 10 \su{km/h}
 $10 \su{km/h}$
 10 \su{KiloMeter/Hour}
 10 \su{kilometer/hour}
 10 \su{km/h}
 10 \su{kilometer per hour}
 10 \su{km / h}
 10 \su{ km / h }
 10 \su{km/ms2}
 10 \su{meter per second}
 10 \su{cubic meter}
 10 \su{cubic meter per second}
 10 \su{cubic meter / second}
 $10 \su{cubic meter / second}$
 30 \su{kilo pascal }
 30 \su{kilo pascal square meter / second}
 30 \su{kilo pascal square meter / kelvin second}
 \su{30 kilo pascal square meter / kelvin second}
 $30 \su{kilo pascal square meter / kelvin second }$
 30 \su{crap}
 30 \su{AC}
 $ \frac{10 \su{m/s}}{20 \su{m/s}} $
 {\ss 30 \su{kilo pascal square meter / second kelvin}}
 \stoplines
 
 \stoptext
 
 I might decide to push it in the core. The su is an abbreviation for 
 scientific unit as we already have \unit (which I like more) and \dim is also 
 taken. Of course \u would be even nicer but that's a accent placement (ok, we 
 could drop all those as we have utf). Using two character names is not handy 
 as they look like language switches.
 
 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
 ___

%%
Otared Kavian
Département de Mathématiques
Université de Versailles Saint-Quentin
Bâtiment Fermat
45 avenue des Etats Unis
78035 Versailles cedex

Téléphone: +33 1 39 25 46 42
Secrétariat: +33 1 39 25 46 44 
Secrétariat: +33 1 39 25 46 46

e-mail: otared.kav...@math.uvsq.fr




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


Re: [NTG-context] beta

2011-06-12 Thread Marco
On 2011-06-12 Otared Kavian ota...@gmail.com wrote:

 Probably I am being somewhat dumb… since the module « dimenesions » is not
 present in the minimals. Has one to define \su somewhere? I am reporting
 this upon using ConTeXt  ver: 2011.06.09 12:49 MKIV.

Read the subject ;)

And give it a shot with 2011.06.11 16:45

Marco


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

[NTG-context] verbatim text in MkIV and \installprettytype...

2011-06-12 Thread Julian Becker
Recently, I tried to typeset some verbatim MATLAB source codes in MkIV, but
I can't seem to be able to grasp the concept of pretty printers.
All the sample codes I found on the net/wiki/mailing list don't compile,
complaining that \installprettytype is an unknown command...?!

Is there any module I have to load first or something I missed in the wiki?
Or can anyone provide me with a minimalistic example?

Best regards,
Julian
___
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
___

Re: [NTG-context] beta

2011-06-12 Thread Hans Hagen

On 11-6-2011 5:12, Wolfgang Schuster wrote:


Am 11.06.2011 um 16:54 schrieb Hans Hagen:


Hi,

In the process of extending math export I decided to finish and integrate an 
old experiment with units. Details can change as can configuration.

[...]

I might decide to push it in the core. The su is an abbreviation for scientific 
unit as we already have \unit (which I like more) and \dim is also taken. Of 
course \u would be even nicer but that's a accent placement (ok, we could drop 
all those as we have utf). Using two character names is not handy as they look 
like language switches.


Nice but i suggest to use \si as name for the command.


I don't like that one ... we're not exclusively dealing with si units 
and it's also a language tag.



What’s still missing is a reimplementation of the \digits macro where you have 
more control about the decimal and thousand separator and a few more options.


I have a scanner for that as well (needs to be integrated)

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
___


Re: [NTG-context] beta

2011-06-12 Thread Hans Hagen

On 11-6-2011 5:23, Vedran Miletić wrote:


Also +1, it would be cool to have something similar to siunitx[1] in
terms of functionality.


I don't know that one but I seldom model from something else anyway (no 
fun and no time to follow all that is around) .. I'd rather improve what 
we have (and the units module has a rather long history in context). 
Also, I want to stay away from too much tex hackery as in mkiv we follow 
a different approach. One thing that I need to add is
cultural elements (present in the units module and needed for 
educational texts etc).


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
___

Re: [NTG-context] beta

2011-06-12 Thread Otared Kavian

On 12 juin 2011, at 09:52, Marco wrote:

 On 2011-06-12 Otared Kavian ota...@gmail.com wrote:
 
 Probably I am being somewhat dumb… since the module « dimenesions » is not
 present in the minimals. Has one to define \su somewhere? I am reporting
 this upon using ConTeXt  ver: 2011.06.09 12:49 MKIV.
 
 Read the subject ;)
 
 And give it a shot with 2011.06.11 16:45
 
 Marco

Thanks…
I didn't notice the new beta yesterday.
Indeed it works as expected, and it's great!

Best regards: OK___
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
___

Re: [NTG-context] verbatim text in MkIV and \installprettytype...

2011-06-12 Thread Marco
On  2011-06-12   Julian  Becker  becker.jul...@gmail.com
wrote:

 Recently, I tried to typeset some verbatim MATLAB source
 codes in MkIV, but I can't  seem to be able to grasp the
 concept of pretty printers. All the sample codes I found
 on the net/wiki/mailing  list don't compile, complaining
 that \installprettytype is an unknown command...?!

It's for  mkii. It  was removed  from mkiv  several months
ago. Please someone correct me if I'm wrong. You can write
your pretty printer in lua (visualizer) [1].

 Is there any module I have to load first or something I?
 missed  in the  wiki Or  can anyone  provide me  with a?
 minimalistic example   ?

Not  that flexible,  but easy  to use  and broad  language
coverage has the vim module [2].

Marco

[1] http://wiki.contextgarden.net/Custom_pretty_printer
[2] http://dl.contextgarden.net/modules/t-vim/doc/context/third/vim/vim.txt


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


[NTG-context] ∫ is not displayed correctly compared to $\int$.

2011-06-12 Thread Paul Menzel
Dear ConTeXt folks,


using

ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: english/english

the following example produces different integral signs.

--- minimal example ---
\starttext
Using the NEO keyboard layout several math symbols can be inserted directly 
like $∫$ or $∩$.

But $\int$ and $∫$ look differently.
\stoptext
--- minimal example ---

Please find all files attached.


Thanks,

Paul


[1] http://neo-layout.org/


int.pdf
Description: Adobe PDF document
\starttext
Using the NEO keyboard layout several math symbols can be inserted directly like $∫$ or $∩$.

But $\int$ and $∫$ look differently.
\stoptext


signature.asc
Description: This is a digitally signed message part
___
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
___

Re: [NTG-context] Error with \{start, stop}structureblockenvironment

2011-06-12 Thread Martin 'golodhrim' Scholz
In article 20110611230653.40c09d5a@glyph, Marco wrote:
 Try to replace

 \startstructureblockenvironment with
 \startsectionblockenvironment

 Marco
Hi Marco,

thanks that seemed to work, but now I run again in the error with
\startstandardmakeup

\stopstandardmakeup

it gives the following error:

13 \setupbackgrounds[page][background=cover-front]
14 
15 \setupbackgrounds[header][text][frame=none]
16 \startstandardmakeup[align=top]
17 \setuppagenumbering[state=stop]
18 \starttext
19 \page[empty]
20 \stoptext
21   \stopstandardmakeup
22 
23 \setupbackgrounds[page][background=]
24 \startstandardmakeup[align=top]
25 \setuppagenumbering[state=stop]
26 \starttext
27 \page[empty]
28 \stoptext
29 \stopstandardmakeup
30 \starttext
31 \startalignment[middle]

inserted text ...f ; \par \par ;;;]===], false)}

\processMPgraphic ...e ;\!!eses , \MPaskedfigureMPaskedfigure )}}
 \egroup 
\placeMPgplaceMPgraphic \d...
\handleuseMPgraphic ...hics \processMPgraphic {#3}
  \endgroup 
\douseMPgraphic ...{\@@MPG \currentMPgraphicname }
  \empty \endMPgraphicgroup 
to be read again
   }
\executedefinedoverlay ... {\the \everyoverlay #2}
  }\setbox \scratchbox \hbox...
...
l.21 \stopstandardmakeup

?

So if anybody knows what fails let me know would be great to get it
running again... :)
-- 
Martin 'golodhrim' Scholz
Auf dem Sattler 4
34516 Ederbringhausen
Germany
Phone: +49 6454 799623
mobile: +49 176 63301749
Fax: +49 6454 7990138
e-Mail: scholz@googlemail.com

You ain't learning nothing when you're talking.

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


Re: [NTG-context] Error with \{start, stop}structureblockenvironment

2011-06-12 Thread Marco
On 2011-06-12 Martin 'golodhrim' Scholz scholz@googlemail.com wrote:

 […]
 \startstandardmakeup[align=top]
 \setuppagenumbering[state=stop]
 \starttext
 \page[empty]
 \stoptext
 \stopstandardmakeup

You can't put  \{start|stop}text in standardmakeup. That's
correct behaviour,  it makes  no sense.  Next time  try to
provide a *minimal* example (with every line removed, that
is not related to the problem).

I have no clue what you want to achieve.

Marco


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

Re: [NTG-context] Digits-Module in tabulate does not work

2011-06-12 Thread yoraxe
Am 09.06.2011 23:16, schrieb Wolfgang Schuster:
 I guess the \pm has to be in $$. If I type

 \NN (30$\pm$3)e-3

 there's 'e-3' in the pdf-file again. The \NN somewhere between the digit
 only creates a big space (new column).

 Sorry for being so slow on the uptake.
 
 The \NN column expects a valid \digits argument but your code isn’t supported.
 You can now resort to math mode or write your own digits code.

Sad, that this isn't supported. I think this is a very popular notation.
I'm not that skilled until now to write my own code.
Woud be nice, if someone, who also uses this, could give an example how
to reach an easy success without typing something like $\cdot 10^{-3}$.

So far so good.

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
___


Re: [NTG-context] beta

2011-06-12 Thread Wolfgang Schuster

Am 12.06.2011 um 12:57 schrieb Hans Hagen:

 On 11-6-2011 5:12, Wolfgang Schuster wrote:
 
 Nice but i suggest to use \si as name for the command.
 
 I don't like that one ... we're not exclusively dealing with si units

What a lame excuse, “si” is easier to remember than “su” and even
though the code isn’t limited to si units this isn’t a good reason
to avoid the name.

 and it's also a language tag.

Not for ConTeXt:

\starttext
\show\si
\stoptext

 \si=undefined. 

Collision between language tags a context commands do exist since
a long time, e.g. \sl or \it.

 What’s still missing is a reimplementation of the \digits macro where you 
 have more control about the decimal and thousand separator and a few more 
 options.
 
 I have a scanner for that as well (needs to be integrated)

Yes i know you have it also commented in the source but the input is
too strict and expect something where you can write

  1.00

and depending on the setup you can get

  - 10.000,00
  - 10\,000.00
  - 10\,000,00
  - ...

as output.

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
___

Re: [NTG-context] Error with \{start, stop}structureblockenvironment

2011-06-12 Thread Wolfgang Schuster

Am 12.06.2011 um 15:07 schrieb Martin 'golodhrim' Scholz:

 In article 20110611230653.40c09d5a@glyph, Marco wrote:
 Try to replace
 
 \startstructureblockenvironment with
 \startsectionblockenvironment
 
 Marco
 Hi Marco,
 
 thanks that seemed to work, but now I run again in the error with
 \startstandardmakeup
 
 \stopstandardmakeup
 
 it gives the following error:
 
 13 \setupbackgrounds[page][background=cover-front]
 14 
 15 \setupbackgrounds[header][text][frame=none]
 16 \startstandardmakeup[align=top]
 17 \setuppagenumbering[state=stop]
 18 \starttext
 19 \page[empty]
 20 \stoptext
 21   \stopstandardmakeup
 22 
 23 \setupbackgrounds[page][background=]
 24 \startstandardmakeup[align=top]
 25 \setuppagenumbering[state=stop]
 26 \starttext
 27 \page[empty]
 28 \stoptext
 29 \stopstandardmakeup
 30 \starttext
 31 \startalignment[middle]
 
 inserted text ...f ; \par \par ;;;]===], false)}
 
 \processMPgraphic ...e ;\!!eses , \MPaskedfigureMPaskedfigure )}}
 \egroup 
 \placeMPgplaceMPgraphic \d...
 \handleuseMPgraphic ...hics \processMPgraphic {#3}
  \endgroup 
 \douseMPgraphic ...{\@@MPG \currentMPgraphicname }
  \empty \endMPgraphicgroup 
 to be read again
   }
 \executedefinedoverlay ... {\the \everyoverlay #2}
  }\setbox \scratchbox \hbox...
 ...
 l.21 \stopstandardmakeup
 
 ?
 
 So if anybody knows what fails let me know would be great to get it
 running again... :)

According to the error message you use a metapost graphic for the title
page which fails but since the graphic is missing in your example it’s
impossible to tell why.

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
___


Re: [NTG-context] Error with \{start, stop}structureblockenvironment

2011-06-12 Thread Wolfgang Schuster

Am 12.06.2011 um 15:20 schrieb Marco:

 On 2011-06-12 Martin 'golodhrim' Scholz scholz@googlemail.com wrote:
 
 […]
 \startstandardmakeup[align=top]
 \setuppagenumbering[state=stop]
 \starttext
 \page[empty]
 \stoptext
 \stopstandardmakeup
 
 You can't put  \{start|stop}text in standardmakeup. That's
 correct behaviour,  it makes  no sense.  Next time  try to
 provide a *minimal* example (with every line removed, that
 is not related to the problem).

You can and you can even write something like

\starttext
\starttext
\starttext
...
\stoptext
\stoptext
\stoptext

because the inner start/stoptext-pairs are ignores
but it’s nonsense and i have no idea what Martin
tries to achieve with this.

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
___


Re: [NTG-context] beta

2011-06-12 Thread Hans Hagen

On 12-6-2011 9:15, Wolfgang Schuster wrote:


What a lame excuse, “si” is easier to remember than “su” and even
though the code isn’t limited to si units this isn’t a good reason
to avoid the name.


I don't like \su either but I needed something that related to \unit 
(which is what I prefer) but the problem is that one then cannot us the 
m-units module at the same time. Well, I could save \unit when loading 
it, and one can wonder if they will be used mixed anyway so we might end 
up with \unit. We have a \m (inline math) macro and I'd like a one 
character one for units and digits and these could be \u and \d if we 
can assume that everyone uses utf (we could make them accent commands 
while dealing with bibtex).



and it's also a language tag.


Not for ConTeXt:

\starttext
\show\si
\stoptext


\si=undefined.


anyway, afaik si is relates to slovenian


Collision between language tags a context commands do exist since
a long time, e.g.

\sl or \it.

which is bad enough (I wonder if we'd have \it as font switch if italian 
had been needed in an earlier stage -)



Yes i know you have it also commented in the source but the input is
too strict and expect something where you can write


not that code, it's specific digits code not yet in the distribution


   1.00

and depending on the setup you can get

   - 10.000,00
   - 10\,000.00
   - 10\,000,00
   - ...


currently the units code just uses the predefined number scanner (I 
needed a quick hack) but it will get the digits scanner


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
___


Re: [NTG-context] ∫ is not displayed correctly compared to $\int$.

2011-06-12 Thread Mojca Miklavec
On Sun, Jun 12, 2011 at 15:06, Paul Menzel wrote:
 Dear ConTeXt folks,

 using

 ConTeXt  ver: 2011.05.18 22:26 MKIV  fmt: 2011.5.27  int: english/english

 the following example produces different integral signs.

 --- minimal example ---
 \starttext
 Using the NEO keyboard layout several math symbols can be inserted directly 
 like $∫$ or $∩$.

 But $\int$ and $∫$ look differently.
 \stoptext
 --- minimal example ---

However the character ∫ looks the same as \intop and ∫\nolimits looks
the same as \int.

As to why \intop looks so weird, I have no idea. If you add
\usetypescript[modern-base] \setupbodyfont[modern]
it will work ok. Cambria Math also results in two different heights of
the operator depending on whether limits are there or not. It might be
a bug somewhere in virtual font setup of LM. In pdfTeX \int and \intop
operators are positioned equally.

Mojca
___
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
___

Re: [NTG-context] beta

2011-06-12 Thread Mojca Miklavec
 \si=undefined.

 anyway, afaik si is relates to slovenian

No, only to Sinhalese.

SI is just the country code of Slovenia and doesn't interfere at all.

 Collision between language tags a context commands do exist since
 a long time, e.g.

 \sl or \it.

 which is bad enough (I wonder if we'd have \it as font switch if italian had
 been needed in an earlier stage -)

\it for italic is needed by way more people than two-letter code for
switching to Italian.

I prefer to be able to use \sl for slanted than as a switch to
slovenian. I need it approximately two hundred times more often than I
need a language switch. Why would it be any different for Italians and
what is wrong with \language[sl]/\language[it]?

Mojca
___
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
___


Re: [NTG-context] beta

2011-06-12 Thread Mojca Miklavec
On Mon, Jun 13, 2011 at 00:27, Mojca Miklavec
mojca.miklavec.li...@gmail.com wrote:
 \si=undefined.

 anyway, afaik si is relates to slovenian

 No, only to Sinhalese.

Oh, btw. \su stands for Sundanese, so I strongly suggest not to use it
for units ;)

Mojca
___
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
___


Re: [NTG-context] beta

2011-06-12 Thread Otared Kavian

On 12 juin 2011, at 23:47, Hans Hagen wrote:

 On 12-6-2011 9:15, Wolfgang Schuster wrote:
 
 What a lame excuse, “si” is easier to remember than “su” and even
 though the code isn’t limited to si units this isn’t a good reason
 to avoid the name.
 
 I don't like \su either but I needed something that related to \unit (which 
 is what I prefer) but the problem is that one then cannot us the m-units 
 module at the same time. Well, I could save \unit when loading it, and one 
 can wonder if they will be used mixed anyway so we might end up with \unit. 
 We have a \m (inline math) macro and I'd like a one character one for units 
 and digits and these could be \u and \d if we can assume that everyone uses 
 utf (we could make them accent commands while dealing with bibtex).

…so why not \SIunit or \siunit?
___
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
___