Re: [NTG-context] Problem with an enumeration

2018-08-01 Thread Fabrice Couvreur
Hi Wolfgang,
Thank you very much !
Fabrice

2018-08-01 21:21 GMT+02:00 Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com>:

> Hi Fabrice,
>
> I found the following example in my mail archive.
>
> %%
> \define\ItemCommand
>   {\hskip\zeropoint\relax\autoinsertnextspace}
>
> \setupitemgroup
>   [itemize]
>   [color=darkred,
>distance=0pt]
>
> \setupitemgroup
>   [itemize:1]
>   [option={n,packed,fit,intext},
>command=\ItemCommand]
>
> \setupitemgroup
>   [itemize:2]
>   [lefttext=,
>righttext=,
>option={a,text}]
>
> \starttext
>
> \startitemize
>
> \item We thrive in \unknown
>
> \item \startitemize
> \item \input tufte\par
> \item \input tufte
> \stopitemize
>
> \stopitemize
>
> \stoptext
> %%
>
> PS. If you want an answer from me you should add me to cc because I have
> problems getting mails from the list.
>
> Wolfgang
>
>
> Fabrice Couvreur schrieb am 31.07.18 um 23:58:
>
> Hi Pablo,
> That's not what I'm looking for but rather this:
>
> *1.a.* blablablabla
> blablablabla
> *b.* blablablabla
> blablablabla
> *c.* blablablabla
> blablablabla
>
> Which explains the use of the key intext
> Fabrice
>
> 2018-07-31 13:31 GMT+02:00 Pablo Rodriguez :
>
>> On 07/31/2018 12:18 PM, Fabrice Couvreur wrote:
>> > Hello,
>> > Wolfgang helped me to get this:
>> >
>> > 1.a.
>> > b.
>> > c.
>> > 2.a
>> > b.
>> > c.
>> >
>> > I have unfortunately lost the code he had proposed to me. I get this:
>> >
>> > 1.a.
>> > 1b
>> > 1 C
>> > 2.a
>> > 2.b
>> > 2.c
>>
>> Hi Fabrice,
>>
>> I don’t get your output. I had to remove the "intext" option and I guess
>> I got what you intend:
>>
>> \setupitemgroup
>>[itemize][1]
>>[color=darkred,
>> distance=\spaceamount,
>> option={packed,fit,n}]
>>
>> \setupitemgroup
>>[itemize][2]
>>[color=darkred,
>> distance=\spaceamount,
>> option={packed,fit,a}]
>>
>> \starttext
>> \startitemize
>> \item \startitemize
>> \item \input zapf
>>
>> \item \input knuth
>>
>> \item \input montgomery
>> \stopitemize
>> \item \startitemize
>> \item \input zapf
>>
>> \item \input knuth
>>
>> \item \input montgomery
>> \stopitemize
>> \stopitemize
>> \stoptext
>>
>> I hope it helps,
>>
>> 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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with an enumeration

2018-08-01 Thread Wolfgang Schuster

Hi Fabrice,

I found the following example in my mail archive.

%%
\define\ItemCommand
  {\hskip\zeropoint\relax\autoinsertnextspace}

\setupitemgroup
  [itemize]
  [color=darkred,
   distance=0pt]

\setupitemgroup
  [itemize:1]
  [option={n,packed,fit,intext},
   command=\ItemCommand]

\setupitemgroup
  [itemize:2]
  [lefttext=,
   righttext=,
   option={a,text}]

\starttext

\startitemize

\item We thrive in \unknown

\item \startitemize
\item \input tufte\par
\item \input tufte
\stopitemize

\stopitemize

\stoptext
%%

PS. If you want an answer from me you should add me to cc because I have 
problems getting mails from the list.


Wolfgang


Fabrice Couvreur schrieb am 31.07.18 um 23:58:

Hi Pablo,
That's not what I'm looking for but rather this:

*1.a.* blablablabla
blablablabla
*b.* blablablabla
blablablabla
*c.* blablablabla
blablablabla

Which explains the use of the key intext
Fabrice

2018-07-31 13:31 GMT+02:00 Pablo Rodriguez >:


On 07/31/2018 12:18 PM, Fabrice Couvreur wrote:
> Hello,
> Wolfgang helped me to get this:
> 
> 1.a.

> b.
> c.
> 2.a
> b.
> c.
> 
> I have unfortunately lost the code he had proposed to me. I get this:
> 
> 1.a.

> 1b
> 1 C
> 2.a
> 2.b
> 2.c

Hi Fabrice,

I don’t get your output. I had to remove the "intext" option and I
guess
I got what you intend:

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

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

\starttext
\startitemize
\item \startitemize
\item \input zapf

\item \input knuth

\item \input montgomery
\stopitemize
\item \startitemize
\item \input zapf

\item \input knuth

\item \input montgomery
\stopitemize
\stopitemize
\stoptext

I hope it helps,

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

___


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


___
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] Problem with an enumeration

2018-08-01 Thread Pablo Rodriguez
On 07/31/2018 11:58 PM, Fabrice Couvreur wrote:
> Hi Pablo,
> That's not what I'm looking for but rather this:
> 
> *1.a.* blablablabla
> blablablabla
> *b.* blablablabla
> blablablabla
> *c.* blablablabla
> blablablabla
> 
> Which explains the use of the key intext

Hi Fabrice,

this is the best I get:

\setupitemgroup
   [itemize][1]
   [color=darkred,
option={packed,fit,paragraph,n}]

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

Otherwise, deploying the option "intext" seems to handle the width of
first itemization level as zero.

Just in case it helps,

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] Problem with an enumeration

2018-07-31 Thread Fabrice Couvreur
Hi Pablo,
That's not what I'm looking for but rather this:

*1.a.* blablablabla
blablablabla
*b.* blablablabla
blablablabla
*c.* blablablabla
blablablabla

Which explains the use of the key intext
Fabrice

2018-07-31 13:31 GMT+02:00 Pablo Rodriguez :

> On 07/31/2018 12:18 PM, Fabrice Couvreur wrote:
> > Hello,
> > Wolfgang helped me to get this:
> >
> > 1.a.
> > b.
> > c.
> > 2.a
> > b.
> > c.
> >
> > I have unfortunately lost the code he had proposed to me. I get this:
> >
> > 1.a.
> > 1b
> > 1 C
> > 2.a
> > 2.b
> > 2.c
>
> Hi Fabrice,
>
> I don’t get your output. I had to remove the "intext" option and I guess
> I got what you intend:
>
> \setupitemgroup
>[itemize][1]
>[color=darkred,
> distance=\spaceamount,
> option={packed,fit,n}]
>
> \setupitemgroup
>[itemize][2]
>[color=darkred,
> distance=\spaceamount,
> option={packed,fit,a}]
>
> \starttext
> \startitemize
> \item \startitemize
> \item \input zapf
>
> \item \input knuth
>
> \item \input montgomery
> \stopitemize
> \item \startitemize
> \item \input zapf
>
> \item \input knuth
>
> \item \input montgomery
> \stopitemize
> \stopitemize
> \stoptext
>
> I hope it helps,
>
> 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
> 
> ___
___
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] Problem with an enumeration

2018-07-31 Thread Pablo Rodriguez
On 07/31/2018 12:18 PM, Fabrice Couvreur wrote:
> Hello,
> Wolfgang helped me to get this:
> 
> 1.a.
> b.
> c.
> 2.a
> b.
> c.
> 
> I have unfortunately lost the code he had proposed to me. I get this:
> 
> 1.a.
> 1b
> 1 C
> 2.a
> 2.b
> 2.c

Hi Fabrice,

I don’t get your output. I had to remove the "intext" option and I guess
I got what you intend:

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

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

\starttext
\startitemize
\item \startitemize
\item \input zapf

\item \input knuth

\item \input montgomery
\stopitemize
\item \startitemize
\item \input zapf

\item \input knuth

\item \input montgomery
\stopitemize
\stopitemize
\stoptext

I hope it helps,

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
___

[NTG-context] Problem with an enumeration

2018-07-31 Thread Fabrice Couvreur
Hello,
Wolfgang helped me to get this:

1.a.
b.
c.
2.a
b.
c.

I have unfortunately lost the code he had proposed to me. I get this:

1.a.
1b
1 C
2.a
2.b
2.c

Thanks
Fabrice


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

\setupitemgroup
   [itemize][2]
   [color=darkred,
distance=\spaceamount,
option={packed,fit,intext,a}]
___
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] Problem With an Enumeration After a Forced Float

2010-01-29 Thread Tad Ashlock
Hi All,

Here's a corner case for you:  place a figure with the 'force' option,
followed by an enumeration with a background.  Like this (also
attached as tadtest1.tex):


\defineenumeration[enum][before={\startbackground},after={\stopbackground}]

\starttext

\dorecurse{3}{\input knuth\par}

\placefigure[force]{Moo}{\externalfigure[cow.pdf][width=.7\textwidth]}

\startenum
The contents of a test enumeration.
\stopenum

\stoptext


The enumeration will start at the top of the next page (after the
figure) even though there's plenty of room below the figure on the
same page.

If you take the background away from the enumeration (delete the
'before' and 'after' options), OR take the 'force' option off the
\placefigure command, then the problem goes away.

I suspect that this isn't the expected behavior. :-)

Thanks,
Tad


tadtest1.tex
Description: TeX 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
___