[NTG-context] Nested itemize lists: unexpected spacing

2024-02-01 Thread Jim
Consider the following:

\starttext

Text before.
\startitemize[1,nowhite]
\item item 1
\item item 2
\startitemize[5,nowhite]
\item sub-item 1
\item sub-item 2
\stopitemize
\item item 3
\stopitemize
Text after.

\stoptext

Notwithstanding the "nowhite" options, there is a blank line before
sub-item 1, which I do not want.

Oddly (to me), if I change the first "nowhite" to "packed", the space
before sub-item 1 goes away, but then I get undesired space before and
after the out itemization.

Q1: Can someone explain the Zen of this?  That is, why does the blank
line before sub-item 1 go away with "packed", but not "nowhite"?



Poking around on the internet, I find that if I leave the "nowhite"s, but
precede "Text before." with
\unprotect
\c_strc_itemgroups_spacing_mode=1  % 0 works too, but 2 doesn't
\protect
then I get the spacing I want.

Q2: \c_strc_itemgroups_spacing_mode seems to be an undocumented "feature".
Is there a "documented" way of making the unwanted blank line
go away, without introducing unwanted blank lines before and
after the outer itemize list?


Thanks.
Jim
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Nested itemize

2022-09-02 Thread fv leung via ntg-context
\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  於 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
___


[NTG-context] Nested itemize

2022-09-02 Thread Alexandre Christe via ntg-context
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
___


Re: [NTG-context] Nested itemize horizontal/column problem

2016-09-19 Thread Mikael P. Sundqvist
On Mon, Sep 19, 2016 at 3:37 PM, Otared Kavian  wrote:
> Hi Mikael,
>
> The explanation and the solution given by Henri works fine here. The code 
> below gives the attached PDF (with ConTeXt 2016.09.12 18:27 MKIV beta). The 
> point is that an empty \item does not allow to begin a new level of 
> itemization.
>
> Best regards: OK
> %%% begin
> \starttext
> \startitemize[n]
> \item \blank[-line]
> \startitemize[a,horizontal,two]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item % Here with a blank line
> \blank[small]
> \startitemize[a,horizontal,two]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
>
> \stopitemize
> \stoptext
> %%% end
>
>
>
>
>> On 19 Sep 2016, at 13:27, Mikael P. Sundqvist  wrote:
>>
>> On Sun, Sep 18, 2016 at 9:56 PM, Henri Menke  wrote:
>>> You can start itemize only in vertical mode.  To switch to vertical mode 
>>> use \blank.  To kill the empty line which is inserted use \blank[-line].
>>>
>>> \starttext
>>> \startitemize[n]
>>> \item \blank[-line]
>>> \startitemize[a,horizontal,three]
>>> \startitem First \stopitem
>>> \startitem Second \stopitem
>>> \startitem Third \stopitem
>>> \startitem Fourth \stopitem
>>> \stopitemize
>>> \item On the outer level
>>> \stopitemize
>>> \stoptext
>>>
>>> On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote:
 Hi

 1) the following code

 \starttext
 \startitemize[n]
 \item
 \startitemize[a,horizontal,three]
 \startitem First \stopitem
 \startitem Second \stopitem
 \startitem Third \stopitem
 \startitem Fourth \stopitem
 \stopitemize
 \item On the outer level
 \stopitemize
 \stoptext

 generates the error

 tex error   > tex error on line 9 in file
 /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
 in restricted horizontal mode

 Isn't it possible to have nested itemize with key horizontal?

 2) If I change the horizontal key to columns, then there is an extra
 line (the extra line in nested itemization has been discussed before,
 but not with these keys given, as far as I could see). I.e. the file

 \starttext
 \startitemize[n]
 \item
 \startitemize[a,columns,three]
 \startitem First \stopitem
 \startitem Second \stopitem
 \startitem Third \stopitem
 \startitem Fourth \stopitem
 \stopitemize
 \item On the outer level
 \stopitemize
 \stoptext

 gives the attached pdf file, where I would have exptected the first a.
 in the inner itemize to be on the same line as the 1. in the outer
 itemize.

 Anyone has an idea on what is going on here?

 Best regards, Mikael



 ___
 If your question is of interest to others as well, please add an entry to 
 the Wiki!

 maillist : ntg-context@ntg.nl / 
 http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___

>>>
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>>
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>>> archive  : http://foundry.supelec.fr/projects/contextrev/
>>> wiki : http://contextgarden.net
>>> ___
>>
>>
>> Thank you Henri, that works, and I can live with adding \blank[-line]
>> in these cases.
>>
>> I still wonder if there is an automatic way, since it seems to only
>> happen when one has the inner itemize in columns. For example, with
>>
>> \starttext
>> \startitemize[n]
>> \item
>> \startitemize[a]
>> \startitem First \stopitem
>> \startitem Second \stopitem
>> \startitem Third \stopitem
>> \startitem Fourth \stopitem
>> \stopitemize
>> \item On the outer level
>> \stopitemize
>> \stoptext
>>
>> there is no extra line (result is attached).
>>
>> /Mikael
>> ___
>> 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  

Re: [NTG-context] Nested itemize horizontal/column problem

2016-09-19 Thread Otared Kavian
Hi Mikael,

The explanation and the solution given by Henri works fine here. The code below 
gives the attached PDF (with ConTeXt 2016.09.12 18:27 MKIV beta). The point is 
that an empty \item does not allow to begin a new level of itemization. 

Best regards: OK
%%% begin
\starttext
\startitemize[n]
\item \blank[-line]
\startitemize[a,horizontal,two]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item % Here with a blank line
\blank[small]
\startitemize[a,horizontal,two]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level

\stopitemize
\stoptext
%%% end



itemize-horizontal.pdf
Description: Adobe PDF document


> On 19 Sep 2016, at 13:27, Mikael P. Sundqvist  wrote:
> 
> On Sun, Sep 18, 2016 at 9:56 PM, Henri Menke  wrote:
>> You can start itemize only in vertical mode.  To switch to vertical mode use 
>> \blank.  To kill the empty line which is inserted use \blank[-line].
>> 
>> \starttext
>> \startitemize[n]
>> \item \blank[-line]
>> \startitemize[a,horizontal,three]
>> \startitem First \stopitem
>> \startitem Second \stopitem
>> \startitem Third \stopitem
>> \startitem Fourth \stopitem
>> \stopitemize
>> \item On the outer level
>> \stopitemize
>> \stoptext
>> 
>> On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote:
>>> Hi
>>> 
>>> 1) the following code
>>> 
>>> \starttext
>>> \startitemize[n]
>>> \item
>>> \startitemize[a,horizontal,three]
>>> \startitem First \stopitem
>>> \startitem Second \stopitem
>>> \startitem Third \stopitem
>>> \startitem Fourth \stopitem
>>> \stopitemize
>>> \item On the outer level
>>> \stopitemize
>>> \stoptext
>>> 
>>> generates the error
>>> 
>>> tex error   > tex error on line 9 in file
>>> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
>>> in restricted horizontal mode
>>> 
>>> Isn't it possible to have nested itemize with key horizontal?
>>> 
>>> 2) If I change the horizontal key to columns, then there is an extra
>>> line (the extra line in nested itemization has been discussed before,
>>> but not with these keys given, as far as I could see). I.e. the file
>>> 
>>> \starttext
>>> \startitemize[n]
>>> \item
>>> \startitemize[a,columns,three]
>>> \startitem First \stopitem
>>> \startitem Second \stopitem
>>> \startitem Third \stopitem
>>> \startitem Fourth \stopitem
>>> \stopitemize
>>> \item On the outer level
>>> \stopitemize
>>> \stoptext
>>> 
>>> gives the attached pdf file, where I would have exptected the first a.
>>> in the inner itemize to be on the same line as the 1. in the outer
>>> itemize.
>>> 
>>> Anyone has an idea on what is going on here?
>>> 
>>> Best regards, Mikael
>>> 
>>> 
>>> 
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> http://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>>> archive  : http://foundry.supelec.fr/projects/contextrev/
>>> wiki : http://contextgarden.net
>>> ___
>>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
> 
> 
> Thank you Henri, that works, and I can live with adding \blank[-line]
> in these cases.
> 
> I still wonder if there is an automatic way, since it seems to only
> happen when one has the inner itemize in columns. For example, with
> 
> \starttext
> \startitemize[n]
> \item
> \startitemize[a]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
> 
> there is no extra line (result is attached).
> 
> /Mikael
> ___
> 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
> ___


Re: [NTG-context] Nested itemize horizontal/column problem

2016-09-19 Thread Wolfgang Schuster

Henri Menke 
18. September 2016 um 21:56
You can start itemize only in vertical mode. To switch to vertical 
mode use \blank. To kill the empty line which is inserted use 
\blank[-line].

Or use \blank[overlay].

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

Re: [NTG-context] Nested itemize horizontal/column problem

2016-09-19 Thread Mikael P. Sundqvist
On Sun, Sep 18, 2016 at 9:56 PM, Henri Menke  wrote:
> You can start itemize only in vertical mode.  To switch to vertical mode use 
> \blank.  To kill the empty line which is inserted use \blank[-line].
>
> \starttext
> \startitemize[n]
> \item \blank[-line]
> \startitemize[a,horizontal,three]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
>
> On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote:
>> Hi
>>
>> 1) the following code
>>
>> \starttext
>> \startitemize[n]
>> \item
>> \startitemize[a,horizontal,three]
>> \startitem First \stopitem
>> \startitem Second \stopitem
>> \startitem Third \stopitem
>> \startitem Fourth \stopitem
>> \stopitemize
>> \item On the outer level
>> \stopitemize
>> \stoptext
>>
>> generates the error
>>
>> tex error   > tex error on line 9 in file
>> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
>> in restricted horizontal mode
>>
>> Isn't it possible to have nested itemize with key horizontal?
>>
>> 2) If I change the horizontal key to columns, then there is an extra
>> line (the extra line in nested itemization has been discussed before,
>> but not with these keys given, as far as I could see). I.e. the file
>>
>> \starttext
>> \startitemize[n]
>> \item
>> \startitemize[a,columns,three]
>> \startitem First \stopitem
>> \startitem Second \stopitem
>> \startitem Third \stopitem
>> \startitem Fourth \stopitem
>> \stopitemize
>> \item On the outer level
>> \stopitemize
>> \stoptext
>>
>> gives the attached pdf file, where I would have exptected the first a.
>> in the inner itemize to be on the same line as the 1. in the outer
>> itemize.
>>
>> Anyone has an idea on what is going on here?
>>
>> Best regards, Mikael
>>
>>
>>
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
>>
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___


Thank you Henri, that works, and I can live with adding \blank[-line]
in these cases.

I still wonder if there is an automatic way, since it seems to only
happen when one has the inner itemize in columns. For example, with

\starttext
\startitemize[n]
\item
\startitemize[a]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

there is no extra line (result is attached).

/Mikael


ctx-listexample14.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] Nested itemize horizontal/column problem

2016-09-18 Thread Henri Menke
You can start itemize only in vertical mode.  To switch to vertical mode use 
\blank.  To kill the empty line which is inserted use \blank[-line].

\starttext
\startitemize[n]
\item \blank[-line]
\startitemize[a,horizontal,three]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

On 09/18/2016 10:54 AM, Mikael P. Sundqvist wrote:
> Hi
> 
> 1) the following code
> 
> \starttext
> \startitemize[n]
> \item
> \startitemize[a,horizontal,three]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
> 
> generates the error
> 
> tex error   > tex error on line 9 in file
> /home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
> in restricted horizontal mode
> 
> Isn't it possible to have nested itemize with key horizontal?
> 
> 2) If I change the horizontal key to columns, then there is an extra
> line (the extra line in nested itemization has been discussed before,
> but not with these keys given, as far as I could see). I.e. the file
> 
> \starttext
> \startitemize[n]
> \item
> \startitemize[a,columns,three]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
> \item On the outer level
> \stopitemize
> \stoptext
> 
> gives the attached pdf file, where I would have exptected the first a.
> in the inner itemize to be on the same line as the 1. in the outer
> itemize.
> 
> Anyone has an idea on what is going on here?
> 
> Best regards, Mikael
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___
> 

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Nested itemize horizontal/column problem

2016-09-18 Thread Mikael P. Sundqvist
Hi

1) the following code

\starttext
\startitemize[n]
\item
\startitemize[a,horizontal,three]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

generates the error

tex error   > tex error on line 9 in file
/home/mickep/tmp/ctx-listexample14.tex: ! You can't use `\prevdepth'
in restricted horizontal mode

Isn't it possible to have nested itemize with key horizontal?

2) If I change the horizontal key to columns, then there is an extra
line (the extra line in nested itemization has been discussed before,
but not with these keys given, as far as I could see). I.e. the file

\starttext
\startitemize[n]
\item
\startitemize[a,columns,three]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize
\item On the outer level
\stopitemize
\stoptext

gives the attached pdf file, where I would have exptected the first a.
in the inner itemize to be on the same line as the 1. in the outer
itemize.

Anyone has an idea on what is going on here?

Best regards, Mikael


ctx-listexample14.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] nested itemize

2014-11-30 Thread Otared Kavian
On 29 Nov 2014, at 11:43, Mikael P. Sundqvist mic...@gmail.com wrote:
 
 On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen pra...@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___
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
___

Re: [NTG-context] nested itemize

2014-11-30 Thread Otared Kavian

 On 29 Nov 2014, at 11:43, Mikael P. Sundqvist mic...@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
___

Re: [NTG-context] nested itemize

2014-11-30 Thread Mikael P. Sundqvist
On Sun, Nov 30, 2014 at 9:58 PM, Otared Kavian ota...@gmail.com wrote:

 On 29 Nov 2014, at 11:43, Mikael P. Sundqvist mic...@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
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Otared Kavian
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 mic...@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.pdflistor.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
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Hans Hagen

On 11/28/2014 7:01 PM, Mikael P. Sundqvist wrote:

The following code (using latest minimals)

\starttext
\startitemize[n]
\item FOO
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize

\startitemize[n]
\item
\startitemize[a]
\item Hello
\item Good bye
\stopitemize
\stopitemize
\stoptext

gives the attached pdf file, i.e. the second nested list is cut. Has
something changed (I've been able to use nested lists before without
having to use FOO or something inbetwen (as in the first example)? I
tried to reinstall, but the same problem appeared again.


a bug indeed ... very nasty code (kind of fight between mechanisms deep 
down in luatex) ... i'll try to fix it



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Mikael P. Sundqvist
On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen pra...@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
___

Re: [NTG-context] nested itemize

2014-11-29 Thread Hans Hagen

On 11/29/2014 11:43 AM, Mikael P. Sundqvist wrote:

On Sat, Nov 29, 2014 at 11:04 AM, Hans Hagen pra...@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
___

[NTG-context] nested itemize

2014-11-28 Thread Mikael P. Sundqvist
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
Description: Adobe PDF document
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'
fontslatin modern fonts are not preloaded
languageslanguage 'en' is active
open source  2  3  /home/mickep/tmp/listor.tex
fontspreloading 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'
pagesflushing 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 

[NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Jaroslav Hajtmar

Hello ConTeXist.

I tried convert plainTeX source code into ConTeXt  source code so that 
the output PDF gave the same (or approximately the same) result. I did 
it for one of plainTEX developers (Mr. Olšák), which compared results of 
PlainTeX, LaTeX and ConTeXt. However, I encountered the following problem.


Is there a way to adjust the spacing before internal itemize environment 
when the external itemize environment is set as PACKED?


Thanx JaroslavHajtmar

Here is my minimal example:


\setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}]
\setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}]

\starttext

This is normal text before itemize list.

\startitemize
\item First 1 level
\item Second 1 level
  \startitemize
  \item First 2 level (before this line should be big space)
  \item Second 2 level
  \item Third  2 level (after this line should be big space)
  \stopitemize
\item Third 1 level
\item Fourth 1 level
\stopitemize

This is normal text after itemize list.


\stoptext

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Tomas Hala
Hi Jarda and all,

I tested it on my computer using CTX from TL 2010 and 2013 and I have got
the same result in both cases. It seems that the content of the option before 
is completely ignored. I tested another values for this option
(\page,\vskip,\godown...), no result.

The only one way which works is the manual addition of \blank before and
after the nested itemize environment, unfortunatelly.

---

Another interesting thing is that the compiler of CTX in TL 2013 does not
report an error when I forgot the opening \starttext, or the closing
\stoptext, or both, whereas in TL 2010 it does. Is this expected behaviour?

Best regards,

Tomas Hala


Thu, Oct 24, 2013 ve 12:45:01PM +0200 Jaroslav Hajtmar napsal(a):
# Hello ConTeXist.
# 
# I tried convert plainTeX source code into ConTeXt  source code so
# that the output PDF gave the same (or approximately the same)
# result. I did it for one of plainTEX developers (Mr. Olšák), which
# compared results of PlainTeX, LaTeX and ConTeXt. However, I
# encountered the following problem.
# 
# Is there a way to adjust the spacing before internal itemize
# environment when the external itemize environment is set as PACKED?
# 
# Thanx JaroslavHajtmar
# 
# Here is my minimal example:
# 
# 
# 
\setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}]
# 
\setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}]
# 
# \starttext
# 
# This is normal text before itemize list.
# 
# \startitemize
# \item First 1 level
# \item Second 1 level
#   \startitemize
#   \item First 2 level (before this line should be big space)
#   \item Second 2 level
#   \item Third  2 level (after this line should be big space)
#   \stopitemize
# \item Third 1 level
# \item Fourth 1 level
# \stopitemize
# 
# This is normal text after itemize list.
# 
# 
# \stoptext
# 
# 
___
# If your question is of interest to others as well, please add an entry to the 
Wiki!
# 
# maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
# webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
# archive  : http://foundry.supelec.fr/projects/contextrev/
# wiki : http://contextgarden.net
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Nested itemize (spaces before and after inside environment)

2013-10-24 Thread Jaroslav Hajtmar

Thanx Tomas.

Of course I know about the possibility of solving the problem by 
directly entering a space before internal environment. However, I prefer 
setting off the source text, so I wonder how it can be solved.


Jarda Hajtmar

Dne 24.10.2013 14:21, Tomas Hala napsal(a):

Hi Jarda and all,

I tested it on my computer using CTX from TL 2010 and 2013 and I have got
the same result in both cases. It seems that the content of the option before
is completely ignored. I tested another values for this option
(\page,\vskip,\godown...), no result.

The only one way which works is the manual addition of \blank before and
after the nested itemize environment, unfortunatelly.

---

Another interesting thing is that the compiler of CTX in TL 2013 does not
report an error when I forgot the opening \starttext, or the closing
\stoptext, or both, whereas in TL 2010 it does. Is this expected behaviour?

Best regards,

Tomas Hala


Thu, Oct 24, 2013 ve 12:45:01PM +0200 Jaroslav Hajtmar napsal(a):
# Hello ConTeXist.
#
# I tried convert plainTeX source code into ConTeXt  source code so
# that the output PDF gave the same (or approximately the same)
# result. I did it for one of plainTEX developers (Mr. Olšák), which
# compared results of PlainTeX, LaTeX and ConTeXt. However, I
# encountered the following problem.
#
# Is there a way to adjust the spacing before internal itemize
# environment when the external itemize environment is set as PACKED?
#
# Thanx JaroslavHajtmar
#
# Here is my minimal example:
#
#
# 
\setupitemize[1][packed][symbol=n,before={\blank[medium]},after={\blank[medium]}]
# 
\setupitemize[2][packed][symbol=a,stopper=),before={\blank[big]},after={\blank[big]}]
#
# \starttext
#
# This is normal text before itemize list.
#
# \startitemize
# \item First 1 level
# \item Second 1 level
#   \startitemize
#   \item First 2 level (before this line should be big space)
#   \item Second 2 level
#   \item Third  2 level (after this line should be big space)
#   \stopitemize
# \item Third 1 level
# \item Fourth 1 level
# \stopitemize
#
# This is normal text after itemize list.
#
#
# \stoptext
#
# 
___
# If your question is of interest to others as well, please add an entry to the 
Wiki!
#
# maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
# webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
# archive  : http://foundry.supelec.fr/projects/contextrev/
# wiki : http://contextgarden.net
# 
___

  Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Nested itemize

2012-04-07 Thread Procházka Lukáš

... Works nice, thank you!

Best regards,

Lukas


On Fri, 06 Apr 2012 18:13:41 +0200, Wolfgang Schuster 
schuster.wolfg...@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
___

[NTG-context] Nested itemize

2012-04-06 Thread 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)
?

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

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka [mailto:l...@pontex.cz]
Pontex s. r. o.  [mailto:pon...@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
___


Re: [NTG-context] Nested itemize

2012-04-06 Thread Wolfgang Schuster

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
___