* Nested itemize (spaces before and after inside environment) @ 2013-10-24 10:45 Jaroslav Hajtmar 2013-10-24 12:21 ` Tomas Hala 0 siblings, 1 reply; 3+ messages in thread From: Jaroslav Hajtmar @ 2013-10-24 10:45 UTC (permalink / raw) To: mailing list for ConTeXt users Hello ConTeXist. I tried convert plainTeX source code into ConTeXt source code so that the output PDF gave the same (or approximately the same) result. I did it for one of plainTEX developers (Mr. Olšák), which compared results of PlainTeX, LaTeX and ConTeXt. However, I encountered the following problem. Is there a way to adjust the spacing before internal itemize environment when the external itemize environment is set as PACKED? Thanx JaroslavHajtmar Here is my minimal example: \setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}] \setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}] \starttext This is normal text before itemize list. \startitemize \item First 1 level \item Second 1 level \startitemize \item First 2 level (before this line should be big space) \item Second 2 level \item Third 2 level (after this line should be big space) \stopitemize \item Third 1 level \item Fourth 1 level \stopitemize This is normal text after itemize list. \stoptext ___________________________________________________________________________________ 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] 3+ messages in thread
* Re: Nested itemize (spaces before and after inside environment) 2013-10-24 10:45 Nested itemize (spaces before and after inside environment) Jaroslav Hajtmar @ 2013-10-24 12:21 ` Tomas Hala 2013-10-24 12:43 ` Jaroslav Hajtmar 0 siblings, 1 reply; 3+ messages in thread From: Tomas Hala @ 2013-10-24 12:21 UTC (permalink / raw) To: hajtmar@gyza.cz, ntg-context Hi Jarda and all, I tested it on my computer using CTX from TL 2010 and 2013 and I have got the same result in both cases. It seems that the content of the option before is completely ignored. I tested another values for this option (\page,\vskip,\godown...), no result. The only one way which works is the manual addition of \blank before and after the nested itemize environment, unfortunatelly. --- Another interesting thing is that the compiler of CTX in TL 2013 does not report an error when I forgot the opening \starttext, or the closing \stoptext, or both, whereas in TL 2010 it does. Is this expected behaviour? Best regards, Tomas Hala Thu, Oct 24, 2013 ve 12:45:01PM +0200 Jaroslav Hajtmar napsal(a): # Hello ConTeXist. # # I tried convert plainTeX source code into ConTeXt source code so # that the output PDF gave the same (or approximately the same) # result. I did it for one of plainTEX developers (Mr. Olšák), which # compared results of PlainTeX, LaTeX and ConTeXt. However, I # encountered the following problem. # # Is there a way to adjust the spacing before internal itemize # environment when the external itemize environment is set as PACKED? # # Thanx JaroslavHajtmar # # Here is my minimal example: # # # \setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}] # \setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}] # # \starttext # # This is normal text before itemize list. # # \startitemize # \item First 1 level # \item Second 1 level # \startitemize # \item First 2 level (before this line should be big space) # \item Second 2 level # \item Third 2 level (after this line should be big space) # \stopitemize # \item Third 1 level # \item Fourth 1 level # \stopitemize # # This is normal text after itemize list. # # # \stoptext # # ___________________________________________________________________________________ # 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 # ___________________________________________________________________________________ Tomáš Hála -------------------------------------------------------------------- Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 -------------------------------------------------------------------- http://akela.mendelu.cz/~thala ___________________________________________________________________________________ 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] 3+ messages in thread
* Re: Nested itemize (spaces before and after inside environment) 2013-10-24 12:21 ` Tomas Hala @ 2013-10-24 12:43 ` Jaroslav Hajtmar 0 siblings, 0 replies; 3+ messages in thread From: Jaroslav Hajtmar @ 2013-10-24 12:43 UTC (permalink / raw) To: ntg-context Thanx Tomas. Of course I know about the possibility of solving the problem by directly entering a space before internal environment. However, I prefer setting off the source text, so I wonder how it can be solved. Jarda Hajtmar Dne 24.10.2013 14:21, Tomas Hala napsal(a): > Hi Jarda and all, > > I tested it on my computer using CTX from TL 2010 and 2013 and I have got > the same result in both cases. It seems that the content of the option before > is completely ignored. I tested another values for this option > (\page,\vskip,\godown...), no result. > > The only one way which works is the manual addition of \blank before and > after the nested itemize environment, unfortunatelly. > > --- > > Another interesting thing is that the compiler of CTX in TL 2013 does not > report an error when I forgot the opening \starttext, or the closing > \stoptext, or both, whereas in TL 2010 it does. Is this expected behaviour? > > Best regards, > > Tomas Hala > > > Thu, Oct 24, 2013 ve 12:45:01PM +0200 Jaroslav Hajtmar napsal(a): > # Hello ConTeXist. > # > # I tried convert plainTeX source code into ConTeXt source code so > # that the output PDF gave the same (or approximately the same) > # result. I did it for one of plainTEX developers (Mr. Olšák), which > # compared results of PlainTeX, LaTeX and ConTeXt. However, I > # encountered the following problem. > # > # Is there a way to adjust the spacing before internal itemize > # environment when the external itemize environment is set as PACKED? > # > # Thanx JaroslavHajtmar > # > # Here is my minimal example: > # > # > # \setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}] > # \setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}] > # > # \starttext > # > # This is normal text before itemize list. > # > # \startitemize > # \item First 1 level > # \item Second 1 level > # \startitemize > # \item First 2 level (before this line should be big space) > # \item Second 2 level > # \item Third 2 level (after this line should be big space) > # \stopitemize > # \item Third 1 level > # \item Fourth 1 level > # \stopitemize > # > # This is normal text after itemize list. > # > # > # \stoptext > # > # ___________________________________________________________________________________ > # 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 > # ___________________________________________________________________________________ > > Tomáš Hála > -------------------------------------------------------------------- > Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky > Zemědělská 1, CZ-613 00 Brno, tel. +420 545 13 22 28 > -------------------------------------------------------------------- > http://akela.mendelu.cz/~thala > ___________________________________________________________________________________ > 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] 3+ messages in thread
end of thread, other threads:[~2013-10-24 12:43 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-24 10:45 Nested itemize (spaces before and after inside environment) Jaroslav Hajtmar 2013-10-24 12:21 ` Tomas Hala 2013-10-24 12:43 ` Jaroslav Hajtmar
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).