* Nested itemize @ 2022-09-02 9:08 Alexandre Christe via ntg-context 2022-09-02 9:22 ` fv leung via ntg-context 0 siblings, 1 reply; 8+ messages in thread From: Alexandre Christe via ntg-context @ 2022-09-02 9:08 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Alexandre Christe [-- Attachment #1.1: Type: text/plain, Size: 524 bytes --] Dear all, I'm struggling to setup a nested itemize with no blank line and several columns. What I mean is something like 1. a) bla c) bla b) bla d) bla The following MWE is my starting point \starttext \startitemize[n] \item \blank[-line] \startitemize[a,horizontal,two] [margin=2cm] \item First \item Second \item Third \item Fourth \stopitemize \item \blank[-line] \startitemize[a,horizontal,columns,two] \item First \item Second \item Third \item Fourth \stopitemize \stopitemize \stoptext Thanks in advance [-- Attachment #1.2: Type: text/html, Size: 769 bytes --] [-- Attachment #2: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Nested itemize 2022-09-02 9:08 Nested itemize Alexandre Christe via ntg-context @ 2022-09-02 9:22 ` fv leung via ntg-context 2023-08-21 18:57 ` [NTG-context] " Alexandre Christe 0 siblings, 1 reply; 8+ messages in thread From: fv leung via ntg-context @ 2022-09-02 9:22 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: fv leung [-- Attachment #1.1: Type: text/plain, Size: 1924 bytes --] \starttext \startitemize[n] \item\godown[-\lineheight] \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] \item bla \item bla \item bla \item bla \stopitemize \item\godown[-\lineheight] \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] \item bla \item bla \item bla \item bla \item bla \item bla \stopitemize \item\godown[-\lineheight] \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] \item bla \item bla \item bla \item bla \item bla \item bla \item bla \item bla \stopitemize \stopitemize \stoptext Alexandre Christe via ntg-context <ntg-context@ntg.nl> 於 2022年9月2日 週五 下午5:08寫道: > Dear all, > > I'm struggling to setup a nested itemize with no blank line and several > columns. > > What I mean is something like > 1. a) bla c) bla > b) bla d) bla > > The following MWE is my starting point > > \starttext > \startitemize[n] > \item \blank[-line] > \startitemize[a,horizontal,two] [margin=2cm] > \item First > \item Second > \item Third > \item Fourth > \stopitemize > \item \blank[-line] > \startitemize[a,horizontal,columns,two] > \item First > \item Second > \item Third > \item Fourth > \stopitemize > \stopitemize > \stoptext > > Thanks in advance > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 2924 bytes --] [-- Attachment #2: Type: text/plain, Size: 496 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [NTG-context] Re: Nested itemize 2022-09-02 9:22 ` fv leung via ntg-context @ 2023-08-21 18:57 ` Alexandre Christe 2023-08-22 2:08 ` fv leung 0 siblings, 1 reply; 8+ messages in thread From: Alexandre Christe @ 2023-08-21 18:57 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 3318 bytes --] Dear ConTeXt users, Time goes by but I haven't yet found a nice solution to this issue. When having mathematics, I'd not like to adjust by hand the factor of \linewidth for the \godown command. Here's a MWE \starttext \startitemize[n][style=\bf] \item \godown[-\lineheight] \startitemize [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}] \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitemize \stopitemize \stoptext Thanks in advance. Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context <ntg-context@ntg.nl> a écrit : > > \starttext > > \startitemize[n] > \item\godown[-\lineheight] > > \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] > \item bla > \item bla > \item bla > \item bla > \stopitemize > \item\godown[-\lineheight] > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] > \item bla > \item bla > \item bla > \item bla > \item bla > \item bla > \stopitemize > \item\godown[-\lineheight] > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] > \item bla > \item bla > \item bla > \item bla > \item bla > \item bla > \item bla > \item bla > \stopitemize > \stopitemize > > \stoptext > > Alexandre Christe via ntg-context <ntg-context@ntg.nl> 於 2022年9月2日 週五 > 下午5:08寫道: > >> Dear all, >> >> I'm struggling to setup a nested itemize with no blank line and several >> columns. >> >> What I mean is something like >> 1. a) bla c) bla >> b) bla d) bla >> >> The following MWE is my starting point >> >> \starttext >> \startitemize[n] >> \item \blank[-line] >> \startitemize[a,horizontal,two] [margin=2cm] >> \item First >> \item Second >> \item Third >> \item Fourth >> \stopitemize >> \item \blank[-line] >> \startitemize[a,horizontal,columns,two] >> \item First >> \item Second >> \item Third >> \item Fourth >> \stopitemize >> \stopitemize >> \stoptext >> >> Thanks in advance >> >> ___________________________________________________________________________________ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> >> ___________________________________________________________________________________ >> > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > [-- Attachment #1.2: Type: text/html, Size: 5221 bytes --] [-- Attachment #2: Type: text/plain, Size: 495 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [NTG-context] Re: Nested itemize 2023-08-21 18:57 ` [NTG-context] " Alexandre Christe @ 2023-08-22 2:08 ` fv leung 2023-08-22 5:12 ` Alexandre Christe 0 siblings, 1 reply; 8+ messages in thread From: fv leung @ 2023-08-22 2:08 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 4578 bytes --] I'd do it this way: \starttext \startitemize[n][style=\bf] \item\vtop{% \startitemize[a,horizontal,four][stopper=\)] \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitem \stopitemize } \stopitemize \stoptext Alexandre Christe <aleks.christe@gmail.com> 於 2023年8月22日 週二 上午2:58寫道: > Dear ConTeXt users, > > Time goes by but I haven't yet found a nice solution to this issue. When > having mathematics, I'd not like to adjust by hand the factor of \linewidth > for the \godown command. > > Here's a MWE > > \starttext > > \startitemize[n][style=\bf] > \item \godown[-\lineheight] \startitemize > [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}] > \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitemize > \stopitemize > > \stoptext > > Thanks in advance. > > Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context <ntg-context@ntg.nl> > a écrit : > >> >> \starttext >> >> \startitemize[n] >> \item\godown[-\lineheight] >> >> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] >> \item bla >> \item bla >> \item bla >> \item bla >> \stopitemize >> \item\godown[-\lineheight] >> >> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] >> \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \stopitemize >> \item\godown[-\lineheight] >> >> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] >> \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \item bla >> \stopitemize >> \stopitemize >> >> \stoptext >> >> Alexandre Christe via ntg-context <ntg-context@ntg.nl> 於 2022年9月2日 週五 >> 下午5:08寫道: >> >>> Dear all, >>> >>> I'm struggling to setup a nested itemize with no blank line and several >>> columns. >>> >>> What I mean is something like >>> 1. a) bla c) bla >>> b) bla d) bla >>> >>> The following MWE is my starting point >>> >>> \starttext >>> \startitemize[n] >>> \item \blank[-line] >>> \startitemize[a,horizontal,two] [margin=2cm] >>> \item First >>> \item Second >>> \item Third >>> \item Fourth >>> \stopitemize >>> \item \blank[-line] >>> \startitemize[a,horizontal,columns,two] >>> \item First >>> \item Second >>> \item Third >>> \item Fourth >>> \stopitemize >>> \stopitemize >>> \stoptext >>> >>> Thanks in advance >>> >>> ___________________________________________________________________________________ >>> If your question is of interest to others as well, please add an entry >>> to the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> https://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : https://contextgarden.net >>> >>> ___________________________________________________________________________________ >>> >> >> ___________________________________________________________________________________ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> >> ___________________________________________________________________________________ >> > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 7108 bytes --] [-- Attachment #2: Type: text/plain, Size: 495 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [NTG-context] Re: Nested itemize 2023-08-22 2:08 ` fv leung @ 2023-08-22 5:12 ` Alexandre Christe 2023-08-22 8:44 ` Mikael Sundqvist 2023-08-22 9:47 ` Alexandre Christe 0 siblings, 2 replies; 8+ messages in thread From: Alexandre Christe @ 2023-08-22 5:12 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 6610 bytes --] It’s true that \vtop{…} does the job for a single line of items, but it doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom. Here’s a modified MWE \startitemize[n][style=\bf] \item \godown[-\lineheight] \startitemize [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}] \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitemize \stopitemize A. Christe Le 22 août 2023 à 04:08 +0200, fv leung <fvleung@gmail.com>, a écrit : > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% > \startitemize[a,horizontal,four][stopper=\)] > \startitem > $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \stopitem > \startitem > $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \stopitem > \startitem > $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \stopitem > \startitem > $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitem > \stopitemize > } > \stopitemize > > \stoptext > > > Alexandre Christe <aleks.christe@gmail.com> 於 2023年8月22日 週二 上午2:58寫道: > > > Dear ConTeXt users, > > > > > > Time goes by but I haven't yet found a nice solution to this issue. When having mathematics, I'd not like to adjust by hand the factor of \linewidth for the \godown command. > > > > > > Here's a MWE > > > > > > \starttext > > > > > > \startitemize[n][style=\bf] > > > \item \godown[-\lineheight] \startitemize [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}] > > > \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > > > \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > > > \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > > > \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > > > \stopitemize > > > \stopitemize > > > > > > \stoptext > > > > > > Thanks in advance. > > > > > > > Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context <ntg-context@ntg.nl> a écrit : > > > > > > > > > > \starttext > > > > > > > > > > \startitemize[n] > > > > > \item\godown[-\lineheight] > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \stopitemize > > > > > \item\godown[-\lineheight] > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \stopitemize > > > > > \item\godown[-\lineheight] > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \item bla > > > > > \stopitemize > > > > > \stopitemize > > > > > > > > > > \stoptext > > > > > > > > > > > Alexandre Christe via ntg-context <ntg-context@ntg.nl> 於 2022年9月2日 週五 下午5:08寫道: > > > > > > > Dear all, > > > > > > > > > > > > > > I'm struggling to setup a nested itemize with no blank line and several columns. > > > > > > > > > > > > > > What I mean is something like > > > > > > > 1. a) bla c) bla > > > > > > > b) bla d) bla > > > > > > > > > > > > > > The following MWE is my starting point > > > > > > > > > > > > > > \starttext > > > > > > > \startitemize[n] > > > > > > > \item \blank[-line] > > > > > > > \startitemize[a,horizontal,two] [margin=2cm] > > > > > > > \item First > > > > > > > \item Second > > > > > > > \item Third > > > > > > > \item Fourth > > > > > > > \stopitemize > > > > > > > \item \blank[-line] > > > > > > > \startitemize[a,horizontal,columns,two] > > > > > > > \item First > > > > > > > \item Second > > > > > > > \item Third > > > > > > > \item Fourth > > > > > > > \stopitemize > > > > > > > \stopitemize > > > > > > > \stoptext > > > > > > > > > > > > > > Thanks in advance > > > > > > > ___________________________________________________________________________________ > > > > > > > If your question is of interest to others as well, please add an entry to the Wiki! > > > > > > > > > > > > > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > > > > > > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > > > > > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > > > > > > wiki : https://contextgarden.net > > > > > > > ___________________________________________________________________________________ > > > > > ___________________________________________________________________________________ > > > > > If your question is of interest to others as well, please add an entry to the Wiki! > > > > > > > > > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > > > > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > > > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > > > > wiki : https://contextgarden.net > > > > > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ > > > If your question is of interest to others as well, please add an entry to the Wiki! > > > > > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > > wiki : https://contextgarden.net > > > ___________________________________________________________________________________ > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to the Wiki! > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 9792 bytes --] [-- Attachment #2: Type: text/plain, Size: 495 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [NTG-context] Re: Nested itemize 2023-08-22 5:12 ` Alexandre Christe @ 2023-08-22 8:44 ` Mikael Sundqvist 2023-08-22 9:47 ` Alexandre Christe 1 sibling, 0 replies; 8+ messages in thread From: Mikael Sundqvist @ 2023-08-22 8:44 UTC (permalink / raw) To: mailing list for ConTeXt users Hi, On Tue, Aug 22, 2023 at 7:16 AM Alexandre Christe <aleks.christe@gmail.com> wrote: > > It’s true that \vtop{…} does the job for a single line of items, but it doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom. > > Here’s a modified MWE > > \startitemize[n][style=\bf] > \item \godown[-\lineheight] \startitemize [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}] > \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitemize > \stopitemize > > A. Christe > Le 22 août 2023 à 04:08 +0200, fv leung <fvleung@gmail.com>, a écrit : > > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% > \startitemize[a,horizontal,four][stopper=\)] > \startitem > $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \stopitem > \startitem > $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \stopitem > \startitem > $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \stopitem > \startitem > $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitem > \stopitemize > } > \stopitemize > > \stoptext > > Alexandre Christe <aleks.christe@gmail.com> 於 2023年8月22日 週二 上午2:58寫道: >> >> Dear ConTeXt users, >> >> Time goes by but I haven't yet found a nice solution to this issue. When having mathematics, I'd not like to adjust by hand the factor of \linewidth for the \godown command. >> >> Here's a MWE >> >> \starttext >> >> \startitemize[n][style=\bf] >> \item \godown[-\lineheight] \startitemize [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}] >> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ >> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ >> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ >> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ >> \stopitemize >> \stopitemize >> >> \stoptext >> >> Thanks in advance. >> >> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context <ntg-context@ntg.nl> a écrit : >>> >>> >>> \starttext >>> >>> \startitemize[n] >>> \item\godown[-\lineheight] >>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \stopitemize >>> \item\godown[-\lineheight] >>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \stopitemize >>> \item\godown[-\lineheight] >>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \stopitemize >>> \stopitemize >>> >>> \stoptext >>> >>> Alexandre Christe via ntg-context <ntg-context@ntg.nl> 於 2022年9月2日 週五 下午5:08寫道: >>>> >>>> Dear all, >>>> >>>> I'm struggling to setup a nested itemize with no blank line and several columns. >>>> >>>> What I mean is something like >>>> 1. a) bla c) bla >>>> b) bla d) bla >>>> >>>> The following MWE is my starting point >>>> >>>> \starttext >>>> \startitemize[n] >>>> \item \blank[-line] >>>> \startitemize[a,horizontal,two] [margin=2cm] >>>> \item First >>>> \item Second >>>> \item Third >>>> \item Fourth >>>> \stopitemize >>>> \item \blank[-line] >>>> \startitemize[a,horizontal,columns,two] >>>> \item First >>>> \item Second >>>> \item Third >>>> \item Fourth >>>> \stopitemize >>>> \stopitemize >>>> \stoptext >>>> >>>> Thanks in advance Not really tested, but \blank[overlay,-depth] seems to work OK (thanks Hans!). I also take the opportunity to push a bit for the new itemtable mechanism: \defineitemgroup[alex] \setupitemgroup [alex] [each] [a,two] [margin=2cm, before=\blank[overlay,-depth]] \showboxes \starttext \startitemize[n] \startitem \startalextable \startitem First \stopitem \startitem Second \stopitem \startitem Third \stopitem \startitem Fourth \stopitem \stopalextable \stopitem \stopitemize \stoptext Please test for a larger document to see if it works well. /Mikael ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [NTG-context] Re: Nested itemize 2023-08-22 5:12 ` Alexandre Christe 2023-08-22 8:44 ` Mikael Sundqvist @ 2023-08-22 9:47 ` Alexandre Christe 2023-08-22 11:15 ` fv leung 1 sibling, 1 reply; 8+ messages in thread From: Alexandre Christe @ 2023-08-22 9:47 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 7764 bytes --] Hi Mikael, That looks very attractive. However, with the following code, I end up with a large gap above the first row. \defineitemgroup[alex] \setupitemgroup [alex] [each] [a,two] [ margin=2cm, before=\blank[overlay,-depth], stopper=) ] \showboxes \autofences \starttext \samplefile{ward} \startitemize[n][style=\bf] \startitem \startalextable \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitem \stopalextable \stopitem \stopitemize \samplefile{ward} \stoptext A. Christe Le 22 août 2023 à 07:12 +0200, Alexandre Christe <aleks.christe@gmail.com>, a écrit : > It’s true that \vtop{…} does the job for a single line of items, but it doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom. > > Here’s a modified MWE > > \startitemize[n][style=\bf] > \item \godown[-\lineheight] \startitemize [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}] > \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitemize > \stopitemize > > A. Christe > Le 22 août 2023 à 04:08 +0200, fv leung <fvleung@gmail.com>, a écrit : > > I'd do it this way: > > > > \starttext > > \startitemize[n][style=\bf] > > \item\vtop{% > > \startitemize[a,horizontal,four][stopper=\)] > > \startitem > > $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > > \stopitem > > \startitem > > $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > > \stopitem > > \startitem > > $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > > \stopitem > > \startitem > > $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > > \stopitem > > \stopitemize > > } > > \stopitemize > > > > \stoptext > > > > > Alexandre Christe <aleks.christe@gmail.com> 於 2023年8月22日 週二 上午2:58寫道: > > > > Dear ConTeXt users, > > > > > > > > Time goes by but I haven't yet found a nice solution to this issue. When having mathematics, I'd not like to adjust by hand the factor of \linewidth for the \godown command. > > > > > > > > Here's a MWE > > > > > > > > \starttext > > > > > > > > \startitemize[n][style=\bf] > > > > \item \godown[-\lineheight] \startitemize [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}] > > > > \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > > > > \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > > > > \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > > > > \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > > > > \stopitemize > > > > \stopitemize > > > > > > > > \stoptext > > > > > > > > Thanks in advance. > > > > > > > > > Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context <ntg-context@ntg.nl> a écrit : > > > > > > > > > > > > \starttext > > > > > > > > > > > > \startitemize[n] > > > > > > \item\godown[-\lineheight] > > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \stopitemize > > > > > > \item\godown[-\lineheight] > > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \stopitemize > > > > > > \item\godown[-\lineheight] > > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \item bla > > > > > > \stopitemize > > > > > > \stopitemize > > > > > > > > > > > > \stoptext > > > > > > > > > > > > > Alexandre Christe via ntg-context <ntg-context@ntg.nl> 於 2022年9月2日 週五 下午5:08寫道: > > > > > > > > Dear all, > > > > > > > > > > > > > > > > I'm struggling to setup a nested itemize with no blank line and several columns. > > > > > > > > > > > > > > > > What I mean is something like > > > > > > > > 1. a) bla c) bla > > > > > > > > b) bla d) bla > > > > > > > > > > > > > > > > The following MWE is my starting point > > > > > > > > > > > > > > > > \starttext > > > > > > > > \startitemize[n] > > > > > > > > \item \blank[-line] > > > > > > > > \startitemize[a,horizontal,two] [margin=2cm] > > > > > > > > \item First > > > > > > > > \item Second > > > > > > > > \item Third > > > > > > > > \item Fourth > > > > > > > > \stopitemize > > > > > > > > \item \blank[-line] > > > > > > > > \startitemize[a,horizontal,columns,two] > > > > > > > > \item First > > > > > > > > \item Second > > > > > > > > \item Third > > > > > > > > \item Fourth > > > > > > > > \stopitemize > > > > > > > > \stopitemize > > > > > > > > \stoptext > > > > > > > > > > > > > > > > Thanks in advance > > > > > > > > ___________________________________________________________________________________ > > > > > > > > If your question is of interest to others as well, please add an entry to the Wiki! > > > > > > > > > > > > > > > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > > > > > > > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > > > > > > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > > > > > > > wiki : https://contextgarden.net > > > > > > > > ___________________________________________________________________________________ > > > > > > ___________________________________________________________________________________ > > > > > > If your question is of interest to others as well, please add an entry to the Wiki! > > > > > > > > > > > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > > > > > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > > > > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > > > > > wiki : https://contextgarden.net > > > > > > ___________________________________________________________________________________ > > > > ___________________________________________________________________________________ > > > > If your question is of interest to others as well, please add an entry to the Wiki! > > > > > > > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > > > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > > > wiki : https://contextgarden.net > > > > ___________________________________________________________________________________ > > ___________________________________________________________________________________ > > If your question is of interest to others as well, please add an entry to the Wiki! > > > > maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : https://contextgarden.net > > ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 11346 bytes --] [-- Attachment #2: itemize.pdf --] [-- Type: application/octet-stream, Size: 19743 bytes --] [-- Attachment #3: Type: text/plain, Size: 495 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
* [NTG-context] Re: Nested itemize 2023-08-22 9:47 ` Alexandre Christe @ 2023-08-22 11:15 ` fv leung 0 siblings, 0 replies; 8+ messages in thread From: fv leung @ 2023-08-22 11:15 UTC (permalink / raw) To: mailing list for ConTeXt users [-- Attachment #1.1: Type: text/plain, Size: 8515 bytes --] It seems that displaystyle fractions insert extra vertical space before the main item. With textstyle fractions, the code works fine. \blank[back,overlay] can get rid of the gap above the first row, but not the space inserted by \dfrac. \defineitemgroup[alex] \setupitemgroup [alex] [each] [a,two] [ margin=2cm, before={\blank[overlay,-depth]}, after={\blank[nowhite]}, stopper=) ] %\showboxes \autofences \starttext \samplefile{ward} \startitemize[n][style=\bf,before={\blank[back,overlay]},after={\blank[medium]}] \startitem \startalextable \startitem \m{6(x - \frac{5}{12})^2 - \frac{1}{24}} \stopitem \startitem \m{-3(x - \frac{1}{3})^2 + \frac{1}{3}} \stopitem \startitem \m{7(x + \frac{5}{14})^2 + \frac{199}{28}} \stopitem \startitem \m{-\frac{1}{2}(x + 2)^2 + \frac{9}{2}} \stopitem \stopalextable \stopitem \stopitemize \samplefile{ward} \stoptext Alexandre Christe <aleks.christe@gmail.com> 於 2023年8月22日 週二 下午5:48寫道: > Hi Mikael, > > That looks very attractive. However, with the following code, I end up > with a large gap above the first row. > > \defineitemgroup[alex] > > \setupitemgroup > [alex] > [each] > [a,two] > [ > margin=2cm, > before=\blank[overlay,-depth], > stopper=) > ] > > \showboxes > \autofences > > \starttext > \samplefile{ward} > > \startitemize[n][style=\bf] > \startitem > \startalextable > \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem > \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem > \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem > \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitem > \stopalextable > \stopitem > \stopitemize > > \samplefile{ward} > \stoptext > > A. Christe > Le 22 août 2023 à 07:12 +0200, Alexandre Christe <aleks.christe@gmail.com>, > a écrit : > > It’s true that \vtop{…} does the job for a single line of items, but it > doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom. > > Here’s a modified MWE > > \startitemize[n][style=\bf] > \item \godown[-\lineheight] \startitemize > [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}] > \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitemize > \stopitemize > > A. Christe > Le 22 août 2023 à 04:08 +0200, fv leung <fvleung@gmail.com>, a écrit : > > I'd do it this way: > > \starttext > \startitemize[n][style=\bf] > \item\vtop{% > \startitemize[a,horizontal,four][stopper=\)] > \startitem > $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ > \stopitem > \startitem > $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ > \stopitem > \startitem > $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ > \stopitem > \startitem > $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ > \stopitem > \stopitemize > } > \stopitemize > > \stoptext > > Alexandre Christe <aleks.christe@gmail.com> 於 2023年8月22日 週二 上午2:58寫道: > >> Dear ConTeXt users, >> >> Time goes by but I haven't yet found a nice solution to this issue. When >> having mathematics, I'd not like to adjust by hand the factor of \linewidth >> for the \godown command. >> >> Here's a MWE >> >> \starttext >> >> \startitemize[n][style=\bf] >> \item \godown[-\lineheight] \startitemize >> [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}] >> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ >> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ >> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ >> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ >> \stopitemize >> \stopitemize >> >> \stoptext >> >> Thanks in advance. >> >> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context < >> ntg-context@ntg.nl> a écrit : >> >>> >>> \starttext >>> >>> \startitemize[n] >>> \item\godown[-\lineheight] >>> >>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=] >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \stopitemize >>> \item\godown[-\lineheight] >>> >>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=] >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \stopitemize >>> \item\godown[-\lineheight] >>> >>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \item bla >>> \stopitemize >>> \stopitemize >>> >>> \stoptext >>> >>> Alexandre Christe via ntg-context <ntg-context@ntg.nl> 於 2022年9月2日 週五 >>> 下午5:08寫道: >>> >>>> Dear all, >>>> >>>> I'm struggling to setup a nested itemize with no blank line and several >>>> columns. >>>> >>>> What I mean is something like >>>> 1. a) bla c) bla >>>> b) bla d) bla >>>> >>>> The following MWE is my starting point >>>> >>>> \starttext >>>> \startitemize[n] >>>> \item \blank[-line] >>>> \startitemize[a,horizontal,two] [margin=2cm] >>>> \item First >>>> \item Second >>>> \item Third >>>> \item Fourth >>>> \stopitemize >>>> \item \blank[-line] >>>> \startitemize[a,horizontal,columns,two] >>>> \item First >>>> \item Second >>>> \item Third >>>> \item Fourth >>>> \stopitemize >>>> \stopitemize >>>> \stoptext >>>> >>>> Thanks in advance >>>> >>>> ___________________________________________________________________________________ >>>> If your question is of interest to others as well, please add an entry >>>> to the Wiki! >>>> >>>> maillist : ntg-context@ntg.nl / >>>> https://www.ntg.nl/mailman/listinfo/ntg-context >>>> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >>>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>>> wiki : https://contextgarden.net >>>> >>>> ___________________________________________________________________________________ >>>> >>> >>> ___________________________________________________________________________________ >>> If your question is of interest to others as well, please add an entry >>> to the Wiki! >>> >>> maillist : ntg-context@ntg.nl / >>> https://www.ntg.nl/mailman/listinfo/ntg-context >>> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >>> archive : https://bitbucket.org/phg/context-mirror/commits/ >>> wiki : https://contextgarden.net >>> >>> ___________________________________________________________________________________ >>> >> >> ___________________________________________________________________________________ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> >> ___________________________________________________________________________________ > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ > > > ___________________________________________________________________________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 13233 bytes --] [-- Attachment #2: trial.pdf --] [-- Type: application/pdf, Size: 14441 bytes --] [-- Attachment #3: Type: text/plain, Size: 495 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2023-08-22 11:18 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2022-09-02 9:08 Nested itemize Alexandre Christe via ntg-context 2022-09-02 9:22 ` fv leung via ntg-context 2023-08-21 18:57 ` [NTG-context] " Alexandre Christe 2023-08-22 2:08 ` fv leung 2023-08-22 5:12 ` Alexandre Christe 2023-08-22 8:44 ` Mikael Sundqvist 2023-08-22 9:47 ` Alexandre Christe 2023-08-22 11:15 ` fv leung
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).