The following code (using latest minimals) \starttext \startitemize[n] \item FOO \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \startitemize[n] \item \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \stoptext gives the attached pdf file, i.e. the second nested list is cut. Has something changed (I've been able to use nested lists before without having to use FOO or something inbetwen (as in the first example)? I tried to reinstall, but the same problem appeared again. Best regards, Mikael
Hi Mickael, If you put a blank line after \item, or an empty grouping everything works fine. I think the reason for the behavior may be that \item expects something after you invok eit and it doesn’t know what to do with the scond \startitemize. %%% begin example \starttext \startitemize[n] \item {} \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \startitemize[n] \item \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \stoptext %%% end example Best regards: OK
On 28 Nov 2014, at 19:01, Mikael P. Sundqvist
wrote: The following code (using latest minimals)
\starttext \startitemize[n] \item FOO \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize
\startitemize[n] \item \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \stoptext
gives the attached pdf file, i.e. the second nested list is cut. Has something changed (I've been able to use nested lists before without having to use FOO or something inbetwen (as in the first example)? I tried to reinstall, but the same problem appeared again.
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 ___________________________________________________________________________________
On 11/28/2014 7:01 PM, Mikael P. Sundqvist wrote:
The following code (using latest minimals)
\starttext \startitemize[n] \item FOO \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize
\startitemize[n] \item \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \stoptext
gives the attached pdf file, i.e. the second nested list is cut. Has something changed (I've been able to use nested lists before without having to use FOO or something inbetwen (as in the first example)? I tried to reinstall, but the same problem appeared again.
a bug indeed ... very nasty code (kind of fight between mechanisms deep down in luatex) ... i'll try to fix it ----------------------------------------------------------------- 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 Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen
On 11/28/2014 7:01 PM, Mikael P. Sundqvist wrote:
The following code (using latest minimals)
\starttext \startitemize[n] \item FOO \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize
\startitemize[n] \item \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \stoptext
gives the attached pdf file, i.e. the second nested list is cut. Has something changed (I've been able to use nested lists before without having to use FOO or something inbetwen (as in the first example)? I tried to reinstall, but the same problem appeared again.
a bug indeed ... very nasty code (kind of fight between mechanisms deep down in luatex) ... i'll try to fix it
----------------------------------------------------------------- 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 ___________________________________________________________________________________
Thank you, I hope it is fixable :) To Otared: Thank you also for replying. Your code indeed compiles, but the nested itemize starts on a new line, i.e. 1 a instead of 1 a as expected. /Mikael
On 11/29/2014 11:43 AM, Mikael P. Sundqvist wrote:
On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen
wrote: On 11/28/2014 7:01 PM, Mikael P. Sundqvist wrote:
The following code (using latest minimals)
\starttext \startitemize[n] \item FOO \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize
\startitemize[n] \item \startitemize[a] \item Hello \item Good bye \stopitemize \stopitemize \stoptext
gives the attached pdf file, i.e. the second nested list is cut. Has something changed (I've been able to use nested lists before without having to use FOO or something inbetwen (as in the first example)? I tried to reinstall, but the same problem appeared again.
a bug indeed ... very nasty code (kind of fight between mechanisms deep down in luatex) ... i'll try to fix it
----------------------------------------------------------------- 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 ___________________________________________________________________________________
Thank you, I hope it is fixable :)
lots of trial and error .. it should work ok for non standard lineheights too -- ----------------------------------------------------------------- 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 29 Nov 2014, at 11:43, Mikael P. Sundqvist
On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen
wrote: […] a bug indeed ... very nasty code (kind of fight between mechanisms deep down in luatex) ... i'll try to fix it […]
Thank you, I hope it is fixable :)
To Otared: Thank you also for replying. Your code indeed compiles, but the nested itemize starts on a new line, i.e.
1 a
instead of
1 a
as expected.
/Mikael
Hi Mikael, I didn’t know it were possible to have a nested itemize producing something like: %% begin expected example 1.a: bla-bla, bla-bla 1.b: bla-bla, bla-bla 1.c: bla-bla, bla-bla 2.a: bla-bla, bla-bla 2.b: bla-bla, bla-bla %% end expected example How this would be achieved with nested itemization? Best regards: OK
On 29 Nov 2014, at 11:43, Mikael P. Sundqvist
wrote: […] To Otared: Thank you also for replying. Your code indeed compiles, but the nested itemize starts on a new line, i.e.
1 a
instead of
1 a
as expected.
/Mikael
Hi again, answering partly to myself, I found the following example (which, as you may guess, was given somtime ago by… Wolfgang S.…), where one can construct itemizations with different levels of subitems: however it doesn’t give exactly what you suggest. %%% begin subitems.tex \setupitemgroup[itemize][1][n,repeat][width=1em] \setupitemgroup[itemize][2][a,repeat][width=2em] \setupitemgroup[itemize][3][n] [width=3em] \starttext \startitemize \item Item one \startitemize \item subitem one of item one \startitemize \item sub-subitem one of subitem one \item sub-subitem two of subitem one \stopitemize \item subitem two of item one \startitemize \item sub-subitem one of subitem two \item sub-subitem two of subitem two \stopitemize \stopitemize \item Item two \startitemize \item subitem one of item two \startitemize \item sub-subitem one of subitem one \item sub-subitem two of subitem one \stopitemize \stopitemize \stopitemize \stoptext %%% end subitems.tex
On Sun, Nov 30, 2014 at 9:58 PM, Otared Kavian
On 29 Nov 2014, at 11:43, Mikael P. Sundqvist
wrote: […] To Otared: Thank you also for replying. Your code indeed compiles, but the nested itemize starts on a new line, i.e.
1 a
instead of
1 a
as expected.
/Mikael
Hi again, answering partly to myself, I found the following example (which, as you may guess, was given somtime ago by… Wolfgang S.…), where one can construct itemizations with different levels of subitems: however it doesn’t give exactly what you suggest.
%%% begin subitems.tex \setupitemgroup[itemize][1][n,repeat][width=1em] \setupitemgroup[itemize][2][a,repeat][width=2em] \setupitemgroup[itemize][3][n] [width=3em]
\starttext
\startitemize \item Item one \startitemize \item subitem one of item one \startitemize \item sub-subitem one of subitem one \item sub-subitem two of subitem one \stopitemize \item subitem two of item one \startitemize \item sub-subitem one of subitem two \item sub-subitem two of subitem two \stopitemize \stopitemize \item Item two \startitemize \item subitem one of item two \startitemize \item sub-subitem one of subitem one \item sub-subitem two of subitem one \stopitemize \stopitemize \stopitemize
\stoptext %%% end subitems.tex ___________________________________________________________________________________ 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 Otared. Just for clarification, I don't want %% begin expected example 1.a: bla-bla, bla-bla 1.b: bla-bla, bla-bla 1.c: bla-bla, bla-bla 2.a: bla-bla, bla-bla 2.b: bla-bla, bla-bla %% end expected example but %% begin expected example 1.a: bla-bla, bla-bla b: bla-bla, bla-bla c: bla-bla, bla-bla 2.a: bla-bla, bla-bla b: bla-bla, bla-bla %% end expected example and the problem is that the nested items a. fall one line below the figure on the previous level. I think Hans works on it(?). Best regards, Mikael PS At work I have ConTeXt ver: 2014.11.04 11:02 MKIV beta fmt: 2014.11.4 int: english/english, and the bug is not present there.
participants (3)
-
Hans Hagen
-
Mikael P. Sundqvist
-
Otared Kavian