Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Fabrice Couvreur
The chapter number does not appear. My editor is emacs and I compile with
Context Full.

2018-07-16 19:27 GMT+02:00 Hans Hagen :

> On 7/16/2018 4:24 PM, Fabrice Couvreur wrote:
>
>> Hello,
>> The idea is to make a chapter header as with the "titlesec" package. My
>> code compiles under texlive context 2018 but does not compile with last
>> beta contest standalone.
>>
>
> it processes on my machine so what fails?
>
> Thank you
>> Fabrice
>>
>> 
>>
>> % macros=mkvi
>>
>> \setuppagenumbering[location=footer]
>>
>> \startusableMPgraphic{NumberHead}
>>   draw outlinetext.f
>>   ("\bf\namedheadnumber{chapter}")
>>   (withcolor "lightgray")
>>   ysized 50pt ;
>> \stopusableMPgraphic
>>
>>
>> \unexpanded\def\processMPheadnumber#1%
>>{\useMPgraphic{NumberHead}}
>>
>> \setuphead
>> [chapter]
>> [command=\HeadTitle,
>>  headstyle=\ss,
>>  numbercommand=\processMPheadnumber]
>>
>>
>> \unexpanded\def\HeadTitle#1#2%
>>{\framed
>>  [frame=off,
>>  bottomframe=on,
>>  width=broad,
>>  align={broad,nothyphenated,left}]
>>  {#1\blank[nowhite]#2}}
>>
>> \starttext
>>
>> \dorecurse{6}{\startchapter
>>[title={Fist chapter}]
>>\input knuth
>> \stopchapter}
>>
>> \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/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
>> 
>> ___
>>
>>
>
> --
>
> -
>   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/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
___

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Hans Hagen

On 7/16/2018 4:24 PM, Fabrice Couvreur wrote:

Hello,
The idea is to make a chapter header as with the "titlesec" package. My 
code compiles under texlive context 2018 but does not compile with last 
beta contest standalone.


it processes on my machine so what fails?


Thank you
Fabrice



% macros=mkvi

\setuppagenumbering[location=footer]

\startusableMPgraphic{NumberHead}
  draw outlinetext.f
  ("\bf\namedheadnumber{chapter}")
  (withcolor "lightgray")
  ysized 50pt ;
\stopusableMPgraphic


\unexpanded\def\processMPheadnumber#1%
   {\useMPgraphic{NumberHead}}

\setuphead
    [chapter]
    [command=\HeadTitle,
     headstyle=\ss,
     numbercommand=\processMPheadnumber]


\unexpanded\def\HeadTitle#1#2%
   {\framed
     [frame=off,
     bottomframe=on,
     width=broad,
     align={broad,nothyphenated,left}]
     {#1\blank[nowhite]#2}}

\starttext

\dorecurse{6}{\startchapter
   [title={Fist chapter}]
   \input knuth
\stopchapter}

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




--

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

[NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Fabrice Couvreur
Hello,
The idea is to make a chapter header as with the "titlesec" package. My
code compiles under texlive context 2018 but does not compile with last
beta contest standalone.
Thank you
Fabrice



% macros=mkvi

\setuppagenumbering[location=footer]

\startusableMPgraphic{NumberHead}
 draw outlinetext.f
 ("\bf\namedheadnumber{chapter}")
 (withcolor "lightgray")
 ysized 50pt ;
\stopusableMPgraphic


\unexpanded\def\processMPheadnumber#1%
  {\useMPgraphic{NumberHead}}

\setuphead
   [chapter]
   [command=\HeadTitle,
headstyle=\ss,
numbercommand=\processMPheadnumber]


\unexpanded\def\HeadTitle#1#2%
  {\framed
[frame=off,
bottomframe=on,
width=broad,
align={broad,nothyphenated,left}]
{#1\blank[nowhite]#2}}

\starttext

\dorecurse{6}{\startchapter
  [title={Fist chapter}]
  \input knuth
\stopchapter}

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

Re: [NTG-context] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
Hi Fabrice,

I don't know whether this is related to the problem you observe, but in your 
setups you have

forgroundstyle=bold

which should be

foregroundstyle=bold


Best regards: Otared K.

> On 16 Jul 2018, at 10:13, Fabrice Couvreur  
> wrote:
> 
> Hi Otared,
> If I change the font using modern, it works but the text remains bold if I 
> use most other fonts, it's really strange !
> Fabrice
> 
> 2018-07-16 9:57 GMT+02:00 Otared Kavian  >:
> Hi Fabrice,
> 
> When typesetting your example here I get the correct behaviour: the text is 
> not in bold face.
> 
> Best regards: OK
> 
>> On 15 Jul 2018, at 23:39, Fabrice Couvreur > > wrote:
>> 
>> Good evening,
>> In the code below, why is the text in bold ?
>> Thank you
>> Fabrice
>> 
>> \setupbodyfont[pagella,11pt]
>> 
>> \defineframed
>>[ACFRAME]
>>[frame=off,
>> offset=0pt,
>> location=low,
>> width=\struttotal,
>> background=color,
>> backgroundcolor=black,
>> foregroundcolor=white,
>> forgroundstyle=bold]
>> 
>> 
>> \defineprocessor[ACPROCESSOR][command=\ACFRAME]
>> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>> 
>> \defineenumeration
>>[ex]
>>[text=,
>> distance=0.3em,
>> width=fit,
>> numberconversionset=ACCONVERSION,
>> alternative=serried]
>> 
>> \starttext
>> 
>> \dorecurse{5}
>>{\startex
>> \input knuth
>> \stopex}
>> 
>> \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://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
> ___

___
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] Strange behavior with font pagella

2018-07-16 Thread Wolfgang Schuster

Hi Fabrice,

the problem is the lack of the TeX Gyre text fonts in the distribution 
as reported by Thomas a few days ago: 
https://mailman.ntg.nl/pipermail/ntg-context/2018/091900.html


Wolfgang

Fabrice Couvreur 
16. Juli 2018 um 10:13
Hi Otared,
If I change the font using modern, it works but the text remains bold 
if I use most other fonts, it's really strange !

Fabrice


___
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] Strange behavior with font pagella

2018-07-16 Thread Fabrice Couvreur
Hi Otared,
If I change the font using modern, it works but the text remains bold if I
use most other fonts, it's really strange !
Fabrice

2018-07-16 9:57 GMT+02:00 Otared Kavian :

> Hi Fabrice,
>
> When typesetting your example here I get the correct behaviour: the text
> is not in bold face.
>
> Best regards: OK
>
> On 15 Jul 2018, at 23:39, Fabrice Couvreur 
> wrote:
>
> Good evening,
> In the code below, why is the text in bold ?
> Thank you
> Fabrice
>
> \setupbodyfont[pagella,11pt]
>
> \defineframed
>[ACFRAME]
>[frame=off,
> offset=0pt,
> location=low,
> width=\struttotal,
> background=color,
> backgroundcolor=black,
> foregroundcolor=white,
> forgroundstyle=bold]
>
>
> \defineprocessor[ACPROCESSOR][command=\ACFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \defineenumeration
>[ex]
>[text=,
> distance=0.3em,
> width=fit,
> numberconversionset=ACCONVERSION,
> alternative=serried]
>
> \starttext
>
> \dorecurse{5}
>{\startex
> \input knuth
> \stopex}
>
> \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://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] Strange behavior with font pagella

2018-07-16 Thread Otared Kavian
Hi Fabrice,

When typesetting your example here I get the correct behaviour: the text is not 
in bold face.

Best regards: OK

> On 15 Jul 2018, at 23:39, Fabrice Couvreur  
> wrote:
> 
> Good evening,
> In the code below, why is the text in bold ?
> Thank you
> Fabrice
> 
> \setupbodyfont[pagella,11pt]
> 
> \defineframed
>[ACFRAME]
>[frame=off,
> offset=0pt,
> location=low,
> width=\struttotal,
> background=color,
> backgroundcolor=black,
> foregroundcolor=white,
> forgroundstyle=bold]
> 
> 
> \defineprocessor[ACPROCESSOR][command=\ACFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
> 
> \defineenumeration
>[ex]
>[text=,
> distance=0.3em,
> width=fit,
> numberconversionset=ACCONVERSION,
> alternative=serried]
> 
> \starttext
> 
> \dorecurse{5}
>{\startex
> \input knuth
> \stopex}
> 
> \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://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] Strange behavior !

2018-07-16 Thread Otared Kavian
Hi Fabrice,

This is because you define MyColorA, MyColorB but you don't define MyColor and 
myColor: but you use these two colors in your MPgraphic.

Best regards: OK


> On 16 Jul 2018, at 00:03, Fabrice Couvreur  
> wrote:
> 
> Good evening,
> In the code below, I get frames filled in black​ ​!
> Thank you
> Fabrice
> 
> \setupbodyfont [palatino,11pt]
> 
> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
> \definecolor[MyColorA][.75(MyColorB,white)]  
> 
> \defineframedtext
>[MyText]
>[frame=off,
> background=MyFrame,
> width=\textwidth,
> location=right]
> 
> \defineoverlay
>[MyFrame]
>[\useMPgraphic{MyFrame}]
> 
> \definelabel
>[Définition]
>[headstyle=\bf\smallcaps]
> 
> 
> \startuseMPgraphic{MyFrame}
>  picture p ;
>  p := textext.rt(\MPstring{MyFrame}) ;
>  p := p shifted (0,OverlayHeight-ypart center p) ;
>  fill OverlayBox leftenlarged .1TextWidth withcolor \MPcolor{MyColor} ;
>  fill boundingbox p withcolor \MPcolor{myColor} ;
>  draw p withcolor white ;
>  setbounds currentpicture to OverlayBox ;
> \stopuseMPgraphic
> 
> 
> \starttext
> 
> \startMyText
>  \input knuth
> \stopMyText
> 
> \startMyText
>  \input knuth
> \stopMyText
> 
> \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://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
___