Vertical alignment in nested itemizations
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
On Thu, May 10, 2012 at 9:10 AM, 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
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
On 10-5-2012 09:30, Mikael P. Sundqvist wrote:
On Thu, May 10, 2012 at 9:10 AM, Mikael P. Sundqvist
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 -----------------------------------------------------------------
On Thu, May 10, 2012 at 10:08 AM, Hans Hagen
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
Hello,
- seems OK with my not-so-recent MkIV - see the attachment.
Lukas
On Thu, 10 May 2012 10:08:57 +0200, Hans Hagen
It looks ok in mkii and mkiv ... can someone confirm the problem?
Hans
-- Ing. Lukáš Procházka [mailto:LPr@pontex.cz] Pontex s. r. o. [mailto:pontex@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax: +420 244 461 038
On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o.
- 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
On 10-5-2012 10:57, Marco wrote:
On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o.
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 -----------------------------------------------------------------
On Thu, May 10, 2012 at 1:14 PM, Hans Hagen
On 10-5-2012 10:57, Marco wrote:
On 2012-05-10 Procházka Lukáš Ing. - Pontex s. r. o.
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
participants (5)
-
Hans Hagen
-
luigi scarso
-
Marco
-
Mikael P. Sundqvist
-
Procházka Lukáš Ing. - Pontex s. r. o.