Re: [NTG-context] Vertical alignment in nested itemizations

2012-05-22 Thread Mikael P. Sundqvist
On Thu, May 10, 2012 at 1:14 PM, Hans Hagen pra...@wxs.nl wrote:
 On 10-5-2012 10:57, Marco wrote:

 On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o.l...@pontex.cz
  wrote:

 - seems OK with my not-so-recent MkIV - see the attachment.


 That also shows the misalignment. It's more visible when you use
 \showboxes. Give it a run as it is and then add “Foo” after
 \starttext and give it a second run and compare both.


 it depends on stretch and shrink on a page ... possible fix in next beta



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

It seems that this problem is now fixed (May 22 version). Thank you
very much, Hans.

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

[NTG-context] Vertical alignment in nested itemizations

2012-05-10 Thread Mikael P. Sundqvist
Dear list,

My question is: Can I somehow force an inner itemization to begin on
the same line as the outer one?

Background:

I am writing solutions to an exam and use nested itemizations, as in
the test file

\starttext
\startitemize[n][style=sans]
\item Bla bla
\item
\startitemize[a,packed][left={},right={)},stopper=,style=sans]
\item Det sökta
\stopitemize
\stopitemize
\stoptext

Now the problem is that the a) does not stay on the same line as the
2., but is moved down half a line (this differs depending on the
amount of text in the file).

In the example code below this problem does not happen, but it happens
in my file (which contains solutions to an exam not yet given, so I
cannot show it to you).

However, please see the attached png file to see what it looks like in
my original file.

Best regards, Mikael
attachment: Sk.png___
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] Vertical alignment in nested itemizations

2012-05-10 Thread Mikael P. Sundqvist
On Thu, May 10, 2012 at 9:10 AM, Mikael P. Sundqvist mic...@gmail.com wrote:
 Dear list,

 My question is: Can I somehow force an inner itemization to begin on
 the same line as the outer one?

 Background:

 I am writing solutions to an exam and use nested itemizations, as in
 the test file

 \starttext
 \startitemize[n][style=sans]
 \item Bla bla
 \item
 \startitemize[a,packed][left={},right={)},stopper=,style=sans]
 \item Det sökta
 \stopitemize
 \stopitemize
 \stoptext

 Now the problem is that the a) does not stay on the same line as the
 2., but is moved down half a line (this differs depending on the
 amount of text in the file).

 In the example code below this problem does not happen, but it happens
 in my file (which contains solutions to an exam not yet given, so I
 cannot show it to you).

 However, please see the attached png file to see what it looks like in
 my original file.

 Best regards, Mikael

Dear list,

here is a complete example that shows the problem:

\setuppapersize[A4][A4]

\setuplayout[
topspace=0.7cm,
backspace=0.7cm,
leftmargin=0cm,
rightmargindistance=0cm,
rightmargin=0cm,
footer=0cm,
header=0cm,
width=fit,
height=fit,
]

\mainlanguage[sv]
\enableregime[utf]

\starttext
\startitemize[n][style=sans]
\item \input tufte
\item
\startitemize[a,packed][left={},right={)},stopper=,style=sans]
\item Det sökta
\item Bingospjäll
\stopitemize
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
Brynja
\stopitemize

\stoptext

In this example the a) is pushed a bit up instead of down, but I guess
the reason is the same.

Best regards, 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] Vertical alignment in nested itemizations

2012-05-10 Thread Hans Hagen

On 10-5-2012 09:30, Mikael P. Sundqvist wrote:

On Thu, May 10, 2012 at 9:10 AM, Mikael P. Sundqvistmic...@gmail.com  wrote:

Dear list,

My question is: Can I somehow force an inner itemization to begin on
the same line as the outer one?

Background:

I am writing solutions to an exam and use nested itemizations, as in
the test file

\starttext
\startitemize[n][style=sans]
\item Bla bla
\item
\startitemize[a,packed][left={},right={)},stopper=,style=sans]
\item Det sökta
\stopitemize
\stopitemize
\stoptext

Now the problem is that the a) does not stay on the same line as the
2., but is moved down half a line (this differs depending on the
amount of text in the file).

In the example code below this problem does not happen, but it happens
in my file (which contains solutions to an exam not yet given, so I
cannot show it to you).

However, please see the attached png file to see what it looks like in
my original file.

Best regards, Mikael


Dear list,

here is a complete example that shows the problem:

\setuppapersize[A4][A4]

\setuplayout[
topspace=0.7cm,
backspace=0.7cm,
leftmargin=0cm,
rightmargindistance=0cm,
rightmargin=0cm,
footer=0cm,
header=0cm,
width=fit,
height=fit,
]

\mainlanguage[sv]
\enableregime[utf]

\starttext
\startitemize[n][style=sans]
\item \input tufte
\item
\startitemize[a,packed][left={},right={)},stopper=,style=sans]
\item Det sökta
\item Bingospjäll
\stopitemize
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
Brynja
\stopitemize

\stoptext

In this example the a) is pushed a bit up instead of down, but I guess
the reason is the same.


It looks ok in mkii and mkiv ... can someone confirm the problem?

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] Vertical alignment in nested itemizations

2012-05-10 Thread luigi scarso
On Thu, May 10, 2012 at 10:08 AM, Hans Hagen pra...@wxs.nl wrote:
 On 10-5-2012 09:30, Mikael P. Sundqvist wrote:
 In this example the a) is pushed a bit up instead of down, but I guess
 the reason is the same.


 It looks ok in mkii and mkiv ... can someone confirm the problem?

 Hans
Hm, maybe. In the second startitemize  a) looks a bit misaligned with 2).


\setuppapersize[A4][A4]

\setuplayout[
topspace=0.7cm,
backspace=0.7cm,
leftmargin=0cm,
rightmargindistance=0cm,
rightmargin=0cm,
footer=0cm,
header=0cm,
width=fit,
height=fit,
]

\mainlanguage[sv]
%\enableregime[utf]

\starttext
\startitemize[n][style=sans]
\item \hbox to0sp{\hss\vrule width 3cm height 0.1pt depth
0sp}\kern-0.25em\input tufte
\item
\startitemize[a,packed][left={},right={)},stopper=,style=sans]
\item \hbox to0sp{\hss\vrule width 3cm height 0.1pt depth
0sp}\kern-0.25emDet sökta
\item Bingospjäll
\stopitemize
\item \hbox to0sp{\hss\vrule width 3cm height 0.1pt depth
0sp}\kern-0.25em\input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
Brynja
\stopitemize

\stoptext

-- 
luigi
___
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] Vertical alignment in nested itemizations

2012-05-10 Thread Procházka Lukáš Ing . - Pontex s . r . o .

Hello,

- seems OK with my not-so-recent MkIV - see the attachment.

Lukas


On Thu, 10 May 2012 10:08:57 +0200, Hans Hagen pra...@wxs.nl wrote:


It looks ok in mkii and mkiv ... can someone confirm the problem?

Hans



--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@pontex.cz] [http://www.pontex.cz]
Bezová 1658
147 14 Praha 4

Tel: +420 244 062 238
Fax: +420 244 461 038

t-Its.log
Description: Binary data


t-Its.mkiv
Description: Binary data


t-Its.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] Vertical alignment in nested itemizations

2012-05-10 Thread Marco
On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz wrote:

 - seems OK with my not-so-recent MkIV - see the attachment.

That also shows the misalignment. It's more visible when you use
\showboxes. Give it a run as it is and then add “Foo” after
\starttext and give it a second run and compare both.

\setuppapersize[A4][A4]

\setuplayout[
topspace=0.7cm,
backspace=0.7cm,
leftmargin=0cm,
rightmargindistance=0cm,
rightmargin=0cm,
footer=0cm,
header=0cm,
width=fit,
height=fit,
]

\mainlanguage[sv]
\enableregime[utf]

\starttext
\showboxes
% uncomment Foo to get proper alignment
% Foo
\startitemize[n][style=sans]
\item \input tufte
\item
\startitemize[a,packed][left={},right={)},stopper=,style=sans]
\item Det sökta
\item Bingospjäll
\stopitemize
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
\item \input tufte
Brynja
\stopitemize

\stoptext

Marco


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

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

Re: [NTG-context] Vertical alignment in nested itemizations

2012-05-10 Thread Hans Hagen

On 10-5-2012 10:57, Marco wrote:

On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o.l...@pontex.cz  wrote:


- seems OK with my not-so-recent MkIV - see the attachment.


That also shows the misalignment. It's more visible when you use
\showboxes. Give it a run as it is and then add “Foo” after
\starttext and give it a second run and compare both.


it depends on stretch and shrink on a page ... possible fix in next beta


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