Re: [NTG-context] Problem with the installation of a module

2015-08-14 Thread Aditya Mahajan

On Fri, 14 Aug 2015, Andrea De Michele wrote:


I tried to install the PocketDiary module but I had some problem.
I follow the instruction at:

http://wiki.contextgarden.net/Modules

so first I copy the files in my texmf-local directory and after that I run:


You are storing the files according the Tex Directory Structure, right?


context --generate

but context didn't find the new module.

I use linux and I have installed texlive 2015 in my home directory, so my 
texmf-local directory is /home/admich/texlive/texmf-local

In the output of  context --generate I noticed the following lines:

...
resolvers   | resolving | locating list of 
'home/admich/texlive/texmf-local' (cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument 'home/admich/texlive/texmf-local'
resolvers   | files | file locator 'home/admich/texlive/texmf-local' not 
found
...

This seems not correct because is missing the initial / . For example the 
following lines are:

resolvers   | resolving | locating list of 'selfautoparent:texmf-dist' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument 'selfautoparent:texmf-dist'
resolvers   | files | file locator 'selfautoparent:texmf-dist' found as 
'/home/admich/texlive/2015/texmf-dist'
resolvers   | resolving |
...

with the right initial /

kpathsea find the right $TEXMFLOCAL:

~$ kpsewhich -var-value TEXMFLOCAL
/home/admich/texlive/texmf-local


context (mkiv) does not use kpse (texmf.cnf) but uses the values stored it 
texmfcnf.lua. To check the value of TEXMFLOCAL use


mtxrun --expand-var TEXMFLOCAL

You can also try:

context --trackers=resolvers.\* filename

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Problem with the installation of a module

2015-08-14 Thread Andrea De Michele
I tried to install the PocketDiary module but I had some problem.
I follow the instruction at:

http://wiki.contextgarden.net/Modules

so first I copy the files in my texmf-local directory and after that I run:

 context --generate

but context didn't find the new module.

I use linux and I have installed texlive 2015 in my home directory, so my 
texmf-local directory is /home/admich/texlive/texmf-local

In the output of  context --generate I noticed the following lines:

...
resolvers   | resolving | locating list of 
'home/admich/texlive/texmf-local' (cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument 'home/admich/texlive/texmf-local'
resolvers   | files | file locator 'home/admich/texlive/texmf-local' not 
found
...

This seems not correct because is missing the initial / . For example the 
following lines are:

resolvers   | resolving | locating list of 'selfautoparent:texmf-dist' 
(cached)
resolvers   | methods | resolving, method 'locators', how 'uri', handler 
'file', argument 'selfautoparent:texmf-dist'
resolvers   | files | file locator 'selfautoparent:texmf-dist' found as 
'/home/admich/texlive/2015/texmf-dist'
resolvers   | resolving |
...

with the right initial /

kpathsea find the right $TEXMFLOCAL:

~$ kpsewhich -var-value TEXMFLOCAL
/home/admich/texlive/texmf-local




-- 
Andrea De Michele

___
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] Cover page (Metafun)

2015-08-14 Thread Fabrice Couvreur
Hi Hans,
To progress in the use of Metafun, I try to do the same cover page as
your document
'Metafun ". Without looking at the code (but using the definitions of your
colors), I managed to get the mosaic.
I would write the word "MATHÉMATIQUES" as you did with the word "CONTEXTEN".
Thank you,
Fabrice


\setuppagenumbering[location=]

\setupcolors
  [state=start]

\definecolor[maincolor][g=.6]
\definecolor[pagecolor][s=.6]
\definecolor[darkcolor][s=.2]
\definecolor[textcolor][r=.6]


\startMPinclusions
  color maincolor ; maincolor := \MPcolor{maincolor} ;
  color pagecolor ; pagecolor := \MPcolor{pagecolor} ;
  color darkcolor ; darkcolor := \MPcolor{darkcolor} ;
  color textcolor ; textcolor := \MPcolor{textcolor} ;
\stopMPinclusions

\startuseMPgraphic{CoverPage}
  path p ; p := OverlayBox xyscaled (1/2,1/7) ;
  fill OverlayBox withcolor pagecolor ;
  path q ; q := p enlarged -12pt randomized 12pt ;
  pair a ;
  for j=0 upto 6 :
 for i=0 upto 1 :
a := (i*xpart urcorner p,j*ypart urcorner p) ;
q := p enlarged -12pt randomized 12pt shifted a ;
circular_shade
  (q, ceiling(uniformdeviate 4), maincolor, .5maincolor) ;
   draw q withpen pencircle scaled 8pt withcolor darkcolor ;
  endfor ;
endfor ;
\stopuseMPgraphic

\defineoverlay[CoverPage][\useMPgraphic{CoverPage}]

\setupbackgrounds
  [rightpage]
  [background=CoverPage]

\starttext

\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] Text around a figure in a framedtext

2015-08-14 Thread Fabrice Couvreur
Hi Rik,
I actually read that Wolfgang had written, but there is some confusion for
me. Indeed, my environment uses a frame and Wolfgang said to be used \
starthanging ... \stophanging rather than \placefigure. But my text contains
a blank line which is to create a new paragraph and so I should use \
placefigure !!!

2015-08-14 3:38 GMT+02:00 Rik Kabel :

> On 2015-08-13 11:19, Fabrice Couvreur wrote:
>
> Hi,
> Sorry to revive this discussion (which I initiated), but the text in the
> following code does not wrapped around the figure.
> Why ?
> Fabrice
>
>
> \setupcolors
>   [state=start]
>
> \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,
>height=fit,
>location=left,
>style=italic]
>
> \defineoverlay
>   [MyFrame]
>   [\useMPgraphic{MyFrame}]
>
> \definelabel
>   [Définition]
>   [headstyle=\bf\smallcaps]
>
> \startuseMPgraphic{MyFrame}
> path b ;
> picture p ;
> p := textext.rt("\white\Définition") ;
> p := p shifted (2BodyFontSize,OverlayHeight-ypart center
> p+.25ExHeight) ;
> b := boundingbox p leftenlarged .5EmWidth rightenlarged .5EmWidth ;
> fill OverlayBox withcolor \MPcolor{MyColorA} ;
> fill b withcolor \MPcolor{MyColorB} ;
> draw p ;
> \stopuseMPgraphic
>
> \starttext
>
> \startMyText
>
> \starthanging[location=right]
> {\startMPcode
>   path p ;
>   p := fullcircle xscaled 4cm yscaled 2cm ;
>   fill p withcolor  cmyk(0,0.62,1,0) ;
>   path q ; q := fullcircle scaled 1cm shifted (1cm, ypart center
> p) ;
>   fill q withcolor blue ;
>   picture r ;
>   r := textext("\white E")shifted (-0.75cm,ypart center p) ;
>   picture s ;
>   s := textext("\white A")shifted (1cm, ypart center p) ;
>   draw r ;
>   draw s ;
>   draw p ;
>   draw q ;
>  \stopMPcode}
> Soit A une partie d'un ensemble E.
>
> Si $n_E$ et $n_A$ sont respectivement les nombres d'éléments de E et de A,
> la {\bi proportion} des éléments de A dans E est le quotient
> $p=\frac{n_A}{n_E}$.
> \stophanging
>
> \stopMyText
>
>
> Wolfgang wrote on the list a few days ago (
> 
> http://www.mail-archive.com/ntg-context%40ntg.nl/msg79347.html):
>
> The \starthangaround environment reserves space for the image etc. only for
> the first paragraph
>
> while \placefigure includes more paragraphs if necessary.
>
> --
> Rik
>
>
> ___
> 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
___