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] Clearest way to call a {\command } in Lua?

2016-07-23 Thread Wolfgang Schuster

Lukáš Procházka 
23. Juli 2016 um 15:25
Hello,

what is the clearest way to call a {\command ...} (i.e. a command 
which is to be wrapped in curly braces, like \em, \bf etc.) in Lua?


Let's have:


bla {\em haha} bla


Should be the Lua transcription be:


bla
\ctxlua{context(false, context.delayed.em("haha"))} % <--- The 
clearest ("nicest") way?

bla

Try not to use them because there is \bold{…} etc. or even better 
\style[style=bold]{…}.


\starttext

\startluacode

context.bold("Bold text!")
context.space()
context.style( { style = "em" }, "Emphasized text!")

\stopluacode

\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] Clearest way to call a {\command } in Lua?

2016-07-23 Thread Lukáš Procházka

Hello,

what is the clearest way to call a {\command ...} (i.e. a command which is to 
be wrapped in curly braces, like \em, \bf etc.) in Lua?

Let's have:


bla {\em haha} bla


Should be the Lua transcription be:


bla
\ctxlua{context(false, context.delayed.em("haha"))} % <--- The clearest 
("nicest") way?
bla


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 241 096 751
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
___

[NTG-context] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Bou Salim
I have texlive 2016 on windows OS, I use context mkiv.
with context -- version   I have: current version: 2016-05-17
___
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] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Hans Hagen

On 7/23/2016 9:35 AM, Schmitz Thomas A. wrote:



On 23 Jul 2016, at 09:24, Bou Salim  wrote:

Hi
I have this problem to show colors properly. I have defined color "myred",  but 
after \showcolor command  colors inside metapost can't be displayed.


Your example shows the correct colors here. Which version are you using? mkii 
or mkiv?


we can even say this now:

fill fullcircle scaled 10mm withcolor "myred";

to refer to colors at the context end

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | 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] 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] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Schmitz Thomas A.

> On 23 Jul 2016, at 09:24, Bou Salim  wrote:
> 
> Hi 
> I have this problem to show colors properly. I have defined color "myred",  
> but after \showcolor command  colors inside metapost can't be displayed.

Your example shows the correct colors here. Which version are you using? mkii 
or mkiv?

Thomas
___
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] Colors not showing inside metapost after \showcolor

2016-07-23 Thread Bou Salim
Hi
I have this problem to show colors properly. I have defined color "myred",
 but after \showcolor command  colors inside metapost can't be displayed.

Thanks

\starttext


\definecolor[myred] [r=.8]

 \showcolor


\startuseMPgraphic{test}

  fill fullcircle scaled 10mm withcolor \MPcolor{myred};

\stopuseMPgraphic


\midaligned{\useMPgraphic{test}}



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