Re: [NTG-context] \startitemize[columns] once again...

2012-11-22 Thread Hans Hagen

On 11/14/2012 11:16 AM, Marcin Borkowski wrote:

Dnia 2012-11-10, o godz. 03:23:11
Marcin Borkowski  napisał(a):


This minimal example behaves in a strange way:

\starttext
   Some text
   \startitemize[columns,two,joinedup]
   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
   \stopitemize
\stoptext

If we remove the percentage signs in the items, an additional vertical
skip appears.  Is it a feature or a bug?


was a feature ... gridsnapping in action


Hi, could anybody look into it?  I tried also \smash-ing the formulae -
with no luck.


the latest version is a bit more tolerant

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] \startitemize[columns] once again...

2012-11-17 Thread Otared Kavian
Hi Marcin, 

I think there is a small bug with itemize and columns: in another thread (with 
Subject « vertical alignment problem in column items» ) Dalyoung reported also 
an issue, which is related to what you have observed.
Please see my message in a reply to Dalyoung's message, where I reported some 
testings but I am not sure when this bug appeared (in mkii, the behaviour is 
essentially correct).

Best regards: OK

On 16 nov. 2012, at 21:00, Marcin Borkowski  wrote:

> Dnia 2012-11-14, o godz. 11:38:48
> Philipp Gesang  napisał(a):
> 
>> ·
>> 
>>> Dnia 2012-11-10, o godz. 03:23:11
>>> Marcin Borkowski  napisał(a):
>>> 
 This minimal example behaves in a strange way:
 
 \starttext
  Some text
  \startitemize[columns,two,joinedup]
  \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
  \item xyz% $\frac{x^5-3}{x^3+x-2}$.
  \stopitemize
 \stoptext
 
 If we remove the percentage signs in the items, an additional
 vertical skip appears.  Is it a feature or a bug?
>>> 
>>> Hi, could anybody look into it?  I tried also \smash-ing the
>>> formulae - with no luck.
>> 
>> Hi Marcin, appears like the vertical spacing is extended when
>> content of the item exceeds the line height. The behavior is not
>> restricted to math mode, though I can’t say if there is an
>> official way to prevent or customize it. If you are desperate to
>> get around it, maybe put the content in a box of fixed height.
>> 
>> ·· demo ·
>> \defineframed[crampy][height=\ht\strutbox,frame=off]
>> \starttext
>>  before
>>  \thinrule
>>  \startitemize[columns,two,joinedup]
>>  \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}};
>>  \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}.
>>  \stopitemize
>>  \thinrule
>>  after
>> 
>>  before
>>  \thinrule
>>  \startitemize[columns,two,joinedup]
>>  \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>>  \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>>  \stopitemize
>>  \thinrule
>>  after
>> 
>>  before
>>  \thinrule
>>  \startitemize[columns,two,joinedup]
>>  \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>>  \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>>  \stopitemize
>>  \thinrule
>>  after
>> \stoptext
>> ·
>> 
>> Hth, Philipp
> 
> Yes it does, thanks!  (It helps in some other strange cases, too.)
> What is especially interesting, is that \strut\smash{...} didn't help.
> 
> Best,
> 
> -- 
> Marcin Borkowski
> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> Adam Mickiewicz University
> ___
> 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] \startitemize[columns] once again...

2012-11-16 Thread Marcin Borkowski
Dnia 2012-11-14, o godz. 11:38:48
Philipp Gesang  napisał(a):

> ·
> 
> > Dnia 2012-11-10, o godz. 03:23:11
> > Marcin Borkowski  napisał(a):
> > 
> > > This minimal example behaves in a strange way:
> > > 
> > > \starttext
> > >   Some text
> > >   \startitemize[columns,two,joinedup]
> > >   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
> > >   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
> > >   \stopitemize
> > > \stoptext
> > > 
> > > If we remove the percentage signs in the items, an additional
> > > vertical skip appears.  Is it a feature or a bug?
> > 
> > Hi, could anybody look into it?  I tried also \smash-ing the
> > formulae - with no luck.
> 
> Hi Marcin, appears like the vertical spacing is extended when
> content of the item exceeds the line height. The behavior is not
> restricted to math mode, though I can’t say if there is an
> official way to prevent or customize it. If you are desperate to
> get around it, maybe put the content in a box of fixed height.
> 
> ·· demo ·
> \defineframed[crampy][height=\ht\strutbox,frame=off]
> \starttext
>   before
>   \thinrule
>   \startitemize[columns,two,joinedup]
>   \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}};
>   \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}.
>   \stopitemize
>   \thinrule
>   after
> 
>   before
>   \thinrule
>   \startitemize[columns,two,joinedup]
>   \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>   \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>   \stopitemize
>   \thinrule
>   after
> 
>   before
>   \thinrule
>   \startitemize[columns,two,joinedup]
>   \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
>   \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
>   \stopitemize
>   \thinrule
>   after
> \stoptext
> ·
> 
> Hth, Philipp

Yes it does, thanks!  (It helps in some other strange cases, too.)
What is especially interesting, is that \strut\smash{...} didn't help.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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] \startitemize[columns] once again...

2012-11-14 Thread Herbert Voss

Am 14.11.2012 11:38, schrieb Philipp Gesang:

·


Dnia 2012-11-10, o godz. 03:23:11
Marcin Borkowski  napisał(a):


This minimal example behaves in a strange way:

\starttext
   Some text
   \startitemize[columns,two,joinedup]
   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
   \stopitemize
\stoptext

If we remove the percentage signs in the items, an additional vertical
skip appears.  Is it a feature or a bug?


Hi, could anybody look into it?  I tried also \smash-ing the formulae -
with no luck.


Hi Marcin, appears like the vertical spacing is extended when
content of the item exceeds the line height. The behavior is not
restricted to math mode, though I can’t say if there is an
official way to prevent or customize it. If you are desperate to
get around it, maybe put the content in a box of fixed height.


with the "old" context of current TeXLive it works without
adding additional space.

Herbert
___
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] \startitemize[columns] once again...

2012-11-14 Thread Philipp Gesang
·

> Dnia 2012-11-10, o godz. 03:23:11
> Marcin Borkowski  napisał(a):
> 
> > This minimal example behaves in a strange way:
> > 
> > \starttext
> >   Some text
> >   \startitemize[columns,two,joinedup]
> >   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
> >   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
> >   \stopitemize
> > \stoptext
> > 
> > If we remove the percentage signs in the items, an additional vertical
> > skip appears.  Is it a feature or a bug?
> 
> Hi, could anybody look into it?  I tried also \smash-ing the formulae -
> with no luck.

Hi Marcin, appears like the vertical spacing is extended when
content of the item exceeds the line height. The behavior is not
restricted to math mode, though I can’t say if there is an
official way to prevent or customize it. If you are desperate to
get around it, maybe put the content in a box of fixed height.

·· demo ·
\defineframed[crampy][height=\ht\strutbox,frame=off]
\starttext
  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \mathematics{\frac{x^2-x+3}{x^2+x-3}};
  \item xyz \mathematics{\frac{x^5-3}{x^3+x-2}}.
  \stopitemize
  \thinrule
  after

  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \crampy[frame=on]{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
  \item xyz \crampy[frame=on]{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
  \stopitemize
  \thinrule
  after

  before
  \thinrule
  \startitemize[columns,two,joinedup]
  \item abc \crampy{\mathematics{\frac{x^2-x+3}{x^2+x-3}}};
  \item xyz \crampy{\mathematics{\frac{x^5-3}{x^3+x-2}}}.
  \stopitemize
  \thinrule
  after
\stoptext
·

Hth, Philipp

> 
> Best,
> 
> -- 
> Marcin Borkowski
> http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
> Adam Mickiewicz University
> ___
> 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
> ___

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpCrhMXZEnyO.pgp
Description: PGP signature
___
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] \startitemize[columns] once again...

2012-11-14 Thread Marcin Borkowski
Dnia 2012-11-10, o godz. 03:23:11
Marcin Borkowski  napisał(a):

> This minimal example behaves in a strange way:
> 
> \starttext
>   Some text
>   \startitemize[columns,two,joinedup]
>   \item abc% $\frac{x^2-x+3}{x^2+x-3}$;
>   \item xyz% $\frac{x^5-3}{x^3+x-2}$.
>   \stopitemize
> \stoptext
> 
> If we remove the percentage signs in the items, an additional vertical
> skip appears.  Is it a feature or a bug?

Hi, could anybody look into it?  I tried also \smash-ing the formulae -
with no luck.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
___
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
___