* Nested itemize horizontal/column problem @ 2016-09-18 8:54 Mikael P. Sundqvist 2016-09-18 19:56 ` Henri Menke 0 siblings, 1 reply; 6+ messages in thread From: Mikael P. Sundqvist @ 2016-09-18 8:54 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 1158 bytes --] Hi 1) the following code \starttext \startitemize[n] \item \startitemize[a,horizontal,three] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \item On the outer level \stopitemize \stoptext generates the error tex error > tex error on line 9 in file /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth' in restricted horizontal mode Isn't it possible to have nested itemize with key horizontal? 2) If I change the horizontal key to columns, then there is an extra line (the extra line in nested itemization has been discussed before, but not with these keys given, as far as I could see). I.e. the file \starttext \startitemize[n] \item \startitemize[a,columns,three] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \item On the outer level \stopitemize \stoptext gives the attached pdf file, where I would have exptected the first a. in the inner itemize to be on the same line as the 1. in the outer itemize. Anyone has an idea on what is going on here? Best regards, Mikael [-- Attachment #2: ctx-listexample14.pdf --] [-- Type: application/pdf, Size: 6825 bytes --] [-- Attachment #3: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Nested itemize horizontal/column problem 2016-09-18 8:54 Nested itemize horizontal/column problem Mikael P. Sundqvist @ 2016-09-18 19:56 ` Henri Menke 2016-09-19 11:27 ` Mikael P. Sundqvist 2016-09-19 11:32 ` Wolfgang Schuster 0 siblings, 2 replies; 6+ messages in thread From: Henri Menke @ 2016-09-18 19:56 UTC (permalink / raw) To: mailing list for ConTeXt users You can start itemize only in vertical mode. To switch to vertical mode use \blank. To kill the empty line which is inserted use \blank[-line]. \starttext \startitemize[n] \item \blank[-line] \startitemize[a,horizontal,three] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \item On the outer level \stopitemize \stoptext On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote: > Hi > > 1) the following code > > \starttext > \startitemize[n] > \item > \startitemize[a,horizontal,three] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > \item On the outer level > \stopitemize > \stoptext > > generates the error > > tex error > tex error on line 9 in file > /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth' > in restricted horizontal mode > > Isn't it possible to have nested itemize with key horizontal? > > 2) If I change the horizontal key to columns, then there is an extra > line (the extra line in nested itemization has been discussed before, > but not with these keys given, as far as I could see). I.e. the file > > \starttext > \startitemize[n] > \item > \startitemize[a,columns,three] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > \item On the outer level > \stopitemize > \stoptext > > gives the attached pdf file, where I would have exptected the first a. > in the inner itemize to be on the same line as the 1. in the outer > itemize. > > Anyone has an idea on what is going on here? > > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Nested itemize horizontal/column problem 2016-09-18 19:56 ` Henri Menke @ 2016-09-19 11:27 ` Mikael P. Sundqvist 2016-09-19 13:37 ` Otared Kavian 2016-09-19 11:32 ` Wolfgang Schuster 1 sibling, 1 reply; 6+ messages in thread From: Mikael P. Sundqvist @ 2016-09-19 11:27 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 3379 bytes --] On Sun, Sep 18, 2016 at 9:56 PM, Henri Menke <henrimenke@gmail.com> wrote: > You can start itemize only in vertical mode. To switch to vertical mode use \blank. To kill the empty line which is inserted use \blank[-line]. > > \starttext > \startitemize[n] > \item \blank[-line] > \startitemize[a,horizontal,three] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > \item On the outer level > \stopitemize > \stoptext > > On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote: >> Hi >> >> 1) the following code >> >> \starttext >> \startitemize[n] >> \item >> \startitemize[a,horizontal,three] >> \startitem First \stopitem >> \startitem Second \stopitem >> \startitem Third \stopitem >> \startitem Fourth \stopitem >> \stopitemize >> \item On the outer level >> \stopitemize >> \stoptext >> >> generates the error >> >> tex error > tex error on line 9 in file >> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth' >> in restricted horizontal mode >> >> Isn't it possible to have nested itemize with key horizontal? >> >> 2) If I change the horizontal key to columns, then there is an extra >> line (the extra line in nested itemization has been discussed before, >> but not with these keys given, as far as I could see). I.e. the file >> >> \starttext >> \startitemize[n] >> \item >> \startitemize[a,columns,three] >> \startitem First \stopitem >> \startitem Second \stopitem >> \startitem Third \stopitem >> \startitem Fourth \stopitem >> \stopitemize >> \item On the outer level >> \stopitemize >> \stoptext >> >> gives the attached pdf file, where I would have exptected the first a. >> in the inner itemize to be on the same line as the 1. in the outer >> itemize. >> >> Anyone has an idea on what is going on here? >> >> 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 >> ___________________________________________________________________________________ >> > > ___________________________________________________________________________________ > 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 Henri, that works, and I can live with adding \blank[-line] in these cases. I still wonder if there is an automatic way, since it seems to only happen when one has the inner itemize in columns. For example, with \starttext \startitemize[n] \item \startitemize[a] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \item On the outer level \stopitemize \stoptext there is no extra line (result is attached). /Mikael [-- Attachment #2: ctx-listexample14.pdf --] [-- Type: application/pdf, Size: 6825 bytes --] [-- Attachment #3: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Nested itemize horizontal/column problem 2016-09-19 11:27 ` Mikael P. Sundqvist @ 2016-09-19 13:37 ` Otared Kavian 2016-09-19 13:50 ` Mikael P. Sundqvist 0 siblings, 1 reply; 6+ messages in thread From: Otared Kavian @ 2016-09-19 13:37 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1: Type: text/plain, Size: 762 bytes --] Hi Mikael, The explanation and the solution given by Henri works fine here. The code below gives the attached PDF (with ConTeXt 2016.09.12 18:27 MKIV beta). The point is that an empty \item does not allow to begin a new level of itemization. Best regards: OK %%% begin \starttext \startitemize[n] \item \blank[-line] \startitemize[a,horizontal,two] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \item % Here with a blank line \blank[small] \startitemize[a,horizontal,two] \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopitemize \item On the outer level \stopitemize \stoptext %%% end [-- Attachment #2: itemize-horizontal.pdf --] [-- Type: application/pdf, Size: 7024 bytes --] [-- Attachment #3: Type: text/plain, Size: 4263 bytes --] > On 19 Sep 2016, at 13:27, Mikael P. Sundqvist <mickep@gmail.com> wrote: > > On Sun, Sep 18, 2016 at 9:56 PM, Henri Menke <henrimenke@gmail.com> wrote: >> You can start itemize only in vertical mode. To switch to vertical mode use \blank. To kill the empty line which is inserted use \blank[-line]. >> >> \starttext >> \startitemize[n] >> \item \blank[-line] >> \startitemize[a,horizontal,three] >> \startitem First \stopitem >> \startitem Second \stopitem >> \startitem Third \stopitem >> \startitem Fourth \stopitem >> \stopitemize >> \item On the outer level >> \stopitemize >> \stoptext >> >> On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote: >>> Hi >>> >>> 1) the following code >>> >>> \starttext >>> \startitemize[n] >>> \item >>> \startitemize[a,horizontal,three] >>> \startitem First \stopitem >>> \startitem Second \stopitem >>> \startitem Third \stopitem >>> \startitem Fourth \stopitem >>> \stopitemize >>> \item On the outer level >>> \stopitemize >>> \stoptext >>> >>> generates the error >>> >>> tex error > tex error on line 9 in file >>> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth' >>> in restricted horizontal mode >>> >>> Isn't it possible to have nested itemize with key horizontal? >>> >>> 2) If I change the horizontal key to columns, then there is an extra >>> line (the extra line in nested itemization has been discussed before, >>> but not with these keys given, as far as I could see). I.e. the file >>> >>> \starttext >>> \startitemize[n] >>> \item >>> \startitemize[a,columns,three] >>> \startitem First \stopitem >>> \startitem Second \stopitem >>> \startitem Third \stopitem >>> \startitem Fourth \stopitem >>> \stopitemize >>> \item On the outer level >>> \stopitemize >>> \stoptext >>> >>> gives the attached pdf file, where I would have exptected the first a. >>> in the inner itemize to be on the same line as the 1. in the outer >>> itemize. >>> >>> Anyone has an idea on what is going on here? >>> >>> 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 >>> ___________________________________________________________________________________ >>> >> >> ___________________________________________________________________________________ >> 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 Henri, that works, and I can live with adding \blank[-line] > in these cases. > > I still wonder if there is an automatic way, since it seems to only > happen when one has the inner itemize in columns. For example, with > > \starttext > \startitemize[n] > \item > \startitemize[a] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > \item On the outer level > \stopitemize > \stoptext > > there is no extra line (result is attached). > > /Mikael > <ctx-listexample14.pdf>___________________________________________________________________________________ > 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 > ___________________________________________________________________________________ [-- Attachment #4: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Nested itemize horizontal/column problem 2016-09-19 13:37 ` Otared Kavian @ 2016-09-19 13:50 ` Mikael P. Sundqvist 0 siblings, 0 replies; 6+ messages in thread From: Mikael P. Sundqvist @ 2016-09-19 13:50 UTC (permalink / raw) To: mailing list for ConTeXt users On Mon, Sep 19, 2016 at 3:37 PM, Otared Kavian <otared@gmail.com> wrote: > Hi Mikael, > > The explanation and the solution given by Henri works fine here. The code below gives the attached PDF (with ConTeXt 2016.09.12 18:27 MKIV beta). The point is that an empty \item does not allow to begin a new level of itemization. > > Best regards: OK > %%% begin > \starttext > \startitemize[n] > \item \blank[-line] > \startitemize[a,horizontal,two] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > \item % Here with a blank line > \blank[small] > \startitemize[a,horizontal,two] > \startitem First \stopitem > \startitem Second \stopitem > \startitem Third \stopitem > \startitem Fourth \stopitem > \stopitemize > \item On the outer level > > \stopitemize > \stoptext > %%% end > > > > >> On 19 Sep 2016, at 13:27, Mikael P. Sundqvist <mickep@gmail.com> wrote: >> >> On Sun, Sep 18, 2016 at 9:56 PM, Henri Menke <henrimenke@gmail.com> wrote: >>> You can start itemize only in vertical mode. To switch to vertical mode use \blank. To kill the empty line which is inserted use \blank[-line]. >>> >>> \starttext >>> \startitemize[n] >>> \item \blank[-line] >>> \startitemize[a,horizontal,three] >>> \startitem First \stopitem >>> \startitem Second \stopitem >>> \startitem Third \stopitem >>> \startitem Fourth \stopitem >>> \stopitemize >>> \item On the outer level >>> \stopitemize >>> \stoptext >>> >>> On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote: >>>> Hi >>>> >>>> 1) the following code >>>> >>>> \starttext >>>> \startitemize[n] >>>> \item >>>> \startitemize[a,horizontal,three] >>>> \startitem First \stopitem >>>> \startitem Second \stopitem >>>> \startitem Third \stopitem >>>> \startitem Fourth \stopitem >>>> \stopitemize >>>> \item On the outer level >>>> \stopitemize >>>> \stoptext >>>> >>>> generates the error >>>> >>>> tex error > tex error on line 9 in file >>>> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth' >>>> in restricted horizontal mode >>>> >>>> Isn't it possible to have nested itemize with key horizontal? >>>> >>>> 2) If I change the horizontal key to columns, then there is an extra >>>> line (the extra line in nested itemization has been discussed before, >>>> but not with these keys given, as far as I could see). I.e. the file >>>> >>>> \starttext >>>> \startitemize[n] >>>> \item >>>> \startitemize[a,columns,three] >>>> \startitem First \stopitem >>>> \startitem Second \stopitem >>>> \startitem Third \stopitem >>>> \startitem Fourth \stopitem >>>> \stopitemize >>>> \item On the outer level >>>> \stopitemize >>>> \stoptext >>>> >>>> gives the attached pdf file, where I would have exptected the first a. >>>> in the inner itemize to be on the same line as the 1. in the outer >>>> itemize. >>>> >>>> Anyone has an idea on what is going on here? >>>> >>>> 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 >>>> ___________________________________________________________________________________ >>>> >>> >>> ___________________________________________________________________________________ >>> 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 Henri, that works, and I can live with adding \blank[-line] >> in these cases. >> >> I still wonder if there is an automatic way, since it seems to only >> happen when one has the inner itemize in columns. For example, with >> >> \starttext >> \startitemize[n] >> \item >> \startitemize[a] >> \startitem First \stopitem >> \startitem Second \stopitem >> \startitem Third \stopitem >> \startitem Fourth \stopitem >> \stopitemize >> \item On the outer level >> \stopitemize >> \stoptext >> >> there is no extra line (result is attached). >> >> /Mikael >> <ctx-listexample14.pdf>___________________________________________________________________________________ >> 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 > ___________________________________________________________________________________ Thank you Otared, and thank you Wolfgang. This problem is solved. If anyone knows about the spacing between items and around itemizations in the case of horizontal key (mentioned in the other thread I started a day ago), then I be all ear (it is then better to answer in that thread). /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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Nested itemize horizontal/column problem 2016-09-18 19:56 ` Henri Menke 2016-09-19 11:27 ` Mikael P. Sundqvist @ 2016-09-19 11:32 ` Wolfgang Schuster 1 sibling, 0 replies; 6+ messages in thread From: Wolfgang Schuster @ 2016-09-19 11:32 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 260 bytes --] > Henri Menke <mailto:henrimenke@gmail.com> > 18. September 2016 um 21:56 > You can start itemize only in vertical mode. To switch to vertical > mode use \blank. To kill the empty line which is inserted use > \blank[-line]. Or use \blank[overlay]. Wolfgang [-- Attachment #1.2: Type: text/html, Size: 1237 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ 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 ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-09-19 13:50 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2016-09-18 8:54 Nested itemize horizontal/column problem Mikael P. Sundqvist 2016-09-18 19:56 ` Henri Menke 2016-09-19 11:27 ` Mikael P. Sundqvist 2016-09-19 13:37 ` Otared Kavian 2016-09-19 13:50 ` Mikael P. Sundqvist 2016-09-19 11:32 ` Wolfgang Schuster
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).