ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ 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; 19+ 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] 19+ messages in thread

* Re: nested itemize
  2014-11-30 20:58     ` Otared Kavian
@ 2014-12-01  7:01       ` Mikael P. Sundqvist
  0 siblings, 0 replies; 19+ messages in thread
From: Mikael P. Sundqvist @ 2014-12-01  7:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Nov 30, 2014 at 9:58 PM, Otared Kavian <otared@gmail.com> wrote:
>
>> On 29 Nov 2014, at 11:43, Mikael P. Sundqvist <mickep@gmail.com> 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.
___________________________________________________________________________________
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] 19+ messages in thread

* Re: nested itemize
  2014-11-29 10:43   ` Mikael P. Sundqvist
  2014-11-29 10:49     ` Hans Hagen
  2014-11-30 20:48     ` Otared Kavian
@ 2014-11-30 20:58     ` Otared Kavian
  2014-12-01  7:01       ` Mikael P. Sundqvist
  2 siblings, 1 reply; 19+ messages in thread
From: Otared Kavian @ 2014-11-30 20:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> On 29 Nov 2014, at 11:43, Mikael P. Sundqvist <mickep@gmail.com> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nested itemize
  2014-11-29 10:43   ` Mikael P. Sundqvist
  2014-11-29 10:49     ` Hans Hagen
@ 2014-11-30 20:48     ` Otared Kavian
  2014-11-30 20:58     ` Otared Kavian
  2 siblings, 0 replies; 19+ messages in thread
From: Otared Kavian @ 2014-11-30 20:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 888 bytes --]

On 29 Nov 2014, at 11:43, Mikael P. Sundqvist <mickep@gmail.com> wrote:
> 
> On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen <pragma@wxs.nl> 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

[-- Attachment #1.2: Type: text/html, Size: 2198 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] 19+ messages in thread

* Re: nested itemize
  2014-11-29 10:43   ` Mikael P. Sundqvist
@ 2014-11-29 10:49     ` Hans Hagen
  2014-11-30 20:48     ` Otared Kavian
  2014-11-30 20:58     ` Otared Kavian
  2 siblings, 0 replies; 19+ messages in thread
From: Hans Hagen @ 2014-11-29 10:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On 11/29/2014 11:43 AM, Mikael P. Sundqvist wrote:
> On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen <pragma@wxs.nl> 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
-----------------------------------------------------------------
___________________________________________________________________________________
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] 19+ messages in thread

* Re: nested itemize
  2014-11-29 10:04 ` Hans Hagen
@ 2014-11-29 10:43   ` Mikael P. Sundqvist
  2014-11-29 10:49     ` Hans Hagen
                       ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Mikael P. Sundqvist @ 2014-11-29 10:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen <pragma@wxs.nl> 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 :)

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
___________________________________________________________________________________
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] 19+ messages in thread

* Re: nested itemize
  2014-11-28 18:01 nested itemize Mikael P. Sundqvist
  2014-11-29  9:48 ` Otared Kavian
@ 2014-11-29 10:04 ` Hans Hagen
  2014-11-29 10:43   ` Mikael P. Sundqvist
  1 sibling, 1 reply; 19+ messages in thread
From: Hans Hagen @ 2014-11-29 10:04 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 19+ messages in thread

* Re: nested itemize
  2014-11-28 18:01 nested itemize Mikael P. Sundqvist
@ 2014-11-29  9:48 ` Otared Kavian
  2014-11-29 10:04 ` Hans Hagen
  1 sibling, 0 replies; 19+ messages in thread
From: Otared Kavian @ 2014-11-29  9:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 <mickep@gmail.com> 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
> <listor.pdf><listor.log>___________________________________________________________________________________
> 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] 19+ messages in thread

* nested itemize
@ 2014-11-28 18:01 Mikael P. Sundqvist
  2014-11-29  9:48 ` Otared Kavian
  2014-11-29 10:04 ` Hans Hagen
  0 siblings, 2 replies; 19+ messages in thread
From: Mikael P. Sundqvist @ 2014-11-28 18:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 543 bytes --]

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

[-- Attachment #2: listor.pdf --]
[-- Type: application/pdf, Size: 5984 bytes --]

[-- Attachment #3: listor.log --]
[-- Type: text/x-log, Size: 5367 bytes --]

open source     > 1 > 1 > /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2014.11.26 21:43 MKIV beta  fmt: 2014.11.28  int: english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv
close source    > 2 > 2 > /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv

system          > files > jobname 'listor', input './listor', result 'listor'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > /home/mickep/tmp/listor.tex
fonts           > preloading latin modern fonts (second stage)
fonts           > 'fallback modern-designsize rm 12pt' is loaded
backend         > xmp > using file '/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
close source    > 2 > 3 > /home/mickep/tmp/listor.tex
close source    > 1 > 3 > /home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv

system          > structure > start used structure

used structure  > text: listor

system          > structure > stop used structure


system          > files > start used files

used file       >    1: filename=cont-yes.mkiv filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-yes.mkiv usedmethod=database
used file       >    2: filename=publ-imp-apa.lua filetype=scripts foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/publ-imp-apa.lua usedmethod=database
used file       >    3: filename=cont-new.mkiv filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/cont-new.mkiv usedmethod=database
used file       >    4: filename=lang-us.lua filetype=scripts foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/patterns/lang-us.lua usedmethod=database
used file       >    5: filename=/home/mickep/tmp/listor.tex foundname=/home/mickep/tmp/listor.tex usedmethod=direct
used file       >    6: filename=lm.lfg filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/fonts/lm.lfg usedmethod=database
used file       >    7: filename=lmroman12-regular filetype=otf format=otf foundname=/home/mickep/ConTeXt/tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file       >    8: filename=latinmodern-math.otf filetype=opentypefonts foundname=/home/mickep/ConTeXt/tex/texmf/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file       >    9: filename=lpdf-pdx.xml filetype=tex foundname=/home/mickep/ConTeXt/tex/texmf-context/tex/context/base/lpdf-pdx.xml usedmethod=database

system          > files > stop used files


system          > options > start commandline options

used option     > batchmode="true"
used option     > currentrun="1"
used option     > directives="logs.target=file"
used option     > fulljobname="./listor.tex"
used option     > input="./listor.tex"
used option     > kindofrun="1"
used option     > maxnofruns="8"
used option     > no-parse-first-line="true"
used option     > noconsole="true"
used option     > synctex="true"

system          > options > stop commandline options

system          > options > start commandline files

used file       >    1: ./listor.tex

system          > options > stop commandline files


mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
mkiv lua stats  > used cache path: /home/mickep/ConTeXt/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
mkiv lua stats  > synctex tracing: synctex has been enabled (extra log file generated)
mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 9 found files, scanned paths: <none>
mkiv lua stats  > stored bytecode data: 359 modules (0.118 sec), 72 tables (0.002 sec), 431 chunks (0.120 sec)
mkiv lua stats  > running in nuts mode: yes
mkiv lua stats  > cleaned up reserved nodes: 44 nodes, 442 lists of 441
mkiv lua stats  > node memory usage: 13 hlist, 22 glue, 4 kern, 7 penalty, 16 glyph, 64 attribute, 38 glue_spec, 20 attribute_list, 2 temp, 2 local_par, 2 dir
mkiv lua stats  > node list callback tasks: 6 unique task lists, 5 instances (re)created, 81 calls
mkiv lua stats  > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats  > loaded patterns: en::2, load time: 0.000
mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
mkiv lua stats  > callbacks: 240 direct, 250 indirect, 490 total
mkiv lua stats  > randomizer: resumed with value 0.16052632087866
mkiv lua stats  > result saved in file: listor.pdf, compresslevel 3, objectcompresslevel 3
mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, lmroman12-regular.otf
mkiv lua stats  > fonts load time: 0.113 seconds 
mkiv lua stats  > used platform: linux-64, type: unix, binary subtree: texmf-linux-64
mkiv lua stats  > luatex banner: this is luatex, version beta-0.79.1 (tex live 2014/dev) (rev 4972)
mkiv lua stats  > control sequences: 40363 of 65536 + 100000
mkiv lua stats  > lua properties: engine: lua, used memory: 57 MB (ctx: 57 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)
mkiv lua stats  > runtime: 0.341 seconds, 1 processed pages, 1 shipped pages, 2.933 pages/second


[-- 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] 19+ messages in thread

* Re: Nested itemize
  2012-04-06 16:13 ` Wolfgang Schuster
@ 2012-04-07 15:08   ` Procházka Lukáš
  0 siblings, 0 replies; 19+ messages in thread
From: Procházka Lukáš @ 2012-04-07 15:08 UTC (permalink / raw)
  To: mailing list for ConTeXt users

... Works nice, thank you!

Best regards,

Lukas


On Fri, 06 Apr 2012 18:13:41 +0200, Wolfgang Schuster <schuster.wolfgang@googlemail.com> wrote:

>
> Am 06.04.2012 um 17:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:
>
>> Hello,
>>
>> is there an option for \startitemize or \setupitemize or \setupitemgroup:
>>
>> ----
>> \startitemize
>>  \item A
>>    \startitemize
>>      \item B
>>    \stopitemize
>> \stopitemize
>> ----
>>
>> to get:
>>
>> 1. A
>>  1.1 B (= nested item has its parent numbers, too)
>>
>> or rather
>>
>> 1. A
>> 1.1 B (= nested item has its parent numbers, too; no indenting of nested items)
>>
>> instead of
>>
>> 1. A
>>  1. B (= normal result)
>> ?
>
>
> The “repeat” is needed to show the number on the next level, the “intext” prevents the items from being indented.
>
> \starttext
>
> \startitemize[n,repeat,intext]
>   \item A
>   \startitemize[A,broad]
>     \item B
>   \stopitemize
> \stopitemize
>
> \stoptext
>
> BTW: A minimal example should contain \starttext/\stoptext and in your case also the options for itemize.
>
> Wolfgang
> ___________________________________________________________________________________
> 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] 19+ messages in thread

* Re: Nested itemize
  2012-04-06 15:40 Nested itemize Procházka Lukáš Ing. - Pontex s. r. o.
@ 2012-04-06 16:13 ` Wolfgang Schuster
  2012-04-07 15:08   ` Procházka Lukáš
  0 siblings, 1 reply; 19+ messages in thread
From: Wolfgang Schuster @ 2012-04-06 16:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 06.04.2012 um 17:40 schrieb Procházka Lukáš Ing. - Pontex s. r. o.:

> Hello,
> 
> is there an option for \startitemize or \setupitemize or \setupitemgroup:
> 
> ----
> \startitemize
>  \item A
>    \startitemize
>      \item B
>    \stopitemize
> \stopitemize
> ----
> 
> to get:
> 
> 1. A
>  1.1 B (= nested item has its parent numbers, too)
> 
> or rather
> 
> 1. A
> 1.1 B (= nested item has its parent numbers, too; no indenting of nested items)
> 
> instead of
> 
> 1. A
>  1. B (= normal result)
> ?


The “repeat” is needed to show the number on the next level, the “intext” prevents the items from being indented.

\starttext

\startitemize[n,repeat,intext]
  \item A
  \startitemize[A,broad]
    \item B
  \stopitemize
\stopitemize

\stoptext

BTW: A minimal example should contain \starttext/\stoptext and in your case also the options for itemize.

Wolfgang
___________________________________________________________________________________
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] 19+ messages in thread

* Nested itemize
@ 2012-04-06 15:40 Procházka Lukáš Ing. - Pontex s. r. o.
  2012-04-06 16:13 ` Wolfgang Schuster
  0 siblings, 1 reply; 19+ messages in thread
From: Procházka Lukáš Ing. - Pontex s. r. o. @ 2012-04-06 15:40 UTC (permalink / raw)
  To: ConTeXt

Hello,

is there an option for \startitemize or \setupitemize or \setupitemgroup:

----
\startitemize
   \item A
     \startitemize
       \item B
     \stopitemize
\stopitemize
----

to get:

1. A
   1.1 B (= nested item has its parent numbers, too)

or rather

1. A
1.1 B (= nested item has its parent numbers, too; no indenting of nested items)

instead of

1. A
   1. B (= normal result)
?

Maybe a similar problem was discussed some days before but not exactly this case...

TIA.

Best regards,

Lukas


-- 
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

___________________________________________________________________________________
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] 19+ messages in thread

end of thread, other threads:[~2023-08-22 11:18 UTC | newest]

Thread overview: 19+ 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
  -- strict thread matches above, loose matches on Subject: below --
2014-11-28 18:01 nested itemize Mikael P. Sundqvist
2014-11-29  9:48 ` Otared Kavian
2014-11-29 10:04 ` Hans Hagen
2014-11-29 10:43   ` Mikael P. Sundqvist
2014-11-29 10:49     ` Hans Hagen
2014-11-30 20:48     ` Otared Kavian
2014-11-30 20:58     ` Otared Kavian
2014-12-01  7:01       ` Mikael P. Sundqvist
2012-04-06 15:40 Nested itemize Procházka Lukáš Ing. - Pontex s. r. o.
2012-04-06 16:13 ` Wolfgang Schuster
2012-04-07 15:08   ` Procházka Lukáš

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).