Re: [NTG-context] question about \setupitemgroup

2016-12-08 Thread Aditya Mahajan

On Sun, 27 Nov 2016, Pablo Rodriguez wrote:


I have the following sample:

   \setupwhitespace[5em]
   \startsetups[smallwspa]
   \setupwhitespace[small]
   \setupblank[small]
   \stopsetups
   \setupitemize[each][indenting=no, setups=smallwspa]



The setupitemize command does not accept the setups key.


   \starttext
   \input knuth

   \startitemize
   \dorecurse{5}{\item this is my item\par
   second paragraph\par
   third paragraph
   }
   \stopitemize
   \stoptext

I’m trying to get a \blank[small] separation for paragraphs inside items
and a \blank[medium] separation between items.

I’m afraid that neither the after, inbetween and setups keys are working?

How could I get these different separations for items and for paragraphs
inside them?

Many thanks for your help,


One workaround is to abuse the option key.

\setupwhitespace[5em]
\startsetups[smallwhitespace]
\setupwhitespace[small]
\setupblank[small]
\stopsetups
\unprotect
\setvalue{\??itemgroupkeyword SmallWhiteSpace}{\setups{smallwhitespace}}
\protect

\setupitemize[option=SmallWhiteSpace, indenting=no, inbetween={\blank[1cm]}]

\starttext
\input knuth

\startitemize
\dorecurse{5}{\item this is my item\par
second paragraph\par
third paragraph
}
\stopitemize
\stoptext

@Hans: Could you add a setups key to \startitemgroup? One could abuse the 
before key, but that is not always executed.


Aditya___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

[NTG-context] question about \setupitemgroup

2016-11-27 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\setupwhitespace[5em]
\startsetups[smallwspa]
\setupwhitespace[small]
\setupblank[small]
\stopsetups
\setupitemize[each][indenting=no, setups=smallwspa]
\starttext
\input knuth

\startitemize
\dorecurse{5}{\item this is my item\par
second paragraph\par
third paragraph
}
\stopitemize
\stoptext

I’m trying to get a \blank[small] separation for paragraphs inside items
and a \blank[medium] separation between items.

I’m afraid that neither the after, inbetween and setups keys are working?

How could I get these different separations for items and for paragraphs
inside them?

Many thanks for your help,

Pablo
-- 
http://www.ousia.tk
___
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Question about \setupitemgroup

2016-07-27 Thread Fabrice Couvreur
Hi Wolfgang,
I'm confused, it does not work and I can not find the solution
Thanks
fabrice

your output :

1.a.
1.b.
1.c.
2.
3.
4.

my output :

1.a
b.
c.
2.
3.
4.

\setupitemgroup
  [itemize]
  [color=darkred,
   distance=\spaceamount,
   option={packed,fit,intext}]

\starttext

\startitemize[n,repeat]

  \noitem \startitemize[a]

   \item
   \item
   \item

  \stopitemize
  \item
  \item
  \item

\stopitemize

\stoptext


Context version ConTeXt  ver: 2016.07.23 13:35 MKIV beta  fmt: 2016.7.24
int: english/english

2016-07-24 12:28 GMT+02:00 Fabrice Couvreur :

> Hi Wolgang,
> Thank you for your reply only is not what I would like.
> Your output:
>
> 1.
> 2.a.
> 2.b
>
> My output:
>
> 1.
> 2.a.
> b.
>
> thank you,
> Fabrice
>
> 2016-07-23 18:41 GMT+02:00 Wolfgang Schuster 
> :
>
>> Fabrice Couvreur 
>> 23. Juli 2016 um 10:28
>> Hi Wolfgang,
>> I thought the keyword to correct the problem was but I repeat this otiens
>>
>> 1.
>> 2.a.
>> 2.b
>>
>> instead of
>>
>> 1.
>> 2.a.
>> b.
>>
>> You need todays beta to get the correct output for the following example
>> (the \noitem hasn’t thw right defintion in older versions):
>>
>> \setupitemgroup
>>   [itemize]
>>   [color=darkred,
>>distance=\spaceamount,
>>option={packed,fit,intext}]
>>
>> \starttext
>>
>> \startitemize[n,repeat]
>>
>> \item \input tufte
>>
>> \noitem \startitemize[a]
>> \item \input tufte
>> \item \input tufte
>> \stopitemize
>>
>> \stopitemize
>>
>> \stoptext
>>
>> 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
___

Re: [NTG-context] Question about \setupitemgroup

2016-07-24 Thread Fabrice Couvreur
Hi Wolgang,
Thank you for your reply only is not what I would like.
Your output:

1.
2.a.
2.b

My output:

1.
2.a.
b.

thank you,
Fabrice

2016-07-23 18:41 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 23. Juli 2016 um 10:28
> Hi Wolfgang,
> I thought the keyword to correct the problem was but I repeat this otiens
>
> 1.
> 2.a.
> 2.b
>
> instead of
>
> 1.
> 2.a.
> b.
>
> You need todays beta to get the correct output for the following example
> (the \noitem hasn’t thw right defintion in older versions):
>
> \setupitemgroup
>   [itemize]
>   [color=darkred,
>distance=\spaceamount,
>option={packed,fit,intext}]
>
> \starttext
>
> \startitemize[n,repeat]
>
> \item \input tufte
>
> \noitem \startitemize[a]
> \item \input tufte
> \item \input tufte
> \stopitemize
>
> \stopitemize
>
> \stoptext
>
> 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
___

Re: [NTG-context] Question about \setupitemgroup

2016-07-23 Thread Wolfgang Schuster

Fabrice Couvreur 
23. Juli 2016 um 10:28
Hi Wolfgang,
I thought the keyword to correct the problem was but I repeat this otiens

1.
2.a.
2.b

instead of

1.
2.a.
b.
You need todays beta to get the correct output for the following example 
(the \noitem hasn’t thw right defintion in older versions):


\setupitemgroup
  [itemize]
  [color=darkred,
   distance=\spaceamount,
   option={packed,fit,intext}]

\starttext

\startitemize[n,repeat]

\item \input tufte

\noitem \startitemize[a]
\item \input tufte
\item \input tufte
\stopitemize

\stopitemize

\stoptext

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] Question about \setupitemgroup

2016-07-23 Thread Fabrice Couvreur
Hi Wolfgang,
I thought the keyword to correct the problem was but I repeat this otiens

1.
2.a.
2.b

instead of

1.
2.a.
b.

Fabrice

2016-07-22 16:12 GMT+02:00 Fabrice Couvreur :

> I just noticed that there is a problem with the level 2. a. The letter a
> is on the number 2
>
> \startitemize[n]
>
> \item \input tufte
>
> \item \startitemize[a]
> \item \input tufte
> \item \input tufte
> \stopitemize
>
> \stopitemize
>
> Fabrice
>
> 2016-07-22 13:06 GMT+02:00 Fabrice Couvreur :
>
>> Hi Wolfgang,
>> Thank you for your time and your solutions
>> Fabrice
>>
>>
>> 2016-07-22 12:47 GMT+02:00 Wolfgang Schuster > >:
>>
>>> Fabrice Couvreur 
>>> 22. Juli 2016 um 12:32
>>> Hi,
>>> I can not find any keyword must be used to get what I want.
>>> Thanks,
>>> Fabrice
>>>
>>> \setupbodyfont[pagella,11pt]
>>>
>>> \setupitemgroup
>>>   [itemize]
>>>   [each]
>>>   [color=darkred]
>>>   [packed]
>>>
>>> \starttext
>>>
>>> \startitemize[n]
>>>
>>> \item \input tufte
>>>
>>> \item \startitemize[a]
>>>
>>> \item \input tufte
>>>
>>> \stopitemize
>>>
>>> \stopitemize
>>>
>>> {\tfc What I want to do :}
>>>
>>> \blank
>>>
>>> {\darkred 1.} \input tufte
>>>
>>> {\darkred a.} \input tufte
>>>
>>> \stoptext
>>>
>>> \setupitemgroup
>>>   [itemize]
>>>   [color=darkred,
>>>distance=\spaceamount,
>>>option={packed,fit,intext}]
>>>
>>> \starttext
>>>
>>> \startitemize[n]
>>>
>>> \item \input tufte
>>>
>>> \startitemize[a]
>>> \item \input tufte
>>> \stopitemize
>>>
>>> \stopitemize
>>>
>>> \stoptext
>>>
>>> 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
___

Re: [NTG-context] Question about \setupitemgroup

2016-07-22 Thread Fabrice Couvreur
I just noticed that there is a problem with the level 2. a. The letter a is on
the number 2

\startitemize[n]

\item \input tufte

\item \startitemize[a]
\item \input tufte
\item \input tufte
\stopitemize

\stopitemize

Fabrice

2016-07-22 13:06 GMT+02:00 Fabrice Couvreur :

> Hi Wolfgang,
> Thank you for your time and your solutions
> Fabrice
>
>
> 2016-07-22 12:47 GMT+02:00 Wolfgang Schuster 
> :
>
>> Fabrice Couvreur 
>> 22. Juli 2016 um 12:32
>> Hi,
>> I can not find any keyword must be used to get what I want.
>> Thanks,
>> Fabrice
>>
>> \setupbodyfont[pagella,11pt]
>>
>> \setupitemgroup
>>   [itemize]
>>   [each]
>>   [color=darkred]
>>   [packed]
>>
>> \starttext
>>
>> \startitemize[n]
>>
>> \item \input tufte
>>
>> \item \startitemize[a]
>>
>> \item \input tufte
>>
>> \stopitemize
>>
>> \stopitemize
>>
>> {\tfc What I want to do :}
>>
>> \blank
>>
>> {\darkred 1.} \input tufte
>>
>> {\darkred a.} \input tufte
>>
>> \stoptext
>>
>> \setupitemgroup
>>   [itemize]
>>   [color=darkred,
>>distance=\spaceamount,
>>option={packed,fit,intext}]
>>
>> \starttext
>>
>> \startitemize[n]
>>
>> \item \input tufte
>>
>> \startitemize[a]
>> \item \input tufte
>> \stopitemize
>>
>> \stopitemize
>>
>> \stoptext
>>
>> 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
___

Re: [NTG-context] Question about \setupitemgroup

2016-07-22 Thread Fabrice Couvreur
Hi Wolfgang,
Thank you for your time and your solutions
Fabrice


2016-07-22 12:47 GMT+02:00 Wolfgang Schuster :

> Fabrice Couvreur 
> 22. Juli 2016 um 12:32
> Hi,
> I can not find any keyword must be used to get what I want.
> Thanks,
> Fabrice
>
> \setupbodyfont[pagella,11pt]
>
> \setupitemgroup
>   [itemize]
>   [each]
>   [color=darkred]
>   [packed]
>
> \starttext
>
> \startitemize[n]
>
> \item \input tufte
>
> \item \startitemize[a]
>
> \item \input tufte
>
> \stopitemize
>
> \stopitemize
>
> {\tfc What I want to do :}
>
> \blank
>
> {\darkred 1.} \input tufte
>
> {\darkred a.} \input tufte
>
> \stoptext
>
> \setupitemgroup
>   [itemize]
>   [color=darkred,
>distance=\spaceamount,
>option={packed,fit,intext}]
>
> \starttext
>
> \startitemize[n]
>
> \item \input tufte
>
> \startitemize[a]
> \item \input tufte
> \stopitemize
>
> \stopitemize
>
> \stoptext
>
> 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
___

Re: [NTG-context] Question about \setupitemgroup

2016-07-22 Thread Wolfgang Schuster

Fabrice Couvreur 
22. Juli 2016 um 12:32
Hi,
I can not find any keyword must be used to get what I want.
Thanks,
Fabrice

\setupbodyfont[pagella,11pt]

\setupitemgroup
  [itemize]
  [each]
  [color=darkred]
  [packed]

\starttext

\startitemize[n]

\item \input tufte

\item \startitemize[a]

\item \input tufte

\stopitemize

\stopitemize

{\tfc What I want to do :}

\blank

{\darkred 1.} \input tufte

{\darkred a.} \input tufte

\stoptext

\setupitemgroup
  [itemize]
  [color=darkred,
   distance=\spaceamount,
   option={packed,fit,intext}]

\starttext

\startitemize[n]

\item \input tufte

\startitemize[a]
\item \input tufte
\stopitemize

\stopitemize

\stoptext

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
___

[NTG-context] Question about \setupitemgroup

2016-07-22 Thread Fabrice Couvreur
Hi,
I can not find any keyword must be used to get what I want.
Thanks,
Fabrice

\setupbodyfont[pagella,11pt]

\setupitemgroup
  [itemize]
  [each]
  [color=darkred]
  [packed]

\starttext

\startitemize[n]

\item \input tufte

\item \startitemize[a]

\item \input tufte

\stopitemize

\stopitemize

{\tfc What I want to do :}

\blank

{\darkred 1.} \input tufte

{\darkred a.} \input tufte

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