Re: [NTG-context] math align broken

2019-12-16 Thread Mikael P. Sundqvist
On Mon, Dec 16, 2019 at 3:08 PM Hans Hagen  wrote:

> On 12/16/2019 2:17 AM, Jeong Dal wrote:
> > Dear Mikael,
> >
> > I also confirm your problem.
> > I am using
> > "ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int:
> english/english”
> >
> > However, if you change “\Bigl(“ to “\left(“, then the space between left
> parenthesis and text become narrower.
> >
> > I hope that it will be fixed soon.
>
> in next beta (something with spacing in math)
>
> Hans
>
>
Thanks for the quick fix, Hans! I just updated and compiled my lecture
notes and can confirm that it looks fine again!

/Mikael
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] math align broken

2019-12-16 Thread Hans Hagen

On 12/16/2019 2:17 AM, Jeong Dal wrote:

Dear Mikael,

I also confirm your problem.
I am using
"ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int: english/english”

However, if you change “\Bigl(“ to “\left(“, then the space between left 
parenthesis and text become narrower.

I hope that it will be fixed soon.


in next beta (something with spacing in math)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] math align broken

2019-12-15 Thread Jeong Dal
Dear Mikael,

I also confirm your problem. 
I am using
"ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.9  int: english/english”

However, if you change “\Bigl(“ to “\left(“, then the space between left 
parenthesis and text become narrower. 

I hope that it will be fixed soon.

Best regards,

Dalyoung

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] math align broken

2019-12-15 Thread Otared Kavian
Hi Mikael,

II tested your example and can confirm the issue, using lmtx version: 
2019.12.15 17:34 on MacOS.

Best regards: OK

> On 15 Dec 2019, at 16:54, Mikael P. Sundqvist  wrote:
> 
> Hi,
> 
> I hope this report is not a duplicate of another one. I updated lmtx today 
> (from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh 
> install in the folder), and found some strange things with math:
> 
> The file
> 
> %%% EXAMPLE
> \starttext
> \startformula
> \startalign
> \NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
> \NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
> \NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
> \stopalign
> \stopformula
> From this we see that $\lim_{n\to+\infty}f(n)=0$.
> \stoptext
> %%%
> 
> gives the attached ex1.pdf. As we can see the spacing inside \startalign  
> \stopalign is wrong. Also, the "lim" in the example after the displayed 
> formula has disappeared.
> 
> Any clues?
> 
> /Mikael
> 
> (I tried in any case to remove cache and rebuild, but since it was a fresh 
> install, I could not see why it could help here. Thought I mention it 
> anyways.)
> 
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] math align broken

2019-12-15 Thread Mikael P. Sundqvist
Hi,

I hope this report is not a duplicate of another one. I updated lmtx today
(from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh
install in the folder), and found some strange things with math:

The file

%%% EXAMPLE
\starttext
\startformula
\startalign
\NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
\NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
\NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
\stopalign
\stopformula
>From this we see that $\lim_{n\to+\infty}f(n)=0$.
\stoptext
%%%

gives the attached ex1.pdf. As we can see the spacing inside \startalign
\stopalign is wrong. Also, the "lim" in the example after the displayed
formula has disappeared.

Any clues?

/Mikael

(I tried in any case to remove cache and rebuild, but since it was a fresh
install, I could not see why it could help here. Thought I mention it
anyways.)


ex1.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Size of fences, factor key

2018-04-25 Thread Mikael P. Sundqvist
>
>
>>
> sort of unclear indeed
>
>
> these big things are tricky as in plain tex they depends on font
> dimensions and forced scaling but in context we have abit more control over
> these sizes
>
> you can add this to cont-new.mkiv
>
> \unprotect
>
> \unexpanded\def\math_fenced_fenced_indeed[#1]#2%
>   {\iffirstargument\setupcurrentmathfence[#1]\fi
>\math_fenced_fenced_common
>\edef\p_size{\mathfenceparameter\c!size}%
>\ifx\p_size\empty\else
>
> \attribute\mathsizeattribute\numexpr\bigmathdelimitervariant
> *\plushundred+\p_size\relax
>\fi
>\math_fenced_left
>#2%
>\math_fenced_right
>\stopusemathstyleparameter
>\endgroup
>\advance\c_math_fenced_nesting\minusone}
>
> \protect
>
> and then do
>
> \setupbodyfont[lucidaot]
>
> \definemathfence[Set][left="007B,right="007D,command=yes]
>
> \startTEXpage[offset=1ex]
> \startformula
> \Set{x\in\mathbb R~:~x^2=1}
> \stopformula
> \startformula
> \Set[size=2]{x\in\mathbb R~:~x^2=1}
> \stopformula
> \startformula
> \Set[size=3]{x\in\mathbb R~:~x^2=1}
> \stopformula
> \startformula
> \Set[size=4]{x\in\mathbb R~:~x^2=1}
> \stopformula
> \stopTEXpage
>


Many thanks for your answer, I appreciate it!

If you look at the example below (output attached), you see that the
version with \bigl and \bigr has a different size than the other ones.

So my question boils down to: Is it possible, by using fences, to have the
same size as the \big, \Big, \bigg etc would give?

If not, is it possible to implement? I think it would make the already very
nice fencing system even more usable. The reason is to be able to use this
instead of not using fences at all in the few cases where the size from the
fencing is not optimal.

/Mikael


\unprotect

\unexpanded\def\math_fenced_fenced_indeed[#1]#2%
  {\iffirstargument\setupcurrentmathfence[#1]\fi
   \math_fenced_fenced_common
   \edef\p_size{\mathfenceparameter\c!size}%
   \ifx\p_size\empty\else

\attribute\mathsizeattribute\numexpr\bigmathdelimitervariant*\plushundred+\p_size\relax
   \fi
   \math_fenced_left
   #2%
   \math_fenced_right
   \stopusemathstyleparameter
   \endgroup
   \advance\c_math_fenced_nesting\minusone}

\protect

\setupbodyfont[lucidaot]

\definemathfence[Set][left="007B,right="007D,command=yes]

\startTEXpage[offset=1ex]
\startformula
\{x\in\mathbb R~:~x^2=1\}\quad\text{Here the braces are too small}
\stopformula
\startformula
\bigl\{x\in\mathbb R~:~x^2=1\bigr\}\quad\text{I like this size}
\stopformula
\startformula
\Set{x\in\mathbb R~:~x^2=1}\quad\text{Here the braces are too big}
\stopformula
\startformula
\Set[size=2]{x\in\mathbb R~:~x^2=1}\quad\text{Here the braces are
too big}
\stopformula
\stopTEXpage


ctx-example36.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Size of fences, factor key

2018-04-25 Thread Hans Hagen

On 4/25/2018 7:29 AM, Mikael P. Sundqvist wrote:
On Sat, Apr 21, 2018 at 7:30 PM, Mikael P. Sundqvist <mic...@gmail.com 
<mailto:mic...@gmail.com>> wrote:


Dear Hans and others,

I'm usually use the \big, \Big, \bigg etc to get the size of
parentheses, brackets and braces to be the size I want. I realize
that the fences machinery is probably a cleaner way of doing this.

I tried it a bit, and it usually gives the result I like. But
sometimes not, and it seems that the way to change the size of the
parentheses/brackets/braces is to use the factor key.

1) Are the different options none, auto NUMBER explained somehere?
2) Could one have, for exceptional cases where the default is not
satisfactory, a keyword like factor=big for example, to get the same
size as if one would have used \big?

I am a bit confused. See the example below, with output (from latest
standalone) attached.

/Mikael

PS: I would suggest to have
  italic       = { feature = 'ss01', value = 1, comment =
"Mathematical Alternative Lowercase Italic" },
set in lucida-opentype-math.lfg. In all books (on math) I have seen,
I think this is what is used.

%%% Example file:

\setupbodyfont[lucidaot]

\definemathfence[Set][left="007B,right="007D,command=yes]

\startbuffer
\startformula
\Set{x\in\mathbb R~:~x^2=1}
\stopformula
\stopbuffer


\startTEXpage[offset=3bp]

\startformula
\{x\in\mathbb R~:~ x^2=1\}%Too small
\stopformula

\startformula
\bigl\{x\in\mathbb R~:~ x^2=1\bigr\}%I like this one
\stopformula

\startformula
\Bigl\{x\in\mathbb R~:~ x^2=1\Bigr\}%Too big
\stopformula

\getbuffer

\setupmathfence[Set][factor=1]%I like this one
\getbuffer

\setupmathfence[Set][factor=auto]%Too big
\getbuffer

%\setupmathfence[Set][factor=big]%Perhaps this could work? Or
size=big or something
%\getbuffer
\stopTEXpage


I hate to do this, but a small *bump*

(If it is unclear what I'm asking for, I could try to clarify)


sort of unclear indeed


these big things are tricky as in plain tex they depends on font 
dimensions and forced scaling but in context we have abit more control 
over these sizes


you can add this to cont-new.mkiv

\unprotect

\unexpanded\def\math_fenced_fenced_indeed[#1]#2%
  {\iffirstargument\setupcurrentmathfence[#1]\fi
   \math_fenced_fenced_common
   \edef\p_size{\mathfenceparameter\c!size}%
   \ifx\p_size\empty\else

\attribute\mathsizeattribute\numexpr\bigmathdelimitervariant*\plushundred+\p_size\relax
   \fi
   \math_fenced_left
   #2%
   \math_fenced_right
   \stopusemathstyleparameter
   \endgroup
   \advance\c_math_fenced_nesting\minusone}

\protect

and then do

\setupbodyfont[lucidaot]

\definemathfence[Set][left="007B,right="007D,command=yes]

\startTEXpage[offset=1ex]
\startformula
\Set{x\in\mathbb R~:~x^2=1}
\stopformula
\startformula
\Set[size=2]{x\in\mathbb R~:~x^2=1}
\stopformula
\startformula
\Set[size=3]{x\in\mathbb R~:~x^2=1}
\stopformula
\startformula
\Set[size=4]{x\in\mathbb R~:~x^2=1}
\stopformula
\stopTEXpage




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Size of fences, factor key

2018-04-24 Thread Mikael P. Sundqvist
On Sat, Apr 21, 2018 at 7:30 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> Dear Hans and others,
>
> I'm usually use the \big, \Big, \bigg etc to get the size of parentheses,
> brackets and braces to be the size I want. I realize that the fences
> machinery is probably a cleaner way of doing this.
>
> I tried it a bit, and it usually gives the result I like. But sometimes
> not, and it seems that the way to change the size of the
> parentheses/brackets/braces is to use the factor key.
>
> 1) Are the different options none, auto NUMBER explained somehere?
> 2) Could one have, for exceptional cases where the default is not
> satisfactory, a keyword like factor=big for example, to get the same size
> as if one would have used \big?
>
> I am a bit confused. See the example below, with output (from latest
> standalone) attached.
>
> /Mikael
>
> PS: I would suggest to have
>  italic   = { feature = 'ss01', value = 1, comment = "Mathematical
> Alternative Lowercase Italic" },
> set in lucida-opentype-math.lfg. In all books (on math) I have seen, I
> think this is what is used.
>
> %%% Example file:
>
> \setupbodyfont[lucidaot]
>
> \definemathfence[Set][left="007B,right="007D,command=yes]
>
> \startbuffer
> \startformula
> \Set{x\in\mathbb R~:~x^2=1}
> \stopformula
> \stopbuffer
>
>
> \startTEXpage[offset=3bp]
>
> \startformula
> \{x\in\mathbb R~:~ x^2=1\}%Too small
> \stopformula
>
> \startformula
> \bigl\{x\in\mathbb R~:~ x^2=1\bigr\}%I like this one
> \stopformula
>
> \startformula
> \Bigl\{x\in\mathbb R~:~ x^2=1\Bigr\}%Too big
> \stopformula
>
> \getbuffer
>
> \setupmathfence[Set][factor=1]%I like this one
> \getbuffer
>
> \setupmathfence[Set][factor=auto]%Too big
> \getbuffer
>
> %\setupmathfence[Set][factor=big]%Perhaps this could work? Or size=big or
> something
> %\getbuffer
> \stopTEXpage
>

I hate to do this, but a small *bump*

(If it is unclear what I'm asking for, I could try to clarify)

/Mikael
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Size of fences, factor key

2018-04-21 Thread Mikael P. Sundqvist
Dear Hans and others,

I'm usually use the \big, \Big, \bigg etc to get the size of parentheses,
brackets and braces to be the size I want. I realize that the fences
machinery is probably a cleaner way of doing this.

I tried it a bit, and it usually gives the result I like. But sometimes
not, and it seems that the way to change the size of the
parentheses/brackets/braces is to use the factor key.

1) Are the different options none, auto NUMBER explained somehere?
2) Could one have, for exceptional cases where the default is not
satisfactory, a keyword like factor=big for example, to get the same size
as if one would have used \big?

I am a bit confused. See the example below, with output (from latest
standalone) attached.

/Mikael

PS: I would suggest to have
 italic   = { feature = 'ss01', value = 1, comment = "Mathematical
Alternative Lowercase Italic" },
set in lucida-opentype-math.lfg. In all books (on math) I have seen, I
think this is what is used.

%%% Example file:

\setupbodyfont[lucidaot]

\definemathfence[Set][left="007B,right="007D,command=yes]

\startbuffer
\startformula
\Set{x\in\mathbb R~:~x^2=1}
\stopformula
\stopbuffer


\startTEXpage[offset=3bp]

\startformula
\{x\in\mathbb R~:~ x^2=1\}%Too small
\stopformula

\startformula
\bigl\{x\in\mathbb R~:~ x^2=1\bigr\}%I like this one
\stopformula

\startformula
\Bigl\{x\in\mathbb R~:~ x^2=1\Bigr\}%Too big
\stopformula

\getbuffer

\setupmathfence[Set][factor=1]%I like this one
\getbuffer

\setupmathfence[Set][factor=auto]%Too big
\getbuffer

%\setupmathfence[Set][factor=big]%Perhaps this could work? Or size=big or
something
%\getbuffer
\stopTEXpage


ctx-listexample42.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
On Thu, Mar 15, 2018 at 9:24 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> On Thu, Mar 15, 2018 at 11:00 AM, Hans Hagen <pra...@wxs.nl> wrote:
>
>> On 3/10/2018 7:10 PM, Mikael P. Sundqvist wrote:
>>
>>> Hi Hans and others!
>>>
>>> I don't know if this is a problem with the font itself or if it is
>>> ConTeXt. In any case, the test file below gives strange output (attached).
>>> In particular the space/kerning after $f$ seems to be off.
>>>
>>
>> the fonts have bad glyph dimensions that assume italics always to be
>> applied (as in traditional tex fonts)
>>
>> you can put this at the top of your file:
>>
>> \definefontfeature[mathextra][collapseitalics=yes]
>>
>> awaiting fixed fonts (if they never get fixed we can consider applying
>> this feature by default)
>>
>> Ulrike Fischer reminded me in the StackExchange chat that not so long
>>> time ago there was some similar issue with \mathcal P discussed on this
>>> list. Is it the same problem? (The input $f \tracinglostchars=0
>>> \Uchar"EEEFF$) indeed makes it look better between the $f$ and the
>>> parenthesis.)
>>>
>>> /Mikael
>>>
>>> %%%
>>> \setupbodyfont[bonum]
>>>
>>> \starttext
>>> \startTEXpage[offset=3bp]
>>> (Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)
>>>
>>> There might be more problems (like between $t$ and the parenthesis in
>>> $e^t$) is too small.
>>>
>>> The space between $dx$ and the bar is too small:
>>> \startformula
>>> \Bigl|\int_0^\pi\sin x\,dx\Bigr|,
>>> \stopformula
>>> Look at the $f$ and the bar:
>>> \startformula
>>> \Bigl|\int f\Bigr|
>>> \stopformula
>>> The $x$ seems to be outside the fraction:
>>> \startformula
>>> \frac{a^2}{1-x}
>>> \stopformula
>>> We add another one (in fact two) including $f$:
>>> \startformula
>>> f\Bigl(\frac{a+b}{2}\Bigr)
>>> \stopformula
>>>
>>> Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from
>>> $\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.
>>>
>>> With $\delta_f$ and $\delta_g$, I think it looks like the space is too
>>> big, in particular between $\delta$ and $f$, but maybe that is a matter of
>>> taste.
>>>
>>> \stopTEXpage
>>> \stoptext
>>> %%%
>>>
>>>
>>> 
>>> ___
>>> 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/list
>>> info/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> 
>>> ___
>>>
>>>
>>
>> --
>>
>> -
>>   Hans Hagen | PRAGMA ADE
>>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>tel: 038 477 53 69 | www.pragma-ade.nl | 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>
>
> Many thanks, Hans! This works well and it makes the font usable.
>
> I will try to contact the TeX Gyre project to report this issue in the
> font.
>
> /Mikael
>

I was too quick. Look at the distance between the integral sign and the
limits in the attached example. Is there a way to fix that?

/Mikael

\definefontfeature[mathextra][collapseitalics=yes]
\setupbodyfont[bonum]

\setupmathematics[
integral=nolimits,
]

\startTEXpage
$\int_a^b f'(t)\,dt=f(b)-f(a)$
\startformula
\int_a^b f'(t)\,dt=f(b)-f(a)
\stopformula
\stopTEXpage


bonumint.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Mikael P. Sundqvist
On Thu, Mar 15, 2018 at 11:00 AM, Hans Hagen <pra...@wxs.nl> wrote:

> On 3/10/2018 7:10 PM, Mikael P. Sundqvist wrote:
>
>> Hi Hans and others!
>>
>> I don't know if this is a problem with the font itself or if it is
>> ConTeXt. In any case, the test file below gives strange output (attached).
>> In particular the space/kerning after $f$ seems to be off.
>>
>
> the fonts have bad glyph dimensions that assume italics always to be
> applied (as in traditional tex fonts)
>
> you can put this at the top of your file:
>
> \definefontfeature[mathextra][collapseitalics=yes]
>
> awaiting fixed fonts (if they never get fixed we can consider applying
> this feature by default)
>
> Ulrike Fischer reminded me in the StackExchange chat that not so long time
>> ago there was some similar issue with \mathcal P discussed on this list. Is
>> it the same problem? (The input $f \tracinglostchars=0 \Uchar"EEEFF$)
>> indeed makes it look better between the $f$ and the parenthesis.)
>>
>> /Mikael
>>
>> %%%
>> \setupbodyfont[bonum]
>>
>> \starttext
>> \startTEXpage[offset=3bp]
>> (Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)
>>
>> There might be more problems (like between $t$ and the parenthesis in
>> $e^t$) is too small.
>>
>> The space between $dx$ and the bar is too small:
>> \startformula
>> \Bigl|\int_0^\pi\sin x\,dx\Bigr|,
>> \stopformula
>> Look at the $f$ and the bar:
>> \startformula
>> \Bigl|\int f\Bigr|
>> \stopformula
>> The $x$ seems to be outside the fraction:
>> \startformula
>> \frac{a^2}{1-x}
>> \stopformula
>> We add another one (in fact two) including $f$:
>> \startformula
>> f\Bigl(\frac{a+b}{2}\Bigr)
>> \stopformula
>>
>> Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from
>> $\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.
>>
>> With $\delta_f$ and $\delta_g$, I think it looks like the space is too
>> big, in particular between $\delta$ and $f$, but maybe that is a matter of
>> taste.
>>
>> \stopTEXpage
>> \stoptext
>> %%%
>>
>>
>> 
>> ___
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>>
>
> --
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | 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/list
> info/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> 
> ___


Many thanks, Hans! This works well and it makes the font usable.

I will try to contact the TeX Gyre project to report this issue in the font.

/Mikael
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] [SPAM] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-15 Thread Hans Hagen

On 3/10/2018 7:10 PM, Mikael P. Sundqvist wrote:

Hi Hans and others!

I don't know if this is a problem with the font itself or if it is 
ConTeXt. In any case, the test file below gives strange output 
(attached). In particular the space/kerning after $f$ seems to be off.


the fonts have bad glyph dimensions that assume italics always to be 
applied (as in traditional tex fonts)


you can put this at the top of your file:

\definefontfeature[mathextra][collapseitalics=yes]

awaiting fixed fonts (if they never get fixed we can consider applying 
this feature by default)


Ulrike Fischer reminded me in the StackExchange chat that not so long 
time ago there was some similar issue with \mathcal P discussed on this 
list. Is it the same problem? (The input $f \tracinglostchars=0 
\Uchar"EEEFF$) indeed makes it look better between the $f$ and the 
parenthesis.)


/Mikael

%%%
\setupbodyfont[bonum]

\starttext
\startTEXpage[offset=3bp]
(Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)

There might be more problems (like between $t$ and the parenthesis in 
$e^t$) is too small.


The space between $dx$ and the bar is too small:
\startformula
\Bigl|\int_0^\pi\sin x\,dx\Bigr|,
\stopformula
Look at the $f$ and the bar:
\startformula
\Bigl|\int f\Bigr|
\stopformula
The $x$ seems to be outside the fraction:
\startformula
\frac{a^2}{1-x}
\stopformula
We add another one (in fact two) including $f$:
\startformula
f\Bigl(\frac{a+b}{2}\Bigr)
\stopformula

Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from 
$\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.


With $\delta_f$ and $\delta_g$, I think it looks like the space is too 
big, in particular between $\delta$ and $f$, but maybe that is a matter 
of taste.


\stopTEXpage
\stoptext
%%%


___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Kerning/italic correction problem with TeX Gyre Bonum font

2018-03-10 Thread Mikael P. Sundqvist
Hi Hans and others!

I don't know if this is a problem with the font itself or if it is ConTeXt.
In any case, the test file below gives strange output (attached). In
particular the space/kerning after $f$ seems to be off.

Ulrike Fischer reminded me in the StackExchange chat that not so long time
ago there was some similar issue with \mathcal P discussed on this list. Is
it the same problem? (The input $f \tracinglostchars=0 \Uchar"EEEFF$)
indeed makes it look better between the $f$ and the parenthesis.)

/Mikael

%%%
\setupbodyfont[bonum]

\starttext
\startTEXpage[offset=3bp]
(Look at this $f$) and this $f$? (see also $k$?, $x$? and $z$?)

There might be more problems (like between $t$ and the parenthesis in
$e^t$) is too small.

The space between $dx$ and the bar is too small:
\startformula
\Bigl|\int_0^\pi\sin x\,dx\Bigr|,
\stopformula
Look at the $f$ and the bar:
\startformula
\Bigl|\int f\Bigr|
\stopformula
The $x$ seems to be outside the fraction:
\startformula
\frac{a^2}{1-x}
\stopformula
We add another one (in fact two) including $f$:
\startformula
f\Bigl(\frac{a+b}{2}\Bigr)
\stopformula

Also look at $\xi_0$ and $\xi_1$, the subscripts are too far away from
$\xi$. Compare with $f_0$ and $f_1$, $g_0$ and $g_1$.

With $\delta_f$ and $\delta_g$, I think it looks like the space is too big,
in particular between $\delta$ and $f$, but maybe that is a matter of taste.

\stopTEXpage
\stoptext
%%%


bonumbug.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Fourier and utopia

2018-03-06 Thread Mikael P. Sundqvist
On Sat, Mar 3, 2018 at 7:17 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist <mic...@gmail.com>
> wrote:
>
>> Dear Hans and dear list,
>>
>> I try to use the fourier/utopia combination in mkiv (I used that
>> combination for my PhD thesis in mkii 10 years ago).
>>
>> First of all, I have downloaded the fourier fonts from ctan at
>> https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
>> mtxrun.
>>
>> I have one folder containing type-fourier.mkiv, fourier-math.lfg and
>> testfile.tex. Everything seems to be found by the system, so the problem is
>> probably in my files somewhere. The resulting pdf after compiling
>> testfile.text is attached.
>>
>> Any ideas of what I am missing?
>>
>> Additionally, the fourier fonts come with fourier-bb.tfm (probably with
>> blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
>> ideas on how to use them in the fourier-math.lfg file?
>>
>> If more information is needed, then please tell me.
>>
>> /Mikael
>>
>> %%%
>> type-fourier.mkiv:
>> %%%
>> \starttypescriptcollection[fourier]
>> \starttypescript [serif] [fourier]
>> \definefontsynonym [Utopia-Regular] [file:putr8a.afm]
>> \definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
>> \definefontsynonym [Utopia-Bold][file:putb8a.afm]
>> \definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
>> \stoptypescript
>>
>> \starttypescript [serif] [fourier] [name]
>> \setups[font:fallback:serif]
>> \definefontsynonym [Serif][Utopia-Regular]
>> \definefontsynonym [SerifItalic]  [Utopia-Italic]
>> \definefontsynonym [SerifBold][Utopia-Bold]
>> \definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
>> \stoptypescript
>>
>> \starttypescript [math] [fourier] [all]
>> \loadfontgoodies[fourier-math]
>> \definefontsynonym [MathRoman] [fourierrm@fourier-rm]
>> \stoptypescript
>>
>> \starttypescript [fourier]
>> \definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
>> \definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
>> \definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
>> \definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
>> \quittypescriptscanning
>> \stoptypescript
>> \stoptypescriptcollection
>>
>>
>> %%%
>> fourier-math.lfg:
>> %%%
>> return {
>> name = "fourier-math",
>> version = "1.00",
>> comment = "Math font Fourier for Utopia.",
>> mathematics = {
>> mapfiles = {
>> "fourier.map",
>> "mkiv-base.map",
>> },
>> virtuals = {
>> ["fourier-rm"] = {
>> { name = "putr8a", features = "virtualmath", main = true
>> },
>> { name = "fourier-ml.tfm",  vector = "tex-mr",
>> skewchar=0x7F },
>> { name = "fourier-mlit.tfm", vector = "tex-mi",
>> skewchar=0x7F },
>> { name = "fourier-mlit.tfm", vector = "tex-it",
>> skewchar=0x7F },
>> { name = "fourier-mlb.tfm",  vector = "tex-bf",
>> skewchar=0x7F },
>> { name = "fourier-mlitb.tfm", vector = "tex-bi",
>> skewchar=0x7F },
>> { name = "fourier-ms.tfm",  vector = "tex-sy",
>> skewchar=0x30, parameters = true },
>> { name = "fourier-mex.tfm",  vector = "tex-ex", extension
>> = true },
>> msam,
>> msbm,
>> },
>> }
>> }
>> }
>>
>> %%%
>> testfile.tex:
>> %%%
>> \loadtypescriptfile[type-fourier]
>> \setupbodyfont[fourier,12pt]
>>
>> \starttext
>> \startTEXpage[offset=3bp]
>> Some math: $y''=(y')'$.
>> A displayed formula:
>> \startformula
>> f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
>> \stopformula
>> \stopTEXpage
>> \stoptext
>>
>>
> A small step in the right direction: Blackboard letters and calligraphic
> (script) letters seem to work when I add
>
>   

Re: [NTG-context] Fourier and utopia

2018-03-03 Thread Mikael P. Sundqvist
On Sat, Mar 3, 2018 at 3:46 PM, Mikael P. Sundqvist <mic...@gmail.com>
wrote:

> Dear Hans and dear list,
>
> I try to use the fourier/utopia combination in mkiv (I used that
> combination for my PhD thesis in mkii 10 years ago).
>
> First of all, I have downloaded the fourier fonts from ctan at
> https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
> mtxrun.
>
> I have one folder containing type-fourier.mkiv, fourier-math.lfg and
> testfile.tex. Everything seems to be found by the system, so the problem is
> probably in my files somewhere. The resulting pdf after compiling
> testfile.text is attached.
>
> Any ideas of what I am missing?
>
> Additionally, the fourier fonts come with fourier-bb.tfm (probably with
> blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
> ideas on how to use them in the fourier-math.lfg file?
>
> If more information is needed, then please tell me.
>
> /Mikael
>
> %%%
> type-fourier.mkiv:
> %%%
> \starttypescriptcollection[fourier]
> \starttypescript [serif] [fourier]
> \definefontsynonym [Utopia-Regular] [file:putr8a.afm]
> \definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
> \definefontsynonym [Utopia-Bold][file:putb8a.afm]
> \definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
> \stoptypescript
>
> \starttypescript [serif] [fourier] [name]
> \setups[font:fallback:serif]
> \definefontsynonym [Serif][Utopia-Regular]
> \definefontsynonym [SerifItalic]  [Utopia-Italic]
> \definefontsynonym [SerifBold][Utopia-Bold]
> \definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
> \stoptypescript
>
> \starttypescript [math] [fourier] [all]
> \loadfontgoodies[fourier-math]
> \definefontsynonym [MathRoman] [fourierrm@fourier-rm]
> \stoptypescript
>
> \starttypescript [fourier]
> \definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
> \definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
> \definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
> \definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
> \quittypescriptscanning
> \stoptypescript
> \stoptypescriptcollection
>
>
> %%%
> fourier-math.lfg:
> %%%
> return {
> name = "fourier-math",
> version = "1.00",
> comment = "Math font Fourier for Utopia.",
> mathematics = {
> mapfiles = {
> "fourier.map",
> "mkiv-base.map",
> },
> virtuals = {
> ["fourier-rm"] = {
> { name = "putr8a", features = "virtualmath", main = true },
> { name = "fourier-ml.tfm",  vector = "tex-mr",
> skewchar=0x7F },
> { name = "fourier-mlit.tfm", vector = "tex-mi",
> skewchar=0x7F },
> { name = "fourier-mlit.tfm", vector = "tex-it",
> skewchar=0x7F },
> { name = "fourier-mlb.tfm",  vector = "tex-bf",
> skewchar=0x7F },
> { name = "fourier-mlitb.tfm", vector = "tex-bi",
> skewchar=0x7F },
> { name = "fourier-ms.tfm",  vector = "tex-sy",
> skewchar=0x30, parameters = true },
> { name = "fourier-mex.tfm",  vector = "tex-ex", extension
> = true },
> msam,
> msbm,
> },
> }
> }
> }
>
> %%%
> testfile.tex:
> %%%
> \loadtypescriptfile[type-fourier]
> \setupbodyfont[fourier,12pt]
>
> \starttext
> \startTEXpage[offset=3bp]
> Some math: $y''=(y')'$.
> A displayed formula:
> \startformula
> f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
> \stopformula
> \stopTEXpage
> \stoptext
>
>
A small step in the right direction: Blackboard letters and calligraphic
(script) letters seem to work when I add

{ name = "fourier-bb.tfm",  vector = "tex-mb",
skewchar=0x7F },
{ name = "fourier-mcl.tfm",  vector = "tex-sy",
skewchar=0x7F },

to fourier-math.lfg.

/Mikael
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Fourier and utopia

2018-03-03 Thread Mikael P. Sundqvist
Dear Hans and dear list,

I try to use the fourier/utopia combination in mkiv (I used that
combination for my PhD thesis in mkii 10 years ago).

First of all, I have downloaded the fourier fonts from ctan at
https://ctan.org/tex-archive/fonts/fourier-GUT . The fonts are found by
mtxrun.

I have one folder containing type-fourier.mkiv, fourier-math.lfg and
testfile.tex. Everything seems to be found by the system, so the problem is
probably in my files somewhere. The resulting pdf after compiling
testfile.text is attached.

Any ideas of what I am missing?

Additionally, the fourier fonts come with fourier-bb.tfm (probably with
blackboard bold), fourier-mcl (probably so that one can use mathcal). Any
ideas on how to use them in the fourier-math.lfg file?

If more information is needed, then please tell me.

/Mikael

%%%
type-fourier.mkiv:
%%%
\starttypescriptcollection[fourier]
\starttypescript [serif] [fourier]
\definefontsynonym [Utopia-Regular] [file:putr8a.afm]
\definefontsynonym [Utopia-Italic]  [file:putri8a.afm]
\definefontsynonym [Utopia-Bold][file:putb8a.afm]
\definefontsynonym [Utopia-BoldItalic]  [file:putbi8a.afm]
\stoptypescript

\starttypescript [serif] [fourier] [name]
\setups[font:fallback:serif]
\definefontsynonym [Serif][Utopia-Regular]
\definefontsynonym [SerifItalic]  [Utopia-Italic]
\definefontsynonym [SerifBold][Utopia-Bold]
\definefontsynonym [SerifBoldItalic]  [Utopia-BoldItalic]
\stoptypescript

\starttypescript [math] [fourier] [all]
\loadfontgoodies[fourier-math]
\definefontsynonym [MathRoman] [fourierrm@fourier-rm]
\stoptypescript

\starttypescript [fourier]
\definetypeface [\typescriptone] [rm] [serif] [fourier] [default]
\definetypeface [\typescriptone] [ss] [sans]  [modern]  [default]
\definetypeface [\typescriptone] [tt] [mono]  [modern]  [default]
\definetypeface [\typescriptone] [mm] [math]  [fourier] [default]
\quittypescriptscanning
\stoptypescript
\stoptypescriptcollection


%%%
fourier-math.lfg:
%%%
return {
name = "fourier-math",
version = "1.00",
comment = "Math font Fourier for Utopia.",
mathematics = {
mapfiles = {
"fourier.map",
"mkiv-base.map",
},
virtuals = {
["fourier-rm"] = {
{ name = "putr8a", features = "virtualmath", main = true },
{ name = "fourier-ml.tfm",  vector = "tex-mr",
skewchar=0x7F },
{ name = "fourier-mlit.tfm", vector = "tex-mi",
skewchar=0x7F },
{ name = "fourier-mlit.tfm", vector = "tex-it",
skewchar=0x7F },
{ name = "fourier-mlb.tfm",  vector = "tex-bf",
skewchar=0x7F },
{ name = "fourier-mlitb.tfm", vector = "tex-bi",
skewchar=0x7F },
{ name = "fourier-ms.tfm",  vector = "tex-sy",
skewchar=0x30, parameters = true },
{ name = "fourier-mex.tfm",  vector = "tex-ex", extension =
true },
msam,
msbm,
},
    }
}
}

%%%
testfile.tex:
%%%
\loadtypescriptfile[type-fourier]
\setupbodyfont[fourier,12pt]

\starttext
\startTEXpage[offset=3bp]
Some math: $y''=(y')'$.
A displayed formula:
\startformula
f(x) = f(0)+\int_0^x \bigl(f'(t)\bigr)\,dt.
\stopformula
\stopTEXpage
\stoptext


testfile.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] A solved problem

2017-06-16 Thread Henri Menke
On Fri, 2017-06-16 at 11:17 +0200, Eric Détrez wrote:
> Hello
> 
> Just a message to explain a problem I had and the answer.
> 
> The trouble : the big parenthesis were not big, $($ and $\bigl($ gave 
> the same shape
> 
> The fix :
> I defined my own environment in which I defined very big font sizes.
> \definefontsize[e]
> \definebodyfontenvironment  [default] [e=4]
> 
> One of them was \definefontsize[g]
> 
> I changed it to \definefontsize[gg] and all went right again

Cool.  Now try $\biggl($

> 
> The explanation (?) : maybe \big was read \bi (bold italic) with size g 
> 
> 
> I had this problem for 2 years, I'm happy to have figured it now.
> 
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] A solved problem

2017-06-16 Thread Eric Détrez

Hello

Just a message to explain a problem I had and the answer.

The trouble : the big parenthesis were not big, $($ and $\bigl($ gave 
the same shape


The fix :
I defined my own environment in which I defined very big font sizes.
\definefontsize[e]
\definebodyfontenvironment  [default] [e=4]

One of them was \definefontsize[g]

I changed it to \definefontsize[gg] and all went right again

The explanation (?) : maybe \big was read \bi (bold italic) with size g 



I had this problem for 2 years, I'm happy to have figured it now.

--
Eric Détrez
Informatique
Lycée Faidherbe, Lille
http://eric-detrez.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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug regarding placement and size of primes

2017-06-12 Thread Mathias Schickel
Thank you very much for providing the instructions, Mikael! Unfortunately

> 1) get the files
> 
> svn checkout --username anonsvn --password anonsvn
> https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/ 
> <https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/>
does not work on MacOS (which I am using). Can someone tell me which command I 
need to use at MacOS (current version)?

Besides, Hans, I think it is a questionable decision to include the new 
mechanism for primes in the beta but not the required LuaTeX version for them 
to work correctly. I tried out the ConTeXt version „current“ (--context=current 
downloading the standalone) and there the old bugs persist. That means that I 
cannot use ConTeXt to typeset mathematics now, since no version works correctly 
when primes are required (until I can handle it to compile LuaTeX 1.05, but I 
think it would be much more comfortable the beta version of ConTeXt could run 
using the LuaTeX version it provides on it’s own).

Best
/Mathias



> Am 12.06.2017 um 13:46 schrieb Mikael P. Sundqvist <mic...@gmail.com>:
> 
> On Mon, Jun 12, 2017 at 1:30 PM, Mathias Schickel
> <m...@fa.uni-tuebingen.de> wrote:
>> Hi Mikael,
>> 
>> when will LuaTeX 1.05 be released? And how can I get the source for 
>> compilation (and what exactly will I have to do to get everything to work)?
>> Besides: Do you have a link to the thread you are referring to?
>> 
>> Best
>> /Mathias
>> 
>> 
>>> Am 12.06.2017 um 12:57 schrieb Mikael P. Sundqvist <mic...@gmail.com>:
>>> 
>>> On Mon, Jun 12, 2017 at 12:32 PM, Mathias Schickel
>>> <m...@fa.uni-tuebingen.de> wrote:
>>>> Dear Hans,
>>>> 
>>>> the newest beta (I have updated some hours ago) contains again some bugs 
>>>> regarding the size and placement of primes. You can verify that by using 
>>>> the following minimal example (created to show some older bugs being 
>>>> resolved meanwhile):
>>>> 
>>>> %%%
>>>> \starttext
>>>> %
>>>> Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$.
>>>> %
>>>> \startformula
>>>>   %
>>>>   \int\nolimits_a^b \bigl(\|f(x)\|\bigr)\, {\mathrm d}x
>>>>   %
>>>> \stopformula
>>>> %
>>>> \stoptext
>>>> %%%
>>>> 
>>>> The output is attached. The primes are obviously rendered too small. And 
>>>> while $f'$ seems to lead to a placement of the prime a little too low, 
>>>> $f^{'}$ seems to cause the prime being placed too high.
>>>> 
>>>> Best
>>>> Mathias
>>>> 
>>>> 
>>>> 
>>>> ___
>>>> 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://context.aanhet.net
>>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>>> wiki : http://contextgarden.net
>>>> ___
>>> 
>>> I think this is intended (see the other thread). Hans decided to do
>>> the primes differently, which means that they will look strange until
>>> luatex 1.05 is out. You can compile luatex 1.05 yourself, and you will
>>> see that the primes look OK. I attach a pdf result of your file,
>>> compiled with 1.05.
>>> 
>>> /Mikael
>>> ___
>>> 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>> 
>> ___
>> 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-c

Re: [NTG-context] Bug regarding placement and size of primes

2017-06-12 Thread Mikael P. Sundqvist
On Mon, Jun 12, 2017 at 1:30 PM, Mathias Schickel
<m...@fa.uni-tuebingen.de> wrote:
> Hi Mikael,
>
> when will LuaTeX 1.05 be released? And how can I get the source for 
> compilation (and what exactly will I have to do to get everything to work)?
> Besides: Do you have a link to the thread you are referring to?
>
> Best
> /Mathias
>
>
>> Am 12.06.2017 um 12:57 schrieb Mikael P. Sundqvist <mic...@gmail.com>:
>>
>> On Mon, Jun 12, 2017 at 12:32 PM, Mathias Schickel
>> <m...@fa.uni-tuebingen.de> wrote:
>>> Dear Hans,
>>>
>>> the newest beta (I have updated some hours ago) contains again some bugs 
>>> regarding the size and placement of primes. You can verify that by using 
>>> the following minimal example (created to show some older bugs being 
>>> resolved meanwhile):
>>>
>>> %%%
>>> \starttext
>>> %
>>> Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$.
>>> %
>>> \startformula
>>>%
>>>\int\nolimits_a^b \bigl(\|f(x)\|\bigr)\, {\mathrm d}x
>>>%
>>> \stopformula
>>> %
>>> \stoptext
>>> %%%
>>>
>>> The output is attached. The primes are obviously rendered too small. And 
>>> while $f'$ seems to lead to a placement of the prime a little too low, 
>>> $f^{'}$ seems to cause the prime being placed too high.
>>>
>>> Best
>>> Mathias
>>>
>>>
>>>
>>> ___
>>> 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://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : http://contextgarden.net
>>> ___
>>
>> I think this is intended (see the other thread). Hans decided to do
>> the primes differently, which means that they will look strange until
>> luatex 1.05 is out. You can compile luatex 1.05 yourself, and you will
>> see that the primes look OK. I attach a pdf result of your file,
>> compiled with 1.05.
>>
>> /Mikael
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

As far as I understand 1.05 will be out at the same time as the
context meeting takes place (Sepbember?).

For the thread, it was this one (that you participated in):
https://mailman.ntg.nl/pipermail/ntg-context/2017/088747.html . I
think the information you need is available there, but still:

I run linux (ubuntu), and these are the steps that made it work for me
(with help of luigi and Taco):

1) get the files

svn checkout --username anonsvn --password anonsvn
https://serveur-svn.lri.fr/svn/modhel/luatex/branches/experimental/

2) compile:

step into the folder experimental and run build.sh

3) copy the luatex binary to a place where it is found

I chose to replace the one from garden, and it seems to work.

Good luck!

/Mikael
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug regarding placement and size of primes

2017-06-12 Thread Mathias Schickel
Hi Mikael,

when will LuaTeX 1.05 be released? And how can I get the source for compilation 
(and what exactly will I have to do to get everything to work)?
Besides: Do you have a link to the thread you are referring to?

Best
/Mathias


> Am 12.06.2017 um 12:57 schrieb Mikael P. Sundqvist <mic...@gmail.com>:
> 
> On Mon, Jun 12, 2017 at 12:32 PM, Mathias Schickel
> <m...@fa.uni-tuebingen.de> wrote:
>> Dear Hans,
>> 
>> the newest beta (I have updated some hours ago) contains again some bugs 
>> regarding the size and placement of primes. You can verify that by using the 
>> following minimal example (created to show some older bugs being resolved 
>> meanwhile):
>> 
>> %%%
>> \starttext
>> %
>> Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$.
>> %
>> \startformula
>>%
>>\int\nolimits_a^b \bigl(\|f(x)\|\bigr)\, {\mathrm d}x
>>%
>> \stopformula
>> %
>> \stoptext
>> %%%
>> 
>> The output is attached. The primes are obviously rendered too small. And 
>> while $f'$ seems to lead to a placement of the prime a little too low, 
>> $f^{'}$ seems to cause the prime being placed too high.
>> 
>> Best
>> Mathias
>> 
>> 
>> 
>> ___
>> 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://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> ___
> 
> I think this is intended (see the other thread). Hans decided to do
> the primes differently, which means that they will look strange until
> luatex 1.05 is out. You can compile luatex 1.05 yourself, and you will
> see that the primes look OK. I attach a pdf result of your file,
> compiled with 1.05.
> 
> /Mikael
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Bug regarding placement and size of primes

2017-06-12 Thread Mikael P. Sundqvist
On Mon, Jun 12, 2017 at 12:32 PM, Mathias Schickel
<m...@fa.uni-tuebingen.de> wrote:
> Dear Hans,
>
> the newest beta (I have updated some hours ago) contains again some bugs 
> regarding the size and placement of primes. You can verify that by using the 
> following minimal example (created to show some older bugs being resolved 
> meanwhile):
>
> %%%
> \starttext
> %
> Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$.
> %
> \startformula
> %
> \int\nolimits_a^b \bigl(\|f(x)\|\bigr)\, {\mathrm d}x
> %
> \stopformula
> %
> \stoptext
> %%%
>
> The output is attached. The primes are obviously rendered too small. And 
> while $f'$ seems to lead to a placement of the prime a little too low, 
> $f^{'}$ seems to cause the prime being placed too high.
>
> Best
> Mathias
>
>
>
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

I think this is intended (see the other thread). Hans decided to do
the primes differently, which means that they will look strange until
luatex 1.05 is out. You can compile luatex 1.05 yourself, and you will
see that the primes look OK. I attach a pdf result of your file,
compiled with 1.05.

/Mikael


primes105.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Bug regarding placement and size of primes

2017-06-12 Thread Mathias Schickel
Dear Hans,

the newest beta (I have updated some hours ago) contains again some bugs 
regarding the size and placement of primes. You can verify that by using the 
following minimal example (created to show some older bugs being resolved 
meanwhile):

%%%
\starttext
%
Compare $f'$ to $(f')$ and to $f''$, $(f'')$, $f^{''}$ and $(f^{''})$.
%
\startformula
%
\int\nolimits_a^b \bigl(\|f(x)\|\bigr)\, {\mathrm d}x
%
\stopformula
%
\stoptext
%%%

The output is attached. The primes are obviously rendered too small. And while 
$f'$ seems to lead to a placement of the prime a little too low, $f^{'}$ seems 
to cause the prime being placed too high.

Best
Mathias




Primes.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Hans Hagen

On 6/7/2017 5:12 PM, Otared Kavian wrote:

Hi,

Indeed using \frac yields a weird result in the example sent by Mikael.
Compare the output of the three formulas below, with or without 
\setupmathradical[sqrt][alternative=default].


The results are correct using \over in both cases, while the first one 
is weird when using \frac and \setupmathradical[sqrt][alternative=default].


Best regards: OK
%%% start of test file
\starttext
\startbuffer[math]
\startformula
\sqrt{1+\Bigl(\frac{f(x_k)-f(x_{k-1})}{x_k-x_{k-1}}\Bigr)^2}
\stopformula

\startformula
1+\Bigl(\frac{f(x_k)-f(x_{k-1})}{x_k-x_{k-1}}\Bigr)^2
\stopformula

\startformula
\sqrt{1+\Bigl({f(x_k)-f(x_{k-1}) \over x_k - x_{k-1}}\Bigr)^2}
\stopformula
\stopbuffer

\getbuffer[math]
\hairline

\setupmathradical[sqrt][alternative=default]

\getbuffer[math]

\stoptext

interesting side effect of Ustack (i'll look at it)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Otared Kavian
Hi,

Indeed using \frac yields a weird result in the example sent by Mikael.
Compare the output of the three formulas below, with or without 
\setupmathradical[sqrt][alternative=default].

The results are correct using \over in both cases, while the first one is weird 
when using \frac and \setupmathradical[sqrt][alternative=default].

Best regards: OK
%%% start of test file
\starttext
\startbuffer[math]
\startformula
\sqrt{1+\Bigl(\frac{f(x_k)-f(x_{k-1})}{x_k-x_{k-1}}\Bigr)^2}
\stopformula

\startformula
1+\Bigl(\frac{f(x_k)-f(x_{k-1})}{x_k-x_{k-1}}\Bigr)^2
\stopformula

\startformula
\sqrt{1+\Bigl({f(x_k)-f(x_{k-1}) \over x_k - x_{k-1}}\Bigr)^2}
\stopformula
\stopbuffer

\getbuffer[math]
\hairline

\setupmathradical[sqrt][alternative=default]

\getbuffer[math]

\stoptext
%%% end of test file


> On 7 Jun 2017, at 16:50, Mikael P. Sundqvist <mic...@gmail.com> wrote:
>> […]
> 
> Hans,
> 
> maybe the \setupmathradical[sqrt][alternative=default] was not so
> successful after all. Or maybe this is a bug:
> 
> %%% start of test file
> \setupmathradical[sqrt][alternative=default]
> 
> \starttext
> \startformula
> \sqrt{1+\Bigl(\frac{f(x_k)-f(x_{k-1})}{x_k-x_{k-1}}\Bigr)^2}
> \stopformula
> \stoptext
> %%% stop of test file
> 
> The numerator looks too small in my opinion. Compiled with 2017.06.06 13:22.
> 
> /Mikael
> ___
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Mikael P. Sundqvist
On Mon, Jun 5, 2017 at 10:24 AM, Mikael P. Sundqvist <mic...@gmail.com> wrote:
> Hi,
>
> this might be a matter of taste.
>
> look at the output of (attached). In my opinion the first square root
> is to "high", while it looks better on the second line. From
> setup-en.pdf it looks like the default of \setupmathradical is set to
> normal (and not default). I don't understand what normal should mean,
> but I think the alternative=default looks better. (The lucida fonts
> are loaded in this example, since the effect is more clear for them).
>
> /Mikael
>
> \setupbodyfont[lucidaot]
>
> \starttext
>
> \startTEXpage[offset=2pt]
> \startformula
> \sqrt{1+x^2}\neq \frac{1}{\sqrt{1+x^2}}
> \stopformula
>
> %the default setting for mathradical seems to be "normal". We change
> it to "normal"
> \setupmathradical[sqrt][alternative=default]
>
> \startformula
> \displaystyle\sqrt{1+x^2}\neq \frac{1}{\sqrt{1+x^2}}
> \stopformula
> \stopTEXpage
>
> \stoptext

Hans,

maybe the \setupmathradical[sqrt][alternative=default] was not so
successful after all. Or maybe this is a bug:

%%% start of test file
\setupmathradical[sqrt][alternative=default]

\starttext
\startformula
\sqrt{1+\Bigl(\frac{f(x_k)-f(x_{k-1})}{x_k-x_{k-1}}\Bigr)^2}
\stopformula
\stoptext
%%% stop of test file

The numerator looks too small in my opinion. Compiled with 2017.06.06 13:22.

/Mikael


ctx-example22.pdf
Description: Adobe PDF document
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] Custom sized delimiters vanish

2017-05-02 Thread Henri Menke
Dear list,

In TL2016 custom sized delimiters of \lvert and \rvert simply vanish.
 The same happens when I replace \lvert (or \rvert) by \vert and |.
 MWE is below.

Cheers, Henri



\starttext

\startformula
  \left \lvert \frac{a}{b} \right\rvert
  \quad
  \Biggl\lvert \frac{a}{b} \Biggr\rvert
  \quad
  \biggl\lvert \frac{a}{b} \biggr\rvert
  \quad
  \Bigl \lvert \frac{a}{b} \Bigr \rvert
  \quad
  \bigl \lvert \frac{a}{b} \bigr \rvert
\stopformula

\stoptext
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Wrong parentheses in latest beta

2016-08-09 Thread Mikael P. Sundqvist
On Tue, Aug 9, 2016 at 10:03 PM, Hans Hagen <pra...@wxs.nl> wrote:
> On 8/9/2016 9:31 PM, Mikael P. Sundqvist wrote:
>>
>> Hi!
>>
>> In the newest version (ConTeXt  ver: 2016.08.08 21:28 MKIV beta  fmt:
>> 2016.8.9  int: english/english) the document
>>
>> \starttext
>> $(1+1)$ and $\bigl(1+1\bigr)$ and $\Bigl(1+1\Bigr)$.
>> \stoptext
>>
>> compiles to the attached file. For \big and \Big the ( is ) and the )
>> is (. I think this is a bug. I have not tried other sizes.
>
>
> ah, wrong check ... fixed
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | 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
> ___

Thank you for a quick fix, it works now.

Mikael
___
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] Wrong parentheses in latest beta

2016-08-09 Thread Hans Hagen

On 8/9/2016 9:31 PM, Mikael P. Sundqvist wrote:

Hi!

In the newest version (ConTeXt  ver: 2016.08.08 21:28 MKIV beta  fmt:
2016.8.9  int: english/english) the document

\starttext
$(1+1)$ and $\bigl(1+1\bigr)$ and $\Bigl(1+1\Bigr)$.
\stoptext

compiles to the attached file. For \big and \Big the ( is ) and the )
is (. I think this is a bug. I have not tried other sizes.


ah, wrong check ... fixed

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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
___

[NTG-context] Space between the main items

2016-06-04 Thread Fabrice Couvreur
Hello everyone,
How to insert more vertical space between the main items in the following
code ?


\def\point#1#2{$\bigl(#1\,;#2\bigr)$}

\def\vector#1{\vec{#1}}

\definemathmatrix
  [pmatrix]
  [left={\left(\,},right={\,\right)}]

\starttext


\startitemize[n][stopper={.},style=bold,color=darkred]

\item Les coordonnées du vecteur \math{\vector{AB}} sont :

\blank[formula]

\startitemize[a,columns,joinedup,pack,1*broad,four]
 [stopper={.},style=bold,color=darkred]

\item \math{\startpmatrix 2 \NR 1\NR  \stoppmatrix}

\item \math{\startpmatrix -2 \NR 2\NR  \stoppmatrix}

\item \math{\startpmatrix 3 \NR -3 \NR  \stoppmatrix}

\item \math{\startpmatrix -3 \NR 3 \NR  \stoppmatrix}

\stopitemize

\blank[formula]

\item Les coordonnées du vecteur \math{\vector{CD}} sont :

\blank[formula]

\startitemize[a,columns,joinedup,pack,1*broad,four]
 [stopper={.},style=bold,color=darkred]

\item \math{\startpmatrix -2 \NR 3 \NR  \stoppmatrix}

\item \math{\startpmatrix 1  \NR 5 \NR  \stoppmatrix}

\item \math{\startpmatrix 0  \NR 5 \NR  \stoppmatrix}

\item \math{\startpmatrix 5  \NR 0 \NR  \stoppmatrix}

\stopitemize

\blank[formula]

\item Les coordonnées du vecteur \math{\vector{p}=\vector{AC}+\vector{FE}}
sont :

\blank[formula]

\startitemize[a,columns,joinedup,pack,1*broad,four]
 [stopper={.},style=bold,color=darkred]

\item \math{\startpmatrix 3 \NR 3 \NR  \stoppmatrix}

\item \math{\startpmatrix -3  \NR 3 \NR  \stoppmatrix}

\item \math{\startpmatrix 3  \NR -3 \NR  \stoppmatrix}

\item \math{\startpmatrix -3  \NR -3 \NR  \stoppmatrix}

\stopitemize

\blank[formula]

\item Les coordonnées du point \math{G} tel que
\math{\vector{BG}=\vector{FA}} sont :

\blank[formula]

\startitemize[a,columns,joinedup,pack,1*broad,four]
 [stopper={.},style=bold,color=darkred]

\item \point{1}{3}

\item \point{3}{2}

\item \point{2}{3}

\item \point{1}{-4}

\stopitemize

\stopitemize

\stoptext
___
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] Disappearing \rrbracket

2016-02-24 Thread Nicola

On 2016-02-24 19:19:19 +, Hans Hagen said:


On 2/24/2016 5:48 PM, Nicola wrote:

I have a problem with the symbol in the subject. This is a
minimal document:

\starttext
$\llbracket x\rrbracket$
$\bigl\llbracket x\bigr\rrbracket$
$\Bigl\llbracket x\Bigr\rrbracket$
$\biggl\llbracket x\biggr\rrbracket$
$\Biggl\llbracket x\Biggr\rrbracket$
\stoptext

Using ConTeXt from TeX Live 2015, \rrbracket is rendered only
in the first case (current beta is ok). Can you reproduce
this? Is there a workaround?


use context from the contextgarden (more recent luatex too)


I have followed the instructions at

   http://wiki.contextgarden.net/Mac_Installation

rsync -av rsync://contextgarden.net/minimals/setup/first-setup.sh .
sh ./first-setup.sh --context=current --modules=all --engine=luatex

It fails with

! Undefined control sequence.
l.1020 \pdfoutput
\zerocount

in syst-ini.mkiv.

Nicola


___
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] Disappearing \rrbracket

2016-02-24 Thread Hans Hagen

On 2/24/2016 5:48 PM, Nicola wrote:

I have a problem with the symbol in the subject. This is a
minimal document:

\starttext
$\llbracket x\rrbracket$
$\bigl\llbracket x\bigr\rrbracket$
$\Bigl\llbracket x\Bigr\rrbracket$
$\biggl\llbracket x\biggr\rrbracket$
$\Biggl\llbracket x\Biggr\rrbracket$
\stoptext

Using ConTeXt from TeX Live 2015, \rrbracket is rendered only
in the first case (current beta is ok). Can you reproduce
this? Is there a workaround?


use context from the contextgarden (more recent luatex too)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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
___

[NTG-context] Disappearing \rrbracket

2016-02-24 Thread Nicola

I have a problem with the symbol in the subject. This is a
minimal document:

\starttext
$\llbracket x\rrbracket$
$\bigl\llbracket x\bigr\rrbracket$
$\Bigl\llbracket x\Bigr\rrbracket$
$\biggl\llbracket x\biggr\rrbracket$
$\Biggl\llbracket x\Biggr\rrbracket$
\stoptext

Using ConTeXt from TeX Live 2015, \rrbracket is rendered only
in the first case (current beta is ok). Can you reproduce
this? Is there a workaround?

Nicola


___
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] No space after a closing delimiter

2015-08-27 Thread Fabrice Couvreur
In fact, you are both right, write the macro differently.


\def\repere{\bigl(O\,;I,J\bigr)}

\starttext
\dorecurse{2}{blabla} $\repere$ \dorecurse{2}{blabla}

\dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}

\stoptext

Thanks,
Fabrice

2015-08-27 13:32 GMT+02:00 Peter Münster pmli...@free.fr:

 On Thu, Aug 27 2015, Fabrice Couvreur wrote:

  I did not know it because, before migrating to context, I used latex with
  this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.

 In LaTeX there is no space neither:

 --8---cut here---start-8---
 \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
 \documentclass{article}
 \begin{document}
 x \repere x
 \end{document}
 --8---cut here---end---8---

 --
Peter

 ___
 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

 ___

___
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] No space after a closing delimiter

2015-08-27 Thread Hans Hagen

On 8/27/2015 2:39 PM, Fabrice Couvreur wrote:

In fact, you are both right, write the macro differently.


\def\repere{\bigl(O\,;I,J\bigr)}

\starttext
\dorecurse{2}{blabla} $\repere$ \dorecurse{2}{blabla}

\dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}

\stoptext


you can add \autoinsertnextspace to macros


Thanks,
Fabrice

2015-08-27 13:32 GMT+02:00 Peter Münster pmli...@free.fr
mailto:pmli...@free.fr:

On Thu, Aug 27 2015, Fabrice Couvreur wrote:

 I did not know it because, before migrating to context, I used latex with
 this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.

In LaTeX there is no space neither:

--8---cut here---start-8---
\newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
\documentclass{article}
\begin{document}
x \repere x
\end{document}
--8---cut here---end---8---

--
Peter

___
If your question is of interest to others as well, please add an
entry to the Wiki!

maillist : ntg-context@ntg.nl mailto: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

___




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




--

-
  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] No space after a closing delimiter

2015-08-27 Thread Otared Kavian
Thanks Hans!
I wikified your tip:
http://wiki.contextgarden.net/autoinsertnextspace

Best regards: OK

 On 27 Aug 2015, at 20:42, Hans Hagen pra...@wxs.nl wrote:
 
 On 8/27/2015 2:39 PM, Fabrice Couvreur wrote:
 In fact, you are both right, write the macro differently.
 
 
 \def\repere{\bigl(O\,;I,J\bigr)}
 
 \starttext
 \dorecurse{2}{blabla} $\repere$ \dorecurse{2}{blabla}
 
 \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}
 
 \stoptext
 
 you can add \autoinsertnextspace to macros
 
 Thanks,
 Fabrice
 
 2015-08-27 13:32 GMT+02:00 Peter Münster pmli...@free.fr
 mailto:pmli...@free.fr:
 
On Thu, Aug 27 2015, Fabrice Couvreur wrote:
 
 I did not know it because, before migrating to context, I used latex 
 with
 this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
 
In LaTeX there is no space neither:
 
--8---cut here---start-8---
\newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
\documentclass{article}
\begin{document}
x \repere x
\end{document}
--8---cut here---end---8---
 
--
Peter

 ___
If your question is of interest to others as well, please add an
entry to the Wiki!
 
maillist : ntg-context@ntg.nl mailto: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

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

___
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] No space after a closing delimiter

2015-08-27 Thread Fabrice Couvreur
Hi Otared,
I did not know it because, before migrating to context, I used latex with
this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
It's not very convenient to add \ every time !
Thanks,
Fabrice

2015-08-27 11:30 GMT+02:00 Otared Kavian ota...@gmail.com:

 Hi Fabrice,

 This is a normal behaviour of TeX macro commands. You should use your
 command by invoking it like the following:

 \repere\ blabla blabal

 Best regards: OK

  On 27 Aug 2015, at 10:06, Fabrice Couvreur fabrice1.couvr...@gmail.com
 wrote:
 
  Hi,
  The macro \repere does not create a space between the closing delimiter
 and the following text, why ?
  Thanks,
  Fabrice
 
  \def\repere{$\bigl(O\,;I,J\bigr)$}
 
  \starttext
  \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}
 
  \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}
 
  \stoptext
 
 ___
  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
 
 ___


 ___
 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

 ___
___
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] No space after a closing delimiter

2015-08-27 Thread Otared Kavian
Hi Fabrice,

If you use your command \repere more often in the middle of a sentence you can 
slightly modify the definition of your macro in order to have a space after 
\repere. However, when your command is used at the end of a sentence, you have 
to add \unskip after your command, as in the following example:

\define\repere{$\bigl(O\,;I,J\bigr)$\space}

\starttext
\dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}

Déterminer la trajectoire dans le repère \repere\unskip.

\dorecurse{2}{Blabla} \repere\ \dorecurse{2}{blabla}

\dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}

\stoptext

Best regards: OK

 On 27 Aug 2015, at 12:52, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi Otared,
 I did not know it because, before migrating to context, I used latex with 
 this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.
 It's not very convenient to add \ every time !
 Thanks,
 Fabrice
 
 2015-08-27 11:30 GMT+02:00 Otared Kavian ota...@gmail.com 
 mailto:ota...@gmail.com:
 Hi Fabrice,
 
 This is a normal behaviour of TeX macro commands. You should use your command 
 by invoking it like the following:
 
 \repere\ blabla blabal
 
 Best regards: OK
 
  On 27 Aug 2015, at 10:06, Fabrice Couvreur fabrice1.couvr...@gmail.com 
  mailto:fabrice1.couvr...@gmail.com wrote:
 
  Hi,
  The macro \repere does not create a space between the closing delimiter and 
  the following text, why ?
  Thanks,
  Fabrice
 
  \def\repere{$\bigl(O\,;I,J\bigr)$}
 
  \starttext
  \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}
 
  \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}
 
  \stoptext
  ___
  If your question is of interest to others as well, please add an entry to 
  the Wiki!
 
  maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / 
  http://www.ntg.nl/mailman/listinfo/ntg-context 
  http://www.ntg.nl/mailman/listinfo/ntg-context
  webpage  : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / 
  http://tex.aanhet.net http://tex.aanhet.net/
  archive  : http://foundry.supelec.fr/projects/contextrev/ 
  http://foundry.supelec.fr/projects/contextrev/
  wiki : http://contextgarden.net http://contextgarden.net/
  ___
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl mailto:ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / 
 http://tex.aanhet.net http://tex.aanhet.net/
 archive  : http://foundry.supelec.fr/projects/contextrev/ 
 http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net http://contextgarden.net/
 ___
 
 ___
 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
 ___

___
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] No space after a closing delimiter

2015-08-27 Thread Peter Münster
On Thu, Aug 27 2015, Fabrice Couvreur wrote:

 I did not know it because, before migrating to context, I used latex with
 this :  \newcommand{\repere}{$\bigl(O\,;I,J\bigr)$.

In LaTeX there is no space neither:

--8---cut here---start-8---
\newcommand{\repere}{$\bigl(O\,;I,J\bigr)$}
\documentclass{article}
\begin{document}
x \repere x
\end{document}
--8---cut here---end---8---

-- 
   Peter
___
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] No space after a closing delimiter

2015-08-27 Thread Otared Kavian
Hi Fabrice,

This is a normal behaviour of TeX macro commands. You should use your command 
by invoking it like the following:

\repere\ blabla blabal

Best regards: OK

 On 27 Aug 2015, at 10:06, Fabrice Couvreur fabrice1.couvr...@gmail.com 
 wrote:
 
 Hi,
 The macro \repere does not create a space between the closing delimiter and 
 the following text, why ?
 Thanks,
 Fabrice
 
 \def\repere{$\bigl(O\,;I,J\bigr)$}
 
 \starttext
 \dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}
 
 \dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}
 
 \stoptext
 ___
 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
 ___

___
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] No space after a closing delimiter

2015-08-27 Thread Fabrice Couvreur
Hi,
The macro \repere does not create a space between the closing delimiter and the
following text, why ?
Thanks,
Fabrice

\def\repere{$\bigl(O\,;I,J\bigr)$}

\starttext
\dorecurse{2}{blabla} \repere \dorecurse{2}{blabla}

\dorecurse{2}{blabla} $\bigl(O\,;I,J\bigr)$ \dorecurse{2}{blabla}

\stoptext
___
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] Changing font for math function

2015-05-12 Thread Aditya Mahajan

On Tue, 12 May 2015, Maggyero wrote:


Hans Hagen wrote:
for functions one can now use:
\setupmathematics
  [functionstyle=\rm]


Fantastic! Thank you Hans, it is way better than the old mechanism
\setmathfunctionstyle. Now I have a few suggestions to improve the
consistency of this new mechanism. First, I think this functionstyle key
a) should be better called 'mathlabelstyle';


No. The style applies to anything called using \mfunction{...}, so 
functionstyle and functioncoloar are appropriate keys.



b) be default to \tf to make the FONT ALTERNATIVE always upright;


I disagree. The default should be \mathupright (as is the case in amstex 
and latex, and probably also plaintex). We now have the option to change 
it to \tf if desired.



c) be linked to this following new definition in math-ini.mkiv:

+ \unexpanded\def\mathlabel#1{\text{\mathlabelstyle #1}}

so that \mathlabel can be used for labeling math objects like functions but
ALSO for labeling variables with subscripts (e.g., \rho_{\mathlabel{air}}).
The hardcoded \text in the definition of \mathlabel is used here for these
5 reasons:


Hans already replied to that.


That \mathlabel should replace \mfunction which should be removed, and
\mfunctionlabeltext should be removed as well and one should directly use
the already defined \mathlabeltext instead, for these 3 reasons:


I strongly disagree to this. These are two completely different issues 
(wanting a macro to tag multiletter variable names vs a macro to tag 
log-like operators).



1. Every command containing the word 'labeltext' should not have a style
attached to it.
2. The word 'function' is misleading because \mfunction and
\mfunctionlabeltext do not create a \mathop atom and it makes the user
believe its usage is restricted for labeling functions while the command
should also be used for labeling variable with subscripts (e.g.,
\rho_{\mathlabel{air}} is far better than \rho_\mfunction{air}).
3. Using only \mathlabeltext with \setuplabeltext is also more consistent
with the current \labeltext that works with \setuplabeltext.

Thus the function definitions in math-def.mkiv should be changed:

- \definemathcommand [arccos]  [nolop] {\mfunctionlabeltext{arccos}}
+ \definemathcommand [arccos]  [nolop] {\mathlabel{\mathlabeltext{arccos}}}
etc.


I don't see the rationale for this.


And I think you should add in this file the definition of the differential
operator which is so widely used in mathematics, so that users have at
their disposal once for all a proper implementation of this operator and
don't have to make their own hack:

+ \definemathcommand[diff]{\mathop{\mathlabel{d}}\mathopen{}}


Note that there is no consensus on how the `d` in calculus should be 
typeset. There are also \differentiald and \differentialD that map to 
unicode slots.



\definemathcommand[arsinh][nolop]{\mathlabel{arsinh}}

\starttext
$\arsinh z = \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par
$\rho_{\mathlabel{air}} = \frac{p}{R_{\mathlabel{specific}}T}$\par
\stoptext


\mfunction already does that.

I'll reply to the rest of the message later.

Aditya
___
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] Changing font for math function

2015-05-12 Thread Hans Hagen

On 5/12/2015 4:19 PM, Maggyero wrote:

 Hans Hagen wrote:
 for functions one can now use:
 \setupmathematics
[functionstyle=\rm]

Fantastic! Thank you Hans, it is way better than the old mechanism
\setmathfunctionstyle. Now I have a few suggestions to improve the
consistency of this new mechanism. First, I think this functionstyle key
a) should be better called 'mathlabelstyle';
b) be default to \tf to make the FONT ALTERNATIVE always upright;
c) be linked to this following new definition in math-ini.mkiv:

+ \unexpanded\def\mathlabel#1{\text{\mathlabelstyle #1}}

so that \mathlabel can be used for labeling math objects like functions
but ALSO for labeling variables with subscripts (e.g.,
\rho_{\mathlabel{air}}). The hardcoded \text in the definition of
\mathlabel is used here for these 5 reasons:
1. It CAN make the FONT STYLE adaptative to the surrounding style (if
the \mathlabelstyle inside—defined by the user in
\setupmathematics[mathlabelstyle=]—does not specify another FONT STYLE
like \rm, \ss or \tt).
2. It uses proper mathcodes (hyphens are not converted to minus binary
operators—useful if one wants to call its function or subscript
'low-frequency' for instance—, apostrophes are not converted to
primes—useful if one wants to call its function 'Riemann's function' for
instance).
3. It uses proper kerning (if one wants to call its function or
subscript 'WALL' for instance).
4. It uses proper ligatures (if one wants to call its function or
subscript 'efficiency' for instance).
5. It avoids the user having to add \kern\zeropoint to prevent vertical
alignment to the middle of the fraction bar when used inside \mathop for
one-character function names (if one wants to call its function 'd' for
instance).

That \mathlabel should replace \mfunction which should be removed, and
\mfunctionlabeltext should be removed as well and one should directly
use the already defined \mathlabeltext instead, for these 3 reasons:
1. Every command containing the word 'labeltext' should not have a style
attached to it.
2. The word 'function' is misleading because \mfunction and
\mfunctionlabeltext do not create a \mathop atom and it makes the user
believe its usage is restricted for labeling functions while the command
should also be used for labeling variable with subscripts (e.g.,
\rho_{\mathlabel{air}} is far better than \rho_\mfunction{air}).
3. Using only \mathlabeltext with \setuplabeltext is also more
consistent with the current \labeltext that works with \setuplabeltext.


mfunction will stay as it is also needed for tagged pdf and exporting 
(basically it's an apply math function thing) so if something else is 
needed another name/mechanism have to be made (with appropriate tagging)


the label itself is a special case as it's optional (and is just there 
for cultural differences as not all countries use the english names)


so, \rho_{\mathlabel{air}} is something different then, some kind of 
multi-character variable?



Thus the function definitions in math-def.mkiv should be changed:

- \definemathcommand [arccos]  [nolop] {\mfunctionlabeltext{arccos}}
+ \definemathcommand [arccos]  [nolop] {\mathlabel{\mathlabeltext{arccos}}}
etc.

And I think you should add in this file the definition of the
differential operator which is so widely used in mathematics, so that
users have at their disposal once for all a proper implementation of
this operator and don't have to make their own hack:

+ \definemathcommand[diff]{\mathop{\mathlabel{d}}\mathopen{}}


i can add a 'diff'


With this new \mathlabel command, the user now have a convenient and
consistent way to label its math objets (functions and variables with
subscripts):

\definemathcommand[arsinh][nolop]{\mathlabel{arsinh}}

\starttext
$\arsinh z = \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par
$\rho_{\mathlabel{air}} = \frac{p}{R_{\mathlabel{specific}}T}$\par
\stoptext

 Hans Hagen wrote:
 \unprotect
 \def\v!sansnormal {sansnormal}
 %def\v!sansbold   {sansbold}
 \def\v!serifnormal{serifnormal}
 \def\v!serifbold  {serifbold}
 \definealternativestyle [\v!sansnormal]  [\ss\tf]
 %definealternativestyle [\v!sansbold][\ss\bf]
 \definealternativestyle [\v!serifnormal] [\rm\tf]
 \definealternativestyle [\v!serifbold]   [\rm\bf]
 \protect

In this case, for completeness, I would also add the definitions for the
remaining style \tt:

\def\v!mononormal {mononormal}
\def\v!monobold {monobold}
\definealternativestyle [\v!mononormal]  [\tt\tf]
\definealternativestyle [\v!monobold][\tt\bf]


ok


 Aditya Mahajan wrote:
 \sin etc should not behave like \text{...}. \text should adapt to the
surrounding style while \mathoptext should not. In particular, in the
following
{\ss $\sin x$}
{\bf $\sin x$}
 \sin should be in normal text upright font and not adapted to the
surrounded text.
 Is it possible to set a value of functionstyle so that the surrounding
text font styles are ignored (but the font size is not).

You should try \mathop{\text{\rm\tf sin}} or \mathoptext{\rm\tf

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
Hans Hagen wrote:
for functions one can now use:
\setupmathematics
   [functionstyle=\rm]

Fantastic! Thank you Hans, it is way better than the old mechanism
\setmathfunctionstyle. Now I have a few suggestions to improve the
consistency of this new mechanism. First, I think this functionstyle key
a) should be better called 'mathlabelstyle';
b) be default to \tf to make the FONT ALTERNATIVE always upright;
c) be linked to this following new definition in math-ini.mkiv:

+ \unexpanded\def\mathlabel#1{\text{\mathlabelstyle #1}}

so that \mathlabel can be used for labeling math objects like functions but
ALSO for labeling variables with subscripts (e.g., \rho_{\mathlabel{air}}).
The hardcoded \text in the definition of \mathlabel is used here for these
5 reasons:
1. It CAN make the FONT STYLE adaptative to the surrounding style (if the
\mathlabelstyle inside—defined by the user in
\setupmathematics[mathlabelstyle=]—does not specify another FONT STYLE like
\rm, \ss or \tt).
2. It uses proper mathcodes (hyphens are not converted to minus binary
operators—useful if one wants to call its function or subscript
'low-frequency' for instance—, apostrophes are not converted to
primes—useful if one wants to call its function 'Riemann's function' for
instance).
3. It uses proper kerning (if one wants to call its function or subscript
'WALL' for instance).
4. It uses proper ligatures (if one wants to call its function or subscript
'efficiency' for instance).
5. It avoids the user having to add \kern\zeropoint to prevent vertical
alignment to the middle of the fraction bar when used inside \mathop for
one-character function names (if one wants to call its function 'd' for
instance).

That \mathlabel should replace \mfunction which should be removed, and
\mfunctionlabeltext should be removed as well and one should directly use
the already defined \mathlabeltext instead, for these 3 reasons:
1. Every command containing the word 'labeltext' should not have a style
attached to it.
2. The word 'function' is misleading because \mfunction and
\mfunctionlabeltext do not create a \mathop atom and it makes the user
believe its usage is restricted for labeling functions while the command
should also be used for labeling variable with subscripts (e.g.,
\rho_{\mathlabel{air}} is far better than \rho_\mfunction{air}).
3. Using only \mathlabeltext with \setuplabeltext is also more consistent
with the current \labeltext that works with \setuplabeltext.

Thus the function definitions in math-def.mkiv should be changed:

- \definemathcommand [arccos]  [nolop] {\mfunctionlabeltext{arccos}}
+ \definemathcommand [arccos]  [nolop] {\mathlabel{\mathlabeltext{arccos}}}
etc.

And I think you should add in this file the definition of the differential
operator which is so widely used in mathematics, so that users have at
their disposal once for all a proper implementation of this operator and
don't have to make their own hack:

+ \definemathcommand[diff]{\mathop{\mathlabel{d}}\mathopen{}}

With this new \mathlabel command, the user now have a convenient and
consistent way to label its math objets (functions and variables with
subscripts):

\definemathcommand[arsinh][nolop]{\mathlabel{arsinh}}

\starttext
$\arsinh z = \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par
$\rho_{\mathlabel{air}} = \frac{p}{R_{\mathlabel{specific}}T}$\par
\stoptext

Hans Hagen wrote:
\unprotect
\def\v!sansnormal {sansnormal}
%def\v!sansbold   {sansbold}
\def\v!serifnormal{serifnormal}
\def\v!serifbold  {serifbold}
\definealternativestyle [\v!sansnormal]  [\ss\tf]
%definealternativestyle [\v!sansbold][\ss\bf]
\definealternativestyle [\v!serifnormal] [\rm\tf]
\definealternativestyle [\v!serifbold]   [\rm\bf]
\protect

In this case, for completeness, I would also add the definitions for the
remaining style \tt:

\def\v!mononormal {mononormal}
\def\v!monobold {monobold}
\definealternativestyle [\v!mononormal]  [\tt\tf]
\definealternativestyle [\v!monobold][\tt\bf]

Aditya Mahajan wrote:
\sin etc should not behave like \text{...}. \text should adapt to the
surrounding style while \mathoptext should not. In particular, in the
following
   {\ss $\sin x$}
   {\bf $\sin x$}
\sin should be in normal text upright font and not adapted to the
surrounded text.
Is it possible to set a value of functionstyle so that the surrounding
text font styles are ignored (but the font size is not).

You should try \mathop{\text{\rm\tf sin}} or \mathoptext{\rm\tf sin} (Hans
defined this \mathoptext in math-ini.mkiv as equal to
\mathop#1{\text{1#}}), or equivalently but better: \mathop{\mathlabel{sin}}
with \setupmathematics[mathlabelstyle=\rm\tf] with the new command
\mathlabel that I have defined above.

And in my opinion, names for operators and subscripts should all be
upright, that is adaptative to the surrounding TEXT STYLE (\rm, \ss and
\tt) BUT not adaptative to the surrounding TEXT ALTERNATIVE or MATH
ALTERNATIVE (\it, \bi, \sl, \bs) and stay in the normal alternative \tf
(upright). So for your

[NTG-context] Invisible floor and ceil math delimiters

2015-05-05 Thread Maggyero
Dear members,

Why the floor and ceil math delimiters don't display?

Code:

\starttext
\startformula
\Bigl\lfloor \frac{x}{y}\Bigr\rfloor
\stopformula
\startformula
\Bigl\lceil \frac{x}{y}\Bigr\rceil
\stopformula
\stoptext

Thank you in advance.


Maggyero
___
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] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-27 Thread Maggyero
Mr Hagen, is it the expected behaviour?

\starttext
The delimiters are correctly displayed:
\startformula
\left\lfloor \frac{x}{y}\right\rfloor
\stopformula

The delimiters vanish:
\startformula
\Bigl\lfloor \frac{x}{y}\Bigr\rfloor
\stopformula
\stoptext


Maggyero
___
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] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-25 Thread Maggyero
MWE:

\starttext
The delimiters are correctly displayed:
\startformula
\left\lfloor \frac{x}{y}\right\rfloor
\stopformula

The delimiters vanish:
\startformula
\Bigl\lfloor \frac{x}{y}\Bigr\rfloor
\stopformula
\stoptext


Maggyero
___
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] \lfloor, \rfloor, \lceil, \rceil vanish with \big, \Big, \bigg, \Bigg and their left and right variants

2015-04-24 Thread Maggyero
Dear NTG-ConTeXt members,

The math delimiters for floor and ceiling functions (\lfloor, \rfloor,
\lceil, \rceil) work with the automatic scaling commands (\left and \right)
but vanish with the manual scaling commands (\big, \Big, \bigg, \Bigg,
\bigl, \Bigl, \biggl, \Biggl, \bigr, \Bigr, \biggr, \Biggr). Do I use the
right commands? Or could the developers fix that?

Thank you in advance.


Maggyero
___
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] \Bigr broken in latest beta

2013-08-17 Thread Pablo Rodríguez
Dear Hans,

I‘m afraid that beta from today doesn’t compile what beta from tow days
ago compiled.

Here is the minimal sample:

\starttext
  \startformula
\Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr)
  \stopformula
\stoptext

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___
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] vertical position in itemize and math

2013-03-01 Thread Mikael P. Sundqvist
Hi,

I have two problems with vertical position, one in itemize and one in
math. The example below show them both.

\starttext
\startitemize[n]
\item
\startitemize[a][left={},right={)},stopper=]
\item Bla bla
$\theta = \arctan\bigl(\frac{\bar{y}^2}{\bar{x}^2}\bigr)$ % comment
this line out to see the problem disappear
\stopitemize
\stopitemize

Let
\startformula
A=I-2\frac{NN^T}{N^TN}\,N=\frac{1}{9}X.
\stopformula
\stoptext

The first one is the vertical position of the a) and the following
formula. This is pushed down (because of the formula it seems). What
if I want the a) aligned with the 1.? (I wrote about this problem some
time ago, and it got solved, but that time no math was included)

The second one is the division line in \frac{NN^T}{N^TN} that look
pushed down to me. I'm not sure how it should be, but my guess is
aligned with the minus sign or so.

All this with the latest ConTeXt suite.

/Mikael
___
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] \| should give two || and not one

2013-02-19 Thread Mikael P. Sundqvist
On Tue, Feb 19, 2013 at 10:29 AM, Hans Hagen pra...@wxs.nl wrote:
 On 2/19/2013 8:36 AM, Keith J. Schultz wrote:

 Hi All,

 In a way, it is correct that for compatibility reasons and and convert
 it is good to keep the old syntax.

 Yet, ConTeXt is suppose to be more natural.


 I consider the \{ \} \| etc to be escapes for tex characters. In fact, if
 one wants || in math then it's more natural to support || directly.


 Personally, I find some of the names used in TeX and LaTeX often
 hard to find. Whenever, I needed a function or symbol I to often
 go look it up. I mean that \vert and \Vert are still cryptic. They can
 stand
 for abs, for all in, etc. ..


 a next step (already partially done) is that we organize the names in
 dictionaries as in open math (a bit of work)


 Me, I prefer names that reflect the their functions,


 me too and i wonder if we should have proper names as well i.e. use verbose
 names as default (in char-def.lua) and define the short ones as synonyms (in
 a tex file)

 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
 ___

Fine. In principal I've nothing against typing || for double bars
(even though people moving from TeX/LaTeX probably will be used to |
for one bar and \| for two bars). Some questions:

* Can one expect to get the right (that is the same as \Vert gives)
spacing by typing || (two bars) in ConTeXt in the future?
* Sometimes one would like to write absoulte value of z times absolute
value of w, i.e. |z| times |w|. What if one writes |z||w|, will the
double bar in the middle be equivalent to \Vert? (That is not wanted)
* Will it be possible to write \Bigl|| and \Bigr|| to scale both bars
to other sizes?
* What if one would like to have three bars with the same spacing
between the bars as in \Vert?

/Mikael
___
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] \| should give two || and not one

2013-02-19 Thread Keith J. Schultz
Hi Mikeal,


Am 19.02.2013 um 10:50 schrieb Mikael P. Sundqvist mic...@gmail.com:

 On Tue, Feb 19, 2013 at 10:29 AM, Hans Hagen pra...@wxs.nl wrote:
 
[snip, snip]

 a next step (already partially done) is that we organize the names in
 dictionaries as in open math (a bit of work)
 
 
 Me, I prefer names that reflect the their functions,
 
 
 me too and i wonder if we should have proper names as well i.e. use verbose
 names as default (in char-def.lua) and define the short ones as synonyms (in
 a tex file)
 
 Hans
 
[snip, snip]

 Fine. In principal I've nothing against typing || for double bars
 (even though people moving from TeX/LaTeX probably will be used to |
 for one bar and \| for two bars). Some questions:
 
 * Can one expect to get the right (that is the same as \Vert gives)
 spacing by typing || (two bars) in ConTeXt in the future?
I think we need to find a between input shortcuts and 
feasiblity. One could just use unicode 02016 and \Vert.
In unicodemath you also have \Vvert for three bars.

 * Sometimes one would like to write absoulte value of z times absolute
 value of w, i.e. |z| times |w|. What if one writes |z||w|, will the
 double bar in the middle be equivalent to \Vert? (That is not wanted)
The proper way to lay this out is with a little whitspace between
the to values, so input should be |z| |w| and not as |z||w| !

 * Will it be possible to write \Bigl|| and \Bigr|| to scale both bars
 to other sizes?
 * What if one would like to have three bars with the same spacing
 between the bars as in \Vert?
See above!

regards
Keith.

___
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] A strange problem, probably with \startitemize[columns]

2012-07-28 Thread Marcin Borkowski
  Rozważmy następującą grę.  Rzucamy kością (symetryczną,
  sześcienną), po czym, jeśli chcemy, rzucamy ponownie (ale
  najwyżej raz).
  \startitemize[a,packed][stopper=)]
\startitem
  Jak będzie wyglądała macierz tej gry?
  \startanswer
W~wierszach będą znajdować się {\em strategie gracza},
czyli \quotation{przepisy} określające sposób postępowania
(tj. czy przerzucamy kość czy nie) dla każdego wyniku
pierwszego rzutu.  W~kolumnach będą znajdować się {\em
  strategie przyrody}, czyli wyniki dwóch kolejnych rzutów
kością.
  \stopanswer
\stopitem
\startitem
  Ile jest możliwych strategii gracza, a~ile przyrody w~tej
  grze?
  \startanswer
Gracz ma \math{2^6=64} strategie: dla każdego z~sześciu
możliwych wyników niezależnie określamy, czy przerzucamy
kość, czy nie (zasada mnożenia lub wariacje
z~powtórzeniami\ppauza sześć razy wybieramy niezależnie
jedną z~dwóch możliwości).  Przyroda ma \math{6^2=36}
strategii.
  \stopanswer
\stopitem
\startitem
  Rozważmy następującą strategię: \quotation{jeśli wypadnie
\math{k} lub mniej oczek, przerzucamy kość, w~przeciwnym
wypadku pozostajemy przy wyniki pierwszego rzutu}.  Jakie
  powinno być \math{k}, aby wartość oczekiwana wyniku była
  największa?
  \startanswer
Wartość oczekiwana wynosi
\startformula
  k(\tfrac{1}{6^2}1+\cdots+\tfrac{1}{6^2}6)
+\bigl(\tfrac{1}{6}(k+1)+\cdots+\tfrac{1}{6}6\bigr)
  =\tfrac{1}{12}(-k^2+6k+42),
\stopformula
a~więc osiąga maksimum dla \math{k_{\rm max}=3}.
  \stopanswer
\stopitem
  \stopitemize
\stopitem
\startitem
  Rozważmy podobną grę, w~której można przerzucić kość co najwyżej
  dwa razy.
  \startitemize[a,packed][stopper=)]
\startitem
  Ile jest możliwych strategii gracza w~tej grze?
  \startanswer
Po pierwszym rzucie mamy tym razem nie dwie możliwości
(pozostanie bądź przerzucenie), ale \math{1+2^6}
możliwości: pozostanie (jeden sposób) bądź kontynuacja
(\math{2^6} sposobów na mocy poprzedniego zadania).
Ponieważ dalsze postępowanie określamy niezależnie dla
każdego z~sześciu wyników, analogicznie jak poprzednio
mamy
\startformula
  (1+2^6)^6=75\,418\,890\,625
\stopformula
możliwych strategii.
  \stopanswer
\stopitem
\startitem
  Która strategia jest korzystniejsza (daje większą wartość
  oczekiwaną): \quotation{rzucamy tak długo, aż wypadnie
więcej niż \math{3} oczka, ale nie więcej niż trzy razy},
  czy \quotation{jeśli w~pierwszym rzucie wypadła szóstka,
pozostajemy przy tym wyniku, w~przeciwnym przypadku
rzucamy drugi raz; jeśli wówczas wypadnie więcej niż trzy
oczka, pozostajemy przy tym wyniku, a~jeśli nie, rzucamy
po raz ostatni}?
  \startanswer
Pierwsza strategia daje wartość oczekiwaną
\math{4\frac{5}{8}=4{,}625}, zaś druga
\math{4\frac{13}{24}\approx 4{,}542}.
  \stopanswer
\stopitem
  \stopitemize
\stopitem
\startitem
  Rozważmy następującą grę: rzucamy parą kości, po czym możemy raz
  przerzucić jedną, drugą lub obie kości.  Wynikiem jest suma
  oczek na obu kościach, chyba, że wypadły dwie szóstki, wówczas
  wynik wynosi zero.  Jaką zaproponowalibyście strategię w~tej
  grze?
  \startanswer
Pytanie otwarte, nie jesteśmy w~stanie łatwo wyliczyć
strategii maksymalizującej wartość oczekiwaną wyniku w~tej
grze.  Warto przedyskutować kilka problemów związanych z~tą
grą, np. liczbę możliwych strategii (można przyjąć, że kości
są rozróżnialne lub nie!), sposób postępowania, gdy wypadnie
jedna szóstka (np. gdy przerzucimy tylko drugą kość, wartość
oczekiwana wyniesie
\startformula
  \tfrac{1}{6}(6+1)+\cdots+\tfrac{1}{6}(6+5)+\tfrac{1}{6}\cdot0
  =7\tfrac{1}{2}\text{,}
\stopformula
więc jeśli na drugiej kości wypadło więcej niż~\math{1}, nie
warto jej przerzucać), wariant, w~którym za dwie szóstki
otrzymujemy \math{-6} punktów.
  \stopanswer
\stopitem
  \stopexercises
\stopchapter

\startchapter[title={Projektowanie własnej gry\time{reszta
  czasu, \hskip 0pt plus 4em\penalty20\hskip 0pt plus -4em\relax 20--60}}]
  \startsubject[title={Początkowe zasady

[NTG-context] How to achieve a LaTeX-center-like thing

2011-09-06 Thread Marcin Borkowski
Hi,

I'd like to have something like this:

  Let $X$ be a~real Banach space, $D$~an open subset of~$X$
  containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$
  to~$X$.  We say that $T$ satisfies the {\em Mönch condition} if the
  following implication holds:
  \blank[small]
  \startalignment[middle]
If $C\subset\overbar{D}$ is countable and
$C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then
$\overbar{C}$ is compact.
  \stopalignment
  \blank[small]

Is there any option for alignment which would enable me not to put the
blanks manually?

TIA,

-- 
Marcin Borkowski
http://mbork.pl

___
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] How to achieve a LaTeX-center-like thing

2011-09-06 Thread Wolfgang Schuster

Am 06.09.2011 um 12:19 schrieb Marcin Borkowski:

 Hi,
 
 I'd like to have something like this:
 
  Let $X$ be a~real Banach space, $D$~an open subset of~$X$
  containing~$0$ and $T$ a~continuous mapping from $\overbar{D}$
  to~$X$.  We say that $T$ satisfies the {\em Mönch condition} if the
  following implication holds:
  \blank[small]
  \startalignment[middle]
If $C\subset\overbar{D}$ is countable and
$C\subset\clconv\bigl(\{0\}\cup F(C)\bigr)$, then
$\overbar{C}$ is compact.
  \stopalignment
  \blank[small]
 
 Is there any option for alignment which would enable me not to put the
 blanks manually?

\definestartstop
  [centered]
  [before={\blank[small]},
   after={\blank[small]},
   commands={\setupalign[middle]}]

\starttext

…

\startcentered
…
\stopcentered

…

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


Re: [NTG-context] \bigl \bigr \big problems

2010-04-08 Thread Hans Hagen

On 8-4-2010 7:40, Mikael Persson wrote:


Ok Hans, with the beta from yesterday the absolute values change size,
but there are some problems still:

1) The absolute value bars are not just straight lines when using
\big and friends, but som kind of line that is thicker in the middle.
(zoom i on attached pdf)


this is because lm has no such characters so they are made from the 
smaller ones (extensible characters)


in traditional lm this can go unniticed (depends a bit in the exact 
definition but in mkii you will see two stacked | just not touching but 
in mkiv we use overlap - which is custom in opentype anyway); so what 
you observe is an artefact of the viewer - it might be that future 
versions of luatex deal better with this as it relates somewhat with how 
things are dealt with in the backend but you will observe similar 
effects in pdftex


in an earlier version i used rules but then found out that the | has 
round tops (ok, i could use pdf literals to draw lines but not today)



2) The horizontal spacing in the \big version seems to be bigger than
for the \bigl/\bigr version (and similar for \Big vs \Bigl/\Bigr). I'd
expect the same spacing (the l and r are just there for the writer to
easily see what is left and what is right).


repaired .. (i also added \plainbigmathmode


3) I'd expect that \| gives double bars, like the || one get from
\Vert and not |. This is not so (see the attached file). Moreover, it
is not possible to do \bigl\Vert right now to get a bigger ||.


i've added double bars so this works:

$\biggl\Vert x^n\biggr\Vert$
$\biggl{||} x^n\biggr{||}$
$\biggl|\biggl| x^n\biggr|\biggr|$

there will be a new beta later today or tomorrow

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] \bigl \bigr \big problems

2010-04-08 Thread Mikael Persson
On Thu, Apr 8, 2010 at 10:37 AM, Mikael Persson mic...@gmail.com wrote:
 On Thu, Apr 8, 2010 at 10:31 AM, Hans Hagen pra...@wxs.nl wrote:
 On 8-4-2010 7:40, Mikael Persson wrote:

 Ok Hans, with the beta from yesterday the absolute values change size,
 but there are some problems still:

 1) The absolute value bars are not just straight lines when using
 \big and friends, but som kind of line that is thicker in the middle.
 (zoom i on attached pdf)

 this is because lm has no such characters so they are made from the smaller
 ones (extensible characters)

 in traditional lm this can go unniticed (depends a bit in the exact
 definition but in mkii you will see two stacked | just not touching but in
 mkiv we use overlap - which is custom in opentype anyway); so what you
 observe is an artefact of the viewer - it might be that future versions of
 luatex deal better with this as it relates somewhat with how things are
 dealt with in the backend but you will observe similar effects in pdftex

 in an earlier version i used rules but then found out that the | has round
 tops (ok, i could use pdf literals to draw lines but not today)

 2) The horizontal spacing in the \big version seems to be bigger than
 for the \bigl/\bigr version (and similar for \Big vs \Bigl/\Bigr). I'd
 expect the same spacing (the l and r are just there for the writer to
 easily see what is left and what is right).

 repaired .. (i also added \plainbigmathmode

 3) I'd expect that \| gives double bars, like the || one get from
 \Vert and not |. This is not so (see the attached file). Moreover, it
 is not possible to do \bigl\Vert right now to get a bigger ||.

 i've added double bars so this works:

 $\biggl\Vert x^n\biggr\Vert$
 $\biggl{||} x^n\biggr{||}$
 $\biggl|\biggl| x^n\biggr|\biggr|$

 there will be a new beta later today or tomorrow

 Hans

Thanks for you answer and explanation. Is there a reason why you do
not add \| to get double bars? This is the way it is done in LaTeX
(OK, not really an argument). I'm just curious.

Mikael
___
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] \bigl \bigr \big problems

2010-04-08 Thread Hans Hagen

On 8-4-2010 10:37, Mikael Persson wrote:


Thanks for you answer and explanation. Is there a reason why you do
not add \| to get double bars? This is the way it is done in LaTeX
(OK, not really an argument). I'm just curious.


we never had \| in mkii and in mkiv it's equivalent to | (just like \$ 
is $ and not two $'s) .. i can find no reason for an escaped | being two 
|'s


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] \bigl \bigr \big problems

2010-04-07 Thread Mikael Persson
On Tue, Apr 6, 2010 at 5:41 PM, Mikael Persson mic...@gmail.com wrote:
 On Tue, Apr 6, 2010 at 4:43 PM, Hans Hagen pra...@wxs.nl wrote:
 On 6-4-2010 10:30, Mikael Persson wrote:

 Dear list,

 I have problems with \big, \bigl, \Bigl, ...

 %% Example
 \def\foo#1{\type{#1}: #1}

 \starttext
 \foo{$|x|^n$} % as expected.

 \foo{$\bigl|x^n\bigr|$} % expect bigger bars

 \foo{$\big|x^n\big|$} % expect bigger bars

 \foo{$\Bigl|x^n\Bigr|$} % too small again (but bigger than \big)

 \foo{$\biggl|x^n\biggr|$} % too small again (but bigger than \big)

 \foo{$\Biggl|x^n\Biggr|$} % too small again (but bigger than \big)

 \foo{$\|x^n\|$} % expect two bars

 \foo{$\bigl\|x^n\bigr\|$} % expect two bars and bigger ones
 \stoptext
 %%% Stop example

 It gives the attached pdf file with latest minimals and mkiv.

 will be fixed in next beta ... i needed to make a few more virtal shapes (in
 the size chain)

 Great Hans, thanks! Looking forward to the new beta...

 Mikael


Ok Hans, with the beta from yesterday the absolute values change size,
but there are some problems still:

1) The absolute value bars are not just straight lines when using
\big and friends, but som kind of line that is thicker in the middle.
(zoom i on attached pdf)
2) The horizontal spacing in the \big version seems to be bigger than
for the \bigl/\bigr version (and similar for \Big vs \Bigl/\Bigr). I'd
expect the same spacing (the l and r are just there for the writer to
easily see what is left and what is right).
3) I'd expect that \| gives double bars, like the || one get from
\Vert and not |. This is not so (see the attached file). Moreover, it
is not possible to do \bigl\Vert right now to get a bigger ||.

Mikael

PS Compilde with
ConTeXt  ver: 2010.04.07 17:58 MKIV  fmt: 2010.4.8  int: english/english
This is LuaTeX, Version beta-0.60.0-2010040422


bartest.tex
Description: TeX document


bartest.pdf
Description: Adobe PDF document
___
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] \bigl \bigr \big problems

2010-04-06 Thread Mikael Persson
Dear list,

I have problems with \big, \bigl, \Bigl, ...

%% Example
\def\foo#1{\type{#1}: #1}

\starttext
\foo{$|x|^n$} % as expected.

\foo{$\bigl|x^n\bigr|$} % expect bigger bars

\foo{$\big|x^n\big|$} % expect bigger bars

\foo{$\Bigl|x^n\Bigr|$} % too small again (but bigger than \big)

\foo{$\biggl|x^n\biggr|$} % too small again (but bigger than \big)

\foo{$\Biggl|x^n\Biggr|$} % too small again (but bigger than \big)

\foo{$\|x^n\|$} % expect two bars

\foo{$\bigl\|x^n\bigr\|$} % expect two bars and bigger ones
\stoptext
%%% Stop example

It gives the attached pdf file with latest minimals and mkiv.

Mikael


bartest.pdf
Description: Adobe PDF document
___
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] \bigl \bigr \big problems

2010-04-06 Thread Hans Hagen

On 6-4-2010 10:30, Mikael Persson wrote:

Dear list,

I have problems with \big, \bigl, \Bigl, ...

%% Example
\def\foo#1{\type{#1}: #1}

\starttext
\foo{$|x|^n$} % as expected.

\foo{$\bigl|x^n\bigr|$} % expect bigger bars

\foo{$\big|x^n\big|$} % expect bigger bars

\foo{$\Bigl|x^n\Bigr|$} % too small again (but bigger than \big)

\foo{$\biggl|x^n\biggr|$} % too small again (but bigger than \big)

\foo{$\Biggl|x^n\Biggr|$} % too small again (but bigger than \big)

\foo{$\|x^n\|$} % expect two bars

\foo{$\bigl\|x^n\bigr\|$} % expect two bars and bigger ones
\stoptext
%%% Stop example

It gives the attached pdf file with latest minimals and mkiv.


will be fixed in next beta ... i needed to make a few more virtal shapes 
(in the size chain)



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 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] \bigl \bigr \big problems

2010-04-06 Thread Mikael Persson
On Tue, Apr 6, 2010 at 4:43 PM, Hans Hagen pra...@wxs.nl wrote:
 On 6-4-2010 10:30, Mikael Persson wrote:

 Dear list,

 I have problems with \big, \bigl, \Bigl, ...

 %% Example
 \def\foo#1{\type{#1}: #1}

 \starttext
 \foo{$|x|^n$} % as expected.

 \foo{$\bigl|x^n\bigr|$} % expect bigger bars

 \foo{$\big|x^n\big|$} % expect bigger bars

 \foo{$\Bigl|x^n\Bigr|$} % too small again (but bigger than \big)

 \foo{$\biggl|x^n\biggr|$} % too small again (but bigger than \big)

 \foo{$\Biggl|x^n\Biggr|$} % too small again (but bigger than \big)

 \foo{$\|x^n\|$} % expect two bars

 \foo{$\bigl\|x^n\bigr\|$} % expect two bars and bigger ones
 \stoptext
 %%% Stop example

 It gives the attached pdf file with latest minimals and mkiv.

 will be fixed in next beta ... i needed to make a few more virtal shapes (in
 the size chain)

Great Hans, thanks! Looking forward to the new beta...

Mikael
___
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] mkiv math delimiters and |

2009-11-14 Thread Aditya Mahajan
On Fri, Nov 13, 2009 at 4:03 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:

 Hello,

 I have tried to compile an old document (written in mkii times). Among
 other problems that I yet need to isolate, the following minimal
 example doesn't want to compile: $\bigl| x \bigr$ since | aren't
 recognized as candidates for delimiters. There is a workaround of
 course (using \langle, \rangle, ... instead of ), but the three
 characters are just way too handy to use.


| works fine here.  and  don't. I did not know that \left is equivalent
to \left\langle even in plain tex.

I suppose that the behaviour in mkii comes from these lines:

 \definemathcharacter []   [nothing] [sy] [68] [ex] [0A]
 \definemathcharacter []   [nothing] [sy] [69] [ex] [0B]


I guess mkii is imitating plain tex here. (Though, I could not find how this
is happening in plain tex)


 But I'm not sure where mkiv could be changed.


I don't know how to do this.  should behave like a rel without a \left, and
like a delimited with \left.


 I have tried to use
  adobename=greater,
  ...
  mathspec={
   { class=binary, name=gt },
   { class=close, name=rbrace },
  },
 but without any success.


rbrace!!. Probabably you want rangle. You can change the order of the two,
and then  will map to rangle, but you will have to use \gt to get the
relation symbol.

Aditya
___
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] mkiv math delimiters and |

2009-11-14 Thread Taco Hoekwater

Aditya Mahajan wrote:

On Fri, Nov 13, 2009 at 4:03 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


Hello,

I have tried to compile an old document (written in mkii times). Among
other problems that I yet need to isolate, the following minimal
example doesn't want to compile: $\bigl| x \bigr$ since | aren't
recognized as candidates for delimiters. There is a workaround of
course (using \langle, \rangle, ... instead of ), but the three
characters are just way too handy to use.



| works fine here.  and  don't. I did not know that \left is equivalent
to \left\langle even in plain tex.

I suppose that the behaviour in mkii comes from these lines:

\definemathcharacter []   [nothing] [sy] [68] [ex] [0A]
\definemathcharacter []   [nothing] [sy] [69] [ex] [0B]



I guess mkii is imitating plain tex here. (Though, I could not find how this
is happening in plain tex)


From plain.tex:

  \mathcode`\=313C
  \delcode`\=26830A

The first (\mathcode) controls standalone use, the second (\delcode)
use as a delimiter. Both can be set at the same time, and that second
one got lost in the conversion, probably because it has a dedicated
slot in Unicode (U+0x27E8, MATHEMATICAL LEFT ANGLE BRACKET).

Perhaps this can be done with the mathspec field in char-def.lua, but
I do not know how?

Best wishes,
Taco





___
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] mkiv math delimiters and |

2009-11-14 Thread Aditya Mahajan

On Sun, 15 Nov 2009, Taco Hoekwater wrote:


Aditya Mahajan wrote:

On Fri, Nov 13, 2009 at 4:03 AM, Mojca Miklavec 
mojca.miklavec.li...@gmail.com wrote:


Hello,

I have tried to compile an old document (written in mkii times). Among
other problems that I yet need to isolate, the following minimal
example doesn't want to compile: $\bigl| x \bigr$ since | aren't
recognized as candidates for delimiters. There is a workaround of
course (using \langle, \rangle, ... instead of ), but the three
characters are just way too handy to use.



| works fine here.  and  don't. I did not know that \left is equivalent
to \left\langle even in plain tex.

I suppose that the behaviour in mkii comes from these lines:

\definemathcharacter []   [nothing] [sy] [68] [ex] [0A]
\definemathcharacter []   [nothing] [sy] [69] [ex] [0B]



I guess mkii is imitating plain tex here. (Though, I could not find how 
this

is happening in plain tex)


From plain.tex:

 \mathcode`\=313C
 \delcode`\=26830A

The first (\mathcode) controls standalone use, the second (\delcode)
use as a delimiter. Both can be set at the same time, and that second
one got lost in the conversion, probably because it has a dedicated
slot in Unicode (U+0x27E8, MATHEMATICAL LEFT ANGLE BRACKET).

Perhaps this can be done with the mathspec field in char-def.lua, but
I do not know how?


The attached patch gives a working solution for lmmath but does not work 
with cambria. I don't know if the latter is a fault of context mkiv or 
luatex.


In any case,  this is a kludge as we have to define a dummy name. It will 
be better if we could just say name=false. Currently, if I use name=false, 
\left gives an error.


Aditya
diff --git a/char-def.lua b/char-def.lua
index 3aec401..990bfd2 100644
--- a/char-def.lua
+++ b/char-def.lua
@@ -544,8 +544,10 @@ characters.data={
   description=LESS-THAN SIGN,
   direction=on,
   linebreak=al,
-  mathclass=binary,
-  mathname=lt,
+  mathspec={
+{ name=lt, class=binary } ,
+{ name=ltdelim, class=delimiter },
+  },
   mirror=0x003E,
   unicodeslot=0x003C,
  },
@@ -568,8 +570,10 @@ characters.data={
   description=GREATER-THAN SIGN,
   direction=on,
   linebreak=al,
-  mathclass=binary,
-  mathname=gt,
+  mathspec={
+{ name=gt, class=binary } ,
+{ name=gtdelim, class=delimiter },
+  },
   mirror=0x003C,
   unicodeslot=0x003E,
  },
diff --git a/math-vfu.lua b/math-vfu.lua
index 0300bb0..1543833 100644
--- a/math-vfu.lua
+++ b/math-vfu.lua
@@ -566,6 +566,8 @@ fonts.enc.math[large-to-small] = {
 [0x02309] = 0x07, -- rceil
 [0x0007B] = 0x08, -- {
 [0x0007D] = 0x09, -- }
+[0x0003C] = 0x0A, -- 
+[0x0003E] = 0x0B, -- 
 [0x027E8] = 0x0A, -- 
 [0x027E9] = 0x0B, -- 
 [0x0007C] = 0x0C, -- |
___
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] mkiv math delimiters and |

2009-11-13 Thread Mojca Miklavec
Hello,

I have tried to compile an old document (written in mkii times). Among
other problems that I yet need to isolate, the following minimal
example doesn't want to compile: $\bigl| x \bigr$ since | aren't
recognized as candidates for delimiters. There is a workaround of
course (using \langle, \rangle, ... instead of ), but the three
characters are just way too handy to use.

I suppose that the behaviour in mkii comes from these lines:

\definemathcharacter []   [nothing] [sy] [68] [ex] [0A]
\definemathcharacter []   [nothing] [sy] [69] [ex] [0B]

But I'm not sure where mkiv could be changed.

I have tried to use
  adobename=greater,
  ...
  mathspec={
   { class=binary, name=gt },
   { class=close, name=rbrace },
  },
but without any success.

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
___


[NTG-context] Problems with bibtex and @incollection

2009-06-06 Thread Xan
=off,width=broad]},after={\stopframedtext\egroup}]

%% Lema 
\defineenumeration
  [lema]
  [text={Lema}, % Què es mostra
   before={\blank[big]}, % abans de lema, un bigskip
   after={\blank[big]}, % després de lema, un bigskip
   headstyle=bold, % Negreta per la capçaleras
   %between=\blank, % Entre Lemmes una línia en blanc
   titledistance=.5em, % espai entre número i parèntesis.
   textdistance=.5em, % espai entre ) i text
   stopper={.\space}, % Com acaba. Després de parèntesis un '.'
   location=serried,
   width=fit, % que ocupi tot l'espai
   style=italic, % estil del text
   title=yes, % si puc posar o no arguments opcionals
   titlestyle=bf, % estil del títol
   way=bytext, % enumerar en tot el document
   conversion=numbers,indenting=yes] % enumera amb arabic

%% Proposició, corol·laris, teoremes.
%% Comparteix els nombres amb lema
%% Si volem que vagin a part, hem de posar 'number=proposition'
\defineenumeration
  [proposition]
  [lema]
  [text={Proposició}]

\defineenumeration
  [corollary]
  [lema]
  [text={Corol·lari}]

\defineenumeration
  [theorem]
  [lema]
  [text={Teorema}]


%% Definició
\defineenumeration
  [definition]
  [lema]
  [text={Definició},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [notation]
  [definition]
  [text={Notació},style=tf,titlestyle=bf,indenting=yes]

\defineenumeration
  [note]
  [definition]
  [text={Nota},style=tf,titlestyle=bf,indenting=yes]

%% Demostració

\defineenumeration[demo][text={Demostració.\space},number=no,location=serried,width=fit,headstyle=italic,indentnext=yes,between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},style=normal,indenting=yes]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]

%\setuplist[subsection] %[distance=1em] % section = bold. % 
% Això ho trec d'un manual:
%\setuplist[subsection]
%  [margin=1em,
%  numbercommand=\NumCom]
%\def\NumCom#1{\hbox to 2em{\hfill #1}}

% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]

% Definitions/abbreviations
\define[1]\dist{d(\sigma_g(#1), \sigma_h(#1))}
\define[1]\imp{{\bgroup\startframedtext[background=screen,frame=on,width=broad]#1\stopframedtext\egroup}}
%\define[1]\imp{{\bgroup\startframedtext[background=color,backgroundcolor=lightblue,frame=on,width=broad]#1\stopframedtext\egroup}}


% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% Other
\setupunderbar[alternative=b] % Fix underline style
% For putting underline with spaces: \underbar{\dorecurse{40}~}

% Start the text
\starttext

\section{Preliminars}

\startdefinition Siguin $G$ un grup, $A$ un conjunt finit de generadors de $G$ 
i ${\cal P} = \langle A \mid R \rangle$ una presentació finita de $G$. Una 
paraula $w \in A^*$ es {\em nul-homotòpica} per ${\cal P}$ si, i només si, 
$\pi(w) = 1 \in G$, o, equivalentment, si $w$ forma un cicle dins el graf de 
Cayley $\Gamma_{G, A}$.
\stopdefinition

la defininció d'àrea posar que assumeixo que el conjunt de relacions conté 
també els simètrics.

Totes les presentacions finites de $G$ tenen a $A$ com a conjunt finit de 
generadors de $G$.


\section{Millores directes de les fites de la funció de Dehn per grups 
seccionables}

\startlema[area-concatenacio] Siguin $G$ un grup, ${\cal P} = \langle A \mid R 
\rangle$ una presentació finita de $G$ i $u, v, w$ paraules nul-homotòpiques 
per ${\cal P}$. Si $w = u v$ dins el grup lliure $F(A)$, aleshores 
\startformula
\text{area} (w) \leq \text{area}(u) + \text{area}(v).
\stopformula
\stoplema

\startdemo Si $\text{area}(u) = N$ i $\text{area}(v) = M$, aleshores
\startformula
\startmathalignment
 \NC u \NC  = \prod_{i=1}^N x_i^{-1} r_i x_i, \NR[+]
 \NC v \NC  = \prod_{j=1}^M y_j^{-1} s_j y_j, \NR[+]
\stopmathalignment
\stopformula%
per a alguns $x_i, y_j \in F(A)$, $r_i, s_j \in R$, on aquestes igualtats són 
dins el grup lliure $F(A)$. Com que $w = u v$ també dins el grup lliure, tenim 
que
\placeformula[-] \startformula \startsplit
  \NC w = u v \NC = \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) \cdot \bigl( 
\prod_{j=1}^M y_j^{-1} s_j y_j \bigr) \NR
  \NC \NC = (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) \cdot (y_1^{-1} s_1 
y_1) \cdots (y_M^{-1} s_M y_M) \NR
  \NC \NC =  \prod_{k=1}^{M+N} z_k^{-1} t_k z_k
\stopsplit \stopformula
on
\startformula
  z_k = \startcases
\NC x_k\MC 1 \leq k \leq N \NR
\NC y_{k-N} \MC N+1 \leq k \leq N+M, \NR
  \stopcases t_k = \startcases
\NC r_k\MC 1 \leq k \leq N \NR
\NC s_{k-N} \MC N+1 \leq

Re: [NTG-context] Indent after formula in enumeration

2009-05-30 Thread Xan

Thanks Aditya, but it does not work what it should?

With:
\defineenumeration[demo][text={Demostració.\space},number=no,
location=serried,width=fit,headstyle=italic,indentnext=yes,
between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},
style=normal,indenting=yes]

and
\starttext

\startdemo Si $\text{area}(u) = N$ i $\text{area}(v) = M$, aleshores
\startformula
\startmathalignment
\NC u \NC  = \prod_{i=1}^N x_i^{-1} r_i x_i, \NR[+]
\NC v \NC  = \prod_{j=1}^M y_j^{-1} s_j y_j, \NR[+]
\stopmathalignment
\stopformula%
per a alguns $x_i, y_j \in F(A)$, $r_i, s_j \in R$, on aquestes 
igualtats són dins el grup lliure $F(A)$. Com que $w = u v$ també dins 
el grup lliure, tenim que

\placeformula[-] \startformula \startsplit
 \NC w = u v \NC = \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) \cdot 
\bigl( \prod_{j=1}^M y_j^{-1} s_j y_j \bigr) \NR
 \NC \NC = (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) \cdot (y_1^{-1} 
s_1 y_1) \cdots (y_M^{-1} s_M y_M) \NR

 \NC \NC =  \prod_{k=1}^{M+N} z_k^{-1} t_k z_k
\stopsplit \stopformula
on
\startformula
 z_k = \startcases
   \NC x_k\MC 1 \leq k \leq N \NR
   \NC y_{k-N} \MC N+1 \leq k \leq N+M, \NR
 \stopcases t_k = \startcases
   \NC r_k\MC 1 \leq k \leq N \NR
   \NC s_{k-N} \MC N+1 \leq k \leq N+M. \NR
 \stopcases
\stopformula
Llavors, per definició, $\text{area}(w) \leq N+M = \text{area}(u) + 
\text{area}(v)$.

\stopdemo

\stoptext


I have that per a alguns is indenting but on is not.

Why?

Xan.

PS: Please, CCme
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Indent after formula in enumeration

2009-05-30 Thread Xan

En/na Xan ha escrit:

Thanks Aditya, but it does not work what it should?

With:
\defineenumeration[demo][text={Demostració.\space},number=no,
location=serried,width=fit,headstyle=italic,indentnext=yes,
between=\blank,textdistance=.5em,closesymbol={\mathematics{\Box}},
style=normal,indenting=yes]

and
\starttext

\startdemo Si $\text{area}(u) = N$ i $\text{area}(v) = M$, aleshores
\startformula
\startmathalignment
\NC u \NC  = \prod_{i=1}^N x_i^{-1} r_i x_i, \NR[+]
\NC v \NC  = \prod_{j=1}^M y_j^{-1} s_j y_j, \NR[+]
\stopmathalignment
\stopformula%
per a alguns $x_i, y_j \in F(A)$, $r_i, s_j \in R$, on aquestes 
igualtats són dins el grup lliure $F(A)$. Com que $w = u v$ també dins 
el grup lliure, tenim que

\placeformula[-] \startformula \startsplit
 \NC w = u v \NC = \bigl( \prod_{i = 1}^N x_i^{-1} r_i x_i \bigr) 
\cdot \bigl( \prod_{j=1}^M y_j^{-1} s_j y_j \bigr) \NR
 \NC \NC = (x_1^{-1} r_1 x_1)\cdots (x_N^{-1} r_N x_N) \cdot (y_1^{-1} 
s_1 y_1) \cdots (y_M^{-1} s_M y_M) \NR

 \NC \NC =  \prod_{k=1}^{M+N} z_k^{-1} t_k z_k
\stopsplit \stopformula
on
\startformula
 z_k = \startcases
   \NC x_k\MC 1 \leq k \leq N \NR
   \NC y_{k-N} \MC N+1 \leq k \leq N+M, \NR
 \stopcases t_k = \startcases
   \NC r_k\MC 1 \leq k \leq N \NR
   \NC s_{k-N} \MC N+1 \leq k \leq N+M. \NR
 \stopcases
\stopformula
Llavors, per definició, $\text{area}(w) \leq N+M = \text{area}(u) + 
\text{area}(v)$.

\stopdemo

\stoptext


I have that per a alguns is indenting but on is not.

Why?

Xan.

PS: Please, CCme

I have

%Indentation
\setupheads[indentnext=yes]
\setupindenting[yes,small,first]
\setupformulae[indentnext=yes]

in headers.

if I put setupformulae[identnext=yes] and ident=yes for enumerations 
_always_ have indenting after formula even if the text is following.


Xan.
___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] math problems

2009-03-15 Thread Mohamed Bana

hi guys,

i generally use this file to test if math is working, with the recent
update i get a lot of errors such as;

! Missing number, treated as zero.
to be read again
 $
\@@dobig ...o #1\bodyfontsize {}\right @space $
}}
\...@mt@defaultBigl ...\puremathcomm {open}{\Big {#1}
}
l.99 \pauli = \dirac^2 = \Bigl(
 \sum_{j=1}^2
\sigma_j\big(-i\PD{}{x^j}-a_j\bi...

?


with texlive 2008 it works just fine, i've attached the output of the
TL2008.  i'm certain that the same file was compiling just fine with (i
think) luatex 0.31 (or pre 0.31).

the content is from Mikael Persson's thesis.

Mohamed


\usemodule[bib]

\def\mathbb#1{{\blackboard #1}}
\def\pauli{\mathfrak{P}}
\def\mathfrak#1{{\fraktur #1}}


% Matriser av olika typ.
% Paranthesis
\definemathmatrix
[pmatrix]
[left={\left(\,},right={\,\right)}]
% Brackets
\definemathmatrix
[bmatrix]
[left={\left[\,},right={\,\right]}]
% Curly braces
\definemathmatrix
[Bmatrix]
[left={\left\{\,},right={\,\right\}}]
% vertical bars
\definemathmatrix
[vmatrix]
[left={\left\vert\,},right={\,\right\vert}]
% double vertical bars
\definemathmatrix
[Vmatrix]
[left={\left\Vert\,},right={\,\right\Vert}]

\def\PD#1#2{\frac{\partial #1}{\partial #2}}
\def\ann{\mathscr{Q}^{\vphantom{*}}}
\def\mathscr#1{{\gothic #1}}
\def\cre{\mathscr{Q}^*}
\def\dirac{{\mathfrak{D}}}
\def\pform{\mathfrak{p}}
\def\ed{\mfunction{\,d}}
\definemathcommand [dom] [nolop] {\mfunction{Dom}}
\def\bz{\bar{z}}
\def\psip{{\psi_+}}
\def\psim{{\psi_-}}

% \eqref
\definereferenceformat[eqref][left=(,right=)]

\defineenumeration[problem]
[text=Problem,
location=serried,
width=fit,
indenting=first,
distance=0.5em,
	way=bysection,
]

\subsubsection[ksec:paulitvad]{The Pauli operator in $\mathbb{R}^2$}

A charged spin $1/2$ particle is described by the Pauli Hamiltonian, which acts in $L_2(\mathbb{R}^2)\otimes \mathbb{C}^2$, and is formally defined as
\placeformula[keq:pauli]
\startformula
\pauli = 
\startpmatrix
\NC H-\frac{g}{2}B \NC 0 \NR
\NC 0 \NC H+\frac{g}{2}B\NR
\stoppmatrix.
\stopformula
Here $H$ is the two-dimensional Schrödinger Hamiltonian $H=(-i\nabla -\vec{a})^2$, $B$ is the magnetic field (In two dimensions we identify the two-form and the coefficient function), and $g$ is the {\em gyromagnetic ratio}. We identify the real point $(x^1,x^2)$ with the complex number $z=x^1+ix^2$, and denote a scalar potential of $B$ by $W$,
\startformula
-\Delta W = B.
\stopformula
We set $\Pi_j = -i\PD{}{x^j}-a_j$ and
\startformula
 \ann = \Pi_1 - i \Pi_2,\quad \cre = \Pi_1 + i\Pi_2,
\stopformula
and note that
\placeformula[keq:komm]
\startformula
\ann\cre=\cre\ann+2B,\quad H=\cre\ann+B=\ann\cre-B.
\stopformula
From~\eqref[keq:pauli] and~\eqref[keq:komm] we get
\placeformula[keq:paulig]
\startformula
\pauli = 
\startpmatrix
\NC \cre\ann-\frac{g-2}{2}B \NC 0 \NR
\NC 0 \NC \ann\cre+\frac{g-2}{2}B\NR
\stoppmatrix.
\stopformula
The number $\frac{g-2}{2}$ is called the {\em anomaly factor} of the magnetic moment. Experiments give an anomaly factor of $0.00159$ for the electron~\cite[bovo]. We assume that $g=2$, which is the simplest case. Thus, the Pauli Hamiltonian we study in this thesis is formally defined by
\placeformula[keq:pauliw]
\startformula
\pauli = 
\startpmatrix
\NC \cre\ann \NC 0 \NR
\NC 0 \NC \ann\cre\NR
\stoppmatrix.
\stopformula
The Pauli operator can be written as the square of the Dirac operator
\placeformula[keq:paulia]
\startformula
\pauli = \dirac^2 = \Bigl(\sum_{j=1}^2 \sigma_j\big(-i\PD{}{x^j}-a_j\big)\Bigr)^2 = 
\startpmatrix
\NC 0 \NC \cre \NR
\NC \ann \NC 0\NR
\stoppmatrix^2
\stopformula
from which it follows that it is a non-negative operator. Now let us be more precise about the domains. As in the case of the Schrödinger Hamiltonian there is a problem in defining the Pauli Hamiltonian if the magnetic field is too singular. The quadratic form corresponding to $\pauli$ is given by
\placeformula[keq:pform]
\startformula
\pform(\psi,\psi)= \int_{\mathbb{R}^2} \Big|\sum_{j=1}^2 \sigma_j\big(-i\PD{}{x^j}-a_j\big)\psi\Big|^2\ed m(x).
\stopformula

If $\vec{a}\in L_{2,\text{loc}}(\mathbb{R}^2)\otimes \mathbb{R}^2$ then $\pform(\psi,\psi)$ makes sense for $\psi\in C_0^\infty(\mathbb{R}^2)\otimes \mathbb{C}^2$. We define the {\em minimal} Pauli form $\pform_{\text{min}}$ as
\startformula
\startalign
\NC \dom(\pform_{\text{min}}) \NC = C_0^\infty(\mathbb{R}^2)\otimes \mathbb{C}^2;\NR
\NC \pform_{\text{min}}(\psi,\psi) \NC = \pform(\psi,\psi),\quad \psi\in\dom(\pform_{\text{min}}).\NR
\stopalign
\stopformula
It is closable and thus a self-adjoint operator $\pauli_{\text{min}}$ can be defined. We also define the {\em maximal} Pauli form $\pform_{\text{max}}$ as
\placeformula
\startformula
\startalign
\NC \dom(\pform_{\text{max}}) \NC = \bigl\{\,\psi\in L_2(\mathbb{R}^2)\otimes \mathbb{C}^2\bigm| \pform

Re: [NTG-context] big are big with lucida

2008-08-29 Thread Yue Wang
On Sat, Aug 23, 2008 at 5:58 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote:
 Hello

 The bigl, bigr ans so on are really BIG (huge even) when used with
 lucida.

 I think that math-lbr is guilty : it says
 **
 \def\LBRbig  {\@@dobig{8.20}}
 \def\LBRBig  {\@@dobig{10.80}}
 \def\LBRbigg {\@@dobig{13.42}}
 \def\LBRBigg {\@@dobig{16.03}}
 \def\LBRbiggg{\@@dobig{17.72}}
 \def\LBRBiggg{\@@dobig{21.25}}
 **
 Shouldn't it says
 **
 \def\LBRbig  {\@@dobig{0.920}}
 \def\LBRBig  {\@@dobig{1.080}}
 \def\LBRbigg {\@@dobig{1.342}}
 \def\LBRBigg {\@@dobig{1.603}}
 \def\LBRbiggg{\@@dobig{1.772}}
 \def\LBRBiggg{\@@dobig{2.125}}
 **
 ?

How do you get these variables? the symbols in lucida math are different.
you can also refer to
ftp://ftp.comp.hkbu.edu.hk/pub/TeX/CTAN/macros/latex/contrib/psnfssx/lucidabr/lucidabr.pdf.
page 9, line 263-273


 There is a strange behavior :  if I put
  \def\LBRbig  {\@@dobig{0.930}}
 big is bigger than Big.
 How is this possible ?

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] big are big with lucida

2008-08-29 Thread Eric DÉTREZ

Le 29 août 08 à 12:00, Yue Wang a écrit :

 On Sat, Aug 23, 2008 at 5:58 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote:
 Hello

 The bigl, bigr ans so on are really BIG (huge even) when used with
 lucida.

 I think that math-lbr is guilty : it says
 **
 \def\LBRbig  {\@@dobig{8.20}}
 \def\LBRBig  {\@@dobig{10.80}}
 \def\LBRbigg {\@@dobig{13.42}}
 \def\LBRBigg {\@@dobig{16.03}}
 \def\LBRbiggg{\@@dobig{17.72}}
 \def\LBRBiggg{\@@dobig{21.25}}
 **
 Shouldn't it says
 **
 \def\LBRbig  {\@@dobig{0.920}}
 \def\LBRBig  {\@@dobig{1.080}}
 \def\LBRbigg {\@@dobig{1.342}}
 \def\LBRBigg {\@@dobig{1.603}}
 \def\LBRbiggg{\@@dobig{1.772}}
 \def\LBRBiggg{\@@dobig{2.125}}
 **
 ?

 How do you get these variables? the symbols in lucida math are  
 different.

I just divided the size by 10 with a modification for big (doesn't  
understand why, see the second part of my question).
They look like the sizes in math-tex
**
\def\PLAINbig {\@@dobig{0.85}}
\def\PLAINBig {\@@dobig{1.15}}
\def\PLAINbigg{\@@dobig{1.45}}
\def\PLAINBigg{\@@dobig{1.75}}
**

 you can also refer to
 ftp://ftp.comp.hkbu.edu.hk/pub/TeX/CTAN/macros/latex/contrib/psnfssx/lucidabr/lucidabr.pdf
  
 .
 page 9, line 263-273

Indeed the original sizes are the same.
But the lucidabr package uses 8.20 pt and context uses a multiple of  
fontsize :
**
\def\@@dobig#1#2%
   [EMAIL PROTECTED]
**

Does anybody understand why big with \def\LBRbig  {\@@dobig{0.930}} is  
bigger than Big with \def\LBRBig  {\@@dobig{1.080}} ?

 There is a strange behavior :  if I put
 \def\LBRbig  {\@@dobig{0.930}}
 big is bigger than Big.
 How is this possible ?



___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] big are big with lucida

2008-08-28 Thread Yue Wang
Are you sure? see the first line of the attachment.

On Sat, Aug 23, 2008 at 5:58 AM, Eric DÉTREZ [EMAIL PROTECTED] wrote:
 Hello

 The bigl, bigr ans so on are really BIG (huge even) when used with
 lucida.

 I think that math-lbr is guilty : it says
 **
 \def\LBRbig  {\@@dobig{8.20}}
 \def\LBRBig  {\@@dobig{10.80}}
 \def\LBRbigg {\@@dobig{13.42}}
 \def\LBRBigg {\@@dobig{16.03}}
 \def\LBRbiggg{\@@dobig{17.72}}
 \def\LBRBiggg{\@@dobig{21.25}}
 **
 Shouldn't it says
 **
 \def\LBRbig  {\@@dobig{0.920}}
 \def\LBRBig  {\@@dobig{1.080}}
 \def\LBRbigg {\@@dobig{1.342}}
 \def\LBRBigg {\@@dobig{1.603}}
 \def\LBRbiggg{\@@dobig{1.772}}
 \def\LBRBiggg{\@@dobig{2.125}}
 **
 ?

 There is a strange behavior :  if I put
  \def\LBRbig  {\@@dobig{0.930}}
 big is bigger than Big.
 How is this possible ?

 ___
 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  : https://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

attachment: example.jpg___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] big are big with lucida

2008-08-22 Thread Eric DÉTREZ
Hello

The bigl, bigr ans so on are really BIG (huge even) when used with  
lucida.

I think that math-lbr is guilty : it says
**
\def\LBRbig  {\@@dobig{8.20}}
\def\LBRBig  {\@@dobig{10.80}}
\def\LBRbigg {\@@dobig{13.42}}
\def\LBRBigg {\@@dobig{16.03}}
\def\LBRbiggg{\@@dobig{17.72}}
\def\LBRBiggg{\@@dobig{21.25}}
**
Shouldn't it says
**
\def\LBRbig  {\@@dobig{0.920}}
\def\LBRBig  {\@@dobig{1.080}}
\def\LBRbigg {\@@dobig{1.342}}
\def\LBRBigg {\@@dobig{1.603}}
\def\LBRbiggg{\@@dobig{1.772}}
\def\LBRBiggg{\@@dobig{2.125}}
**
?

There is a strange behavior :  if I put
  \def\LBRbig  {\@@dobig{0.930}}
big is bigger than Big.
How is this possible ?

___
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  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \bigr bracket missing in antykwa

2006-04-17 Thread Hans Hagen
Mojca Miklavec wrote:
 Hans Hagen wrote:
   
 Mojca Miklavec wrote:
 
 On 4/14/06, Hans Hagen wrote:

   
 Aditya Mahajan wrote:

 
 Hi,
   \bigr\} does not give me anything while using  antykwa fonts. \big\}
 also does not work. \right\} works correctly. Is there something
 missing in the typescripts? I have no idea on how fonts work, so can
 not debug the problem.

 \usetypescript
[antykwa-torunska][ec]

 \setupbodyfont[antykwa, 11pt]

 \starttext
 $\bigl\{ a \bigr\}$ \blank
 $\big\{ a \big\}$ \blank
 $\left\{ a \right\}$ \blank
 \stoptext

   
 afaik the antikwa cum suis use the normal tex encoding but i may be
 wrong ...

 is the character in the font?
 

 I don't notice any empty slots (unless the mistake lies in rm-antt: I
 don't know how this one is supposed to look like), but the following
 example fails in LaTeX too, so perhaps the problem really lies in the
 font, but where???

 \documentclass{article}
 \usepackage[math]{anttor}

 \begin{document}
 \def\x#1{\left\{#1\left\}\vbox to #1pt{}\right.\right.}
 $$\x{9.16}\x{9.17}$$
 \end{document}

 Almost equivalent counterpart in ConTeXt:

 \usetypescript[antykwa-torunska][ec]
 \setupbodyfont[antykwa]

 \starttext

 \def\x#1{\left\{#1\left\}\vbox to #1\bodyfontsize{}\right.\right.}
 \startformula
 \x{0.8088}\x{0.8089}\x{0.916}\x{0.917}
 \stopformula

 \loadmapfile[antt.map]
   
not needed -)
 \showfont[ex-anttr]

 \stoptext

   
well, i traced back the way this brace ends up in the pdf file and this 
is what i observe:

- the antt and cm ex tfm files have exactly the same values (although 
antt is 7 bit safe)
- so the problem must be in the map file and/or encoding
- and, surprise,

encantt-ex[
/parenleftbig
/parenrightbig
/bracketleftbig
/bracketrightbig
/floorleftbig
/floorrightbig
/ceilingleftbig
/ceilingrightbig
/braceleftbig
/.notdef
/angbracketleftbig

the bracerightbig is undefined here

i suspect that there is some bug in the scripts that generate these files so 
let's feed this back to jacko/janusz; you need to patch: 

antt-ex.enc
iwona.enc 
kurier.enc 

(maybe an intermediate patch in the tex live repository is ok for the moment) 

/braceleftbig
/bracerightbig 

the fonts themselves are ok 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \bigr bracket missing in antykwa

2006-04-15 Thread Mojca Miklavec
Hans Hagen wrote:
 Mojca Miklavec wrote:
  On 4/14/06, Hans Hagen wrote:
 
  Aditya Mahajan wrote:
 
  Hi,
\bigr\} does not give me anything while using  antykwa fonts. \big\}
  also does not work. \right\} works correctly. Is there something
  missing in the typescripts? I have no idea on how fonts work, so can
  not debug the problem.
 
  \usetypescript
 [antykwa-torunska][ec]
 
  \setupbodyfont[antykwa, 11pt]
 
  \starttext
  $\bigl\{ a \bigr\}$ \blank
  $\big\{ a \big\}$ \blank
  $\left\{ a \right\}$ \blank
  \stoptext
 

 afaik the antikwa cum suis use the normal tex encoding but i may be
 wrong ...

 is the character in the font?

I don't notice any empty slots (unless the mistake lies in rm-antt: I
don't know how this one is supposed to look like), but the following
example fails in LaTeX too, so perhaps the problem really lies in the
font, but where???

\documentclass{article}
\usepackage[math]{anttor}

\begin{document}
\def\x#1{\left\{#1\left\}\vbox to #1pt{}\right.\right.}
$$\x{9.16}\x{9.17}$$
\end{document}

Almost equivalent counterpart in ConTeXt:

\usetypescript[antykwa-torunska][ec]
\setupbodyfont[antykwa]

\starttext

\def\x#1{\left\{#1\left\}\vbox to #1\bodyfontsize{}\right.\right.}
\startformula
\x{0.8088}\x{0.8089}\x{0.916}\x{0.917}
\stopformula

\loadmapfile[antt.map]
\showfont[ex-anttr]
\showfont[mi-anttri]
\showfont[sy-anttrz]
\showfont[rm-anttr]

\stoptext

Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \bigr bracket missing in antykwa

2006-04-14 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,
   \bigr\} does not give me anything while using  antykwa fonts. \big\} 
 also does not work. \right\} works correctly. Is there something 
 missing in the typescripts? I have no idea on how fonts work, so can 
 not debug the problem.

 \usetypescript
[antykwa-torunska][ec]

 \setupbodyfont[antykwa, 11pt]

 \starttext
 $\bigl\{ a \bigr\}$ \blank
 $\big\{ a \big\}$ \blank
 $\left\{ a \right\}$ \blank
 \stoptext

 ConTeXt  ver: 2006.04.07 11:24  fmt: 2006.4.9  int: english  mes: 
 english

 No warning message is generated in the log file.
   

i remember that mojca looked into the polish fonts and math and detected 
some problems (and communicated it to the authors)

Hans

-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \bigr bracket missing in antykwa

2006-04-13 Thread Aditya Mahajan
Hi,
  \bigr\} does not give me anything while using  antykwa fonts. \big\} 
also does not work. \right\} works correctly. Is there something 
missing in the typescripts? I have no idea on how fonts work, so can 
not debug the problem.

\usetypescript
   [antykwa-torunska][ec]

\setupbodyfont[antykwa, 11pt]

\starttext
$\bigl\{ a \bigr\}$ \blank
$\big\{ a \big\}$ \blank
$\left\{ a \right\}$ \blank
\stoptext

ConTeXt  ver: 2006.04.07 11:24  fmt: 2006.4.9  int: english  mes: 
english

No warning message is generated in the log file.

Aditya

-- 
Aditya Mahajan, EECS Systems, University of Michigan
http://www.eecs.umich.edu/~adityam || Ph: 7342624008
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-18 Thread Mojca Miklavec
I'm affraid I'm too late already, but I'm sending this anyway. The
lines you sent as an example have two pecculiarities:
- bad alignment
- too short arrows

I managed to solve the first problem -- alignment (with some
cheating, using TeXBOOK), but I have no idea how to extend
\downharpoonright for example and \longrightleftharpoons also don't
look as they should.

In plain TeX it is possible to say \big\downarrow or \Bigg\downarrow
and the arrow is as long as desired. I neither do understand how this
mechanism works nor did I found out how \downharpoonright was defined
(which font, ...).

Does any Font/TeXnician have any idea how to make \Big\updownharpoons work?

xiaojf said this at Sat, 14 May 2005 21:36:45 +0800:
 
 Hi,
 I  can code the cycle in ConTeXt,but it's too ugly and I will try to
 improve it.
 here is my code:

 \starttext
 \placeformula
 \startformula
 \matrix{A+B{\Delta G_1\atop\rightleftharpoons}AB\cr
 \Delta G_3\!\!\upharpoonleft\!\downharpoonright
 \upharpoonleft\!\downharpoonright\!\!\Delta G_4\cr
 A'+B{\rightleftharpoons\atop\Delta G_2}A'B\cr}
 \stopformula
 \stoptext

see below

 There is a similar example in The TeXbook(example 18.46).
 You can try the follow code:

 $$\def\normalbaselines{\baselineskip20pt\lineskip3pt \lineskiplimit3pt }

these are just a few local space adjustment, not important to
undestand the content.

 \def\mapright#1{\smash{
 \mathop{\longrightarrow}\limits^{#1}}}

define a command \mapright:
- \mathop makes \longrightarror behave in a similar way as big
operators like \sum, \int, ...
- \limits makes the ^{#1} appear centered above the arrow smaller than
the rest (the same as super/sub-scripts)

 \def\mapdown#1{\Big\downarrow
 \rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}}

define a command \mapdown:
- \Big makes the \downarrow longer (no idea how to make something
similar for a harpoon)
- \rlap places the argument to the right of the arrow with virtual box
width 0 (so that the arrow can be centered)
- $\vcenter{\hbox{...}}$ takes care of vertical centering
- $\scriptstyle #1$ is a compensation for ^{#1} above and takes care
that the argument becomes smaller. Note that if equation is not
typeset in \displaystyle, than it may be that this is not of the same
size as the argument in \mapright

 \matrix{0\cr
 \mapdown{}\cr
 0\mapright{}{\cal O}_C\mapright\iota
 \cal E\mapright\rho\cal L\mapright{}0\cr
 \Big\Vert\mapdown\phi\mapdown\psi\cr
 0\mapright{}{\cal O}_C\mapright{}
 \pi_*{\cal O}_D\mapright\delta
 R^1f_*{\cal O}_V(-D)\mapright{}0\cr
 \mapdown{\theta_i\otimes\gamma^{-1}}\cr
 \hidewidth R^1f_*\bigl({\cal O}
 _V(-iM)\bigr)\otimes\gamma^{-1}\hidewidth\cr
 \mapdown{}\cr
 0\cr}$$

 Since i'm just a newbie of TeX, I don't really understand the first a few 
 lines
 of the solution. I still need some learning and practice :)

I hope I explained at least a little bit of it. 

So here's my proposal (not perfect yet):



\usemodule[nath]

% is there any other way to use local variables than \unprotect?
% I also had to define [EMAIL PROTECTED] once more, which is not very elegant,
% but I don't know any other way
\unprotect

[EMAIL PROTECTED]

% The TeXBOOK, page 358, modified \longrightarrow
% for some reason, the harpoon and line are not 100% perfectly joined
\def\longrightharpoonup{\relbar\joinrel\rightharpoonup}
\def\longleftharpoondown{\leftharpoondown\joinrel\relbar}

% slightly longer line which didn't work: it this looks ugly
% probably a definition, similar as in \overrightarrow
% would help producing longer harpoons
%
% \def\longrightharpoonup{\relbar\joinrel\relbar\joinrel\rightharpoonup}
% \def\longleftharpoondown{\leftharpoondown\joinrel\relbar\joinrel\relbar}

% The TeXBOOK, page 361m modified \rightleftharpoons
[EMAIL PROTECTED]
[EMAIL PROTECTED]@th\hbox{\ooalign{\raise2pt
   \hbox{$#1\longrightharpoonup$}\crcr $#1\longleftharpoondown$

% copied from your code
\def\updownharpoons{\upharpoonleft\!\downharpoonright}

% here are four different placements of \Delta G_i,
% based on Knuth's example above
% 
% I tried to explain the command already above
% please ask if there is something you don't understand yet
%
\def\MyEquivTop#1{\smash{\mathop{\longrightleftharpoons}\limits^{#1}}}
\def\MyEquivBot#1{\smash{\mathop{\longrightleftharpoons}\limits_{#1}}}
\def\MyEquivLft#1{\llap{$\vcenter{\hbox{$\scriptstyle{#1}$}}$}\updownharpoons}
\def\MyEquivRt#1{\updownharpoons\rlap{$\vcenter{\hbox{$\scriptstyle{#1}$}}$}}

\protect

$$
% copied from the Knuth's example above
\def\normalbaselines{\baselineskip20pt\lineskip10pt\lineskiplimit10pt}

\matrix{A+B  \MyEquivTop{\Delta G_1}  AB \cr
\MyEquivLft{\Delta G_3}   \MyEquivRt{\Delta G_4} \cr
A'+B'  \MyEquivBot{\Delta G_2}  A'B \cr}
$$

\stoptext



Mojca
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: Re: [NTG-context] Is there a mathematica typesetting manual for ConTeXt ?

2005-05-14 Thread xiaojf

=== 2005-05-14 13:31:00 You worte===

xiaojf said this at Sat, 14 May 2005 19:49:02 +0800:

The double-, triple-, and quadruple-integrals (\nt) are undefined in
basic ConTeXt's math.
I must say thank you very very much!

In fact I've been looking for \iint in ConTeXt in the last two days -_-
so i'll try to use \int\!\!\!\int instead of looking for a ConTeXt
implementation :)

I met another problem today. Since there are not as many arrows in
ConTeXt as there
in AMS-LaTeX,I don't konw how to type the formula in the attached picture
which will
be referred in my presentation next Monday.

Hello, Xiao.

I'm glad I could help: I'm learning these advanced requirements as I go
along. My personal mathematics needs are much more modest.

I wouldn't give up on ConTeXt just yet. Try:
\loadmapfile[original-ams-base]
\starttext
\showmathcharacters
Note the \formula{\rightleftharpoons} and
\formula{\upharpoonleft\!\downharpoonright}.
\stoptext

Do you know how you would code that cycle in (AMS)LaTeX?
Hi,
I  can code the cycle in ConTeXt,but it's too ugly and I will try to improve it.
here is my code:

\starttext
\placeformula
\startformula
\matrix{A+B{\Delta G_1\atop\rightleftharpoons}AB\cr
\Delta G_3\!\!\upharpoonleft\!\downharpoonright
\upharpoonleft\!\downharpoonright\!\!\Delta G_4\cr
A'+B{\rightleftharpoons\atop\Delta G_2}A'B\cr}
\stopformula
\stoptext

There is a similar example in The TeXbook(example 18.46).
You can try the follow code:

$$\def\normalbaselines{\baselineskip20pt
\lineskip3pt \lineskiplimit3pt }
\def\mapright#1{\smash{
\mathop{\longrightarrow}\limits^{#1}}}
\def\mapdown#1{\Big\downarrow
\rlap{$\vcenter{\hbox{$\scriptstyle#1$}}$}}
\matrix{0\cr
\mapdown{}\cr
0\mapright{}{\cal O}_C\mapright\iota
\cal E\mapright\rho\cal L\mapright{}0\cr
\Big\Vert\mapdown\phi\mapdown\psi\cr
0\mapright{}{\cal O}_C\mapright{}
\pi_*{\cal O}_D\mapright\delta
R^1f_*{\cal O}_V(-D)\mapright{}0\cr
\mapdown{\theta_i\otimes\gamma^{-1}}\cr
\hidewidth R^1f_*\bigl({\cal O}
_V(-iM)\bigr)\otimes\gamma^{-1}\hidewidth\cr
\mapdown{}\cr
0\cr}$$

Since i'm just a newbie of TeX, I don't really understand the first a few lines
of the solution. I still need some learning and practice :)

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

= = = = = = = = = = = = = = = = = = = =



xiaojf
[EMAIL PROTECTED]
2005-05-14



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Matrix or array and \Bigl

2004-09-07 Thread jimarin
Hi everyone,

a quick question:

how can I deal with matrices in ConTeXt ?

I tried to use what is described in the wiki as a form of dealing with the
latex environment convention and importing the amsl package...

\def\begin#1{%
   \csname start#1\endcsname}
 \def\end#1{%
   \csname stop#1\endcsname}

...

\usemodule[amsl]

then I tried:

\begin{array}{c} a + b \\ c + d \end{array}

and also,

does the tex sequence \left{ work ok in ConTeXt?


Thanks in advance.

Regards to everyone.

Jose Ignacio Marín




___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context