Re: [NTG-context] Page printed upside down

2017-10-18 Thread Fabrice Couvreur
Hi,
With this

\setuppapersize[A4,landscape]
\setupinteractionscreen[option=landscape]

 I get a double-sided page that I can read without having to return the
page on the back. But I wish I could fold the sheet to have a booklet.

The output is:

1 | 2

3 | 4

it would be necessary to have:

3 | 4

1 | 2

Difficult to explain without showing. Is it possible ?

Thank you
Fabrice




2017-10-18 9:05 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi Pablo,
> I printed the file at my high school yesterday and the output is not the
> one expected. I get a document in portrait format and the mathematical
> formulas overflow in the other column.
> Fabrice
>
> 2017-10-16 20:53 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
>
>> Hi Pablo,
>> I'm not sure I understand but I'll test tomorrow in high school.
>> With the file below, using what you offer, will the dimensions of my page
>> be respected ?
>>
>> \setuplayout
>>[header=\zeropoint,
>> headerdistance=\lineheight,
>> backspace=2cm,
>> width=middle,
>> topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
>> footer=\lineheight,
>> height=middle]
>>
>> \setupinteractionscreen[option=landscape]
>>
>> \setuppagenumbering[alternative=,location=]
>>
>> \definemixedcolumns
>>   [MyColumns]
>>   [
>> n=2,
>> separator=rule,
>> rulecolor=,
>> balance=yes,
>>   ]
>>
>> \setupalign[verytolerant,stretch,hanging]
>>
>> \starttext
>> \startMyColumns
>> \startformula
>> \startmathalignment[n=2,align={left,left}]
>> \NC P_1 + P_2 + \dots + P_{12} \NC = 400 + 400\times 1,05 + 400\times
>> 1,05^2 + \dots + 400 \times 1,05^{11}\NR
>> \NC  \NC = 400\times (1 + 1,05 + 1,05^2 + \dots + 1,05^{11})\NR
>> \NC  \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR
>> \stopmathalignment
>>   \stopformula
>> \dorecurse{6}{\input knuth}
>> \stopMyColumns
>> \stoptext
>>
>>
>> 2017-10-16 19:35 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:
>>
>>> On 10/16/2017 05:59 PM, Fabrice Couvreur wrote:
>>> > Hello,
>>> > I have printed this document and the page on the back is printed
>>> upside down
>>> > in fact you have to turn the page to read it.
>>> > How to correct this ?
>>> > Thank you
>>> > Fabrice
>>> >
>>> > \setuppapersize[A4,landscape]
>>>
>>> Hi Fabrice,
>>>
>>> [the command above is the only relevant one, lanscape page orientation.]
>>>
>>> If you use a recent version of Acrobat, you may use:
>>>
>>>\setupinteractionscreen[option=landscape]
>>>
>>> This will automatically print it in the right way. In that case, you
>>> don’t have to select anything in Acrobat, the program will read it from
>>> the PDF document itself.
>>>
>>> If you use another viewer, select flip long edge of the paper.
>>>
>>> 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/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] Page printed upside down

2017-10-18 Thread Fabrice Couvreur
Hi Pablo,
I printed the file at my high school yesterday and the output is not the
one expected. I get a document in portrait format and the mathematical
formulas overflow in the other column.
Fabrice

2017-10-16 20:53 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi Pablo,
> I'm not sure I understand but I'll test tomorrow in high school.
> With the file below, using what you offer, will the dimensions of my page
> be respected ?
>
> \setuplayout
>[header=\zeropoint,
> headerdistance=\lineheight,
> backspace=2cm,
> width=middle,
> topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
> footer=\lineheight,
> height=middle]
>
> \setupinteractionscreen[option=landscape]
>
> \setuppagenumbering[alternative=,location=]
>
> \definemixedcolumns
>   [MyColumns]
>   [
> n=2,
> separator=rule,
> rulecolor=,
> balance=yes,
>   ]
>
> \setupalign[verytolerant,stretch,hanging]
>
> \starttext
> \startMyColumns
> \startformula
> \startmathalignment[n=2,align={left,left}]
> \NC P_1 + P_2 + \dots + P_{12} \NC = 400 + 400\times 1,05 + 400\times
> 1,05^2 + \dots + 400 \times 1,05^{11}\NR
> \NC  \NC = 400\times (1 + 1,05 + 1,05^2 + \dots + 1,05^{11})\NR
> \NC  \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR
> \stopmathalignment
>   \stopformula
> \dorecurse{6}{\input knuth}
> \stopMyColumns
> \stoptext
>
>
> 2017-10-16 19:35 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:
>
>> On 10/16/2017 05:59 PM, Fabrice Couvreur wrote:
>> > Hello,
>> > I have printed this document and the page on the back is printed upside
>> down
>> > in fact you have to turn the page to read it.
>> > How to correct this ?
>> > Thank you
>> > Fabrice
>> >
>> > \setuppapersize[A4,landscape]
>>
>> Hi Fabrice,
>>
>> [the command above is the only relevant one, lanscape page orientation.]
>>
>> If you use a recent version of Acrobat, you may use:
>>
>>\setupinteractionscreen[option=landscape]
>>
>> This will automatically print it in the right way. In that case, you
>> don’t have to select anything in Acrobat, the program will read it from
>> the PDF document itself.
>>
>> If you use another viewer, select flip long edge of the paper.
>>
>> 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/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] Page printed upside down

2017-10-16 Thread Fabrice Couvreur
Hi Pablo,
I'm not sure I understand but I'll test tomorrow in high school.
With the file below, using what you offer, will the dimensions of my page
be respected ?

\setuplayout
   [header=\zeropoint,
headerdistance=\lineheight,
backspace=2cm,
width=middle,
topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
footer=\lineheight,
height=middle]

\setupinteractionscreen[option=landscape]

\setuppagenumbering[alternative=,location=]

\definemixedcolumns
  [MyColumns]
  [
n=2,
separator=rule,
rulecolor=,
balance=yes,
  ]

\setupalign[verytolerant,stretch,hanging]

\starttext
\startMyColumns
\startformula
\startmathalignment[n=2,align={left,left}]
\NC P_1 + P_2 + \dots + P_{12} \NC = 400 + 400\times 1,05 + 400\times
1,05^2 + \dots + 400 \times 1,05^{11}\NR
\NC  \NC = 400\times (1 + 1,05 + 1,05^2 + \dots + 1,05^{11})\NR
\NC  \NC = 400\times \frac{1-1,05^{12}}{1-1,05}\approx 6\,367.\NR
\stopmathalignment
  \stopformula
\dorecurse{6}{\input knuth}
\stopMyColumns
\stoptext


2017-10-16 19:35 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 10/16/2017 05:59 PM, Fabrice Couvreur wrote:
> > Hello,
> > I have printed this document and the page on the back is printed upside
> down
> > in fact you have to turn the page to read it.
> > How to correct this ?
> > Thank you
> > Fabrice
> >
> > \setuppapersize[A4,landscape]
>
> Hi Fabrice,
>
> [the command above is the only relevant one, lanscape page orientation.]
>
> If you use a recent version of Acrobat, you may use:
>
>\setupinteractionscreen[option=landscape]
>
> This will automatically print it in the right way. In that case, you
> don’t have to select anything in Acrobat, the program will read it from
> the PDF document itself.
>
> If you use another viewer, select flip long edge of the paper.
>
> 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
> 
> ___
___
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] Page printed upside down

2017-10-16 Thread Fabrice Couvreur
Hello,
I have printed this document and the page on the back is printed upside down
in fact you have to turn the page to read it.
How to correct this ?
Thank you
Fabrice

\setuppapersize[A4,landscape]

\setuppagenumbering[alternative=,location=]

\definemixedcolumns
  [MyColumns]
  [
n=2,
separator=rule,
rulecolor=,
balance=yes,
  ]

\setupalign[verytolerant,stretch,hanging]

\starttext
\startMyColumns
\dorecurse{6}{\input knuth}
\stopMyColumns
\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 TikZ

2017-10-07 Thread Fabrice Couvreur
Hi,
Thank you so much for this help, I would not have found it.
Fabrice

2017-10-07 15:59 GMT+02:00 Hans Hagen <pra...@wxs.nl>:

> On 10/7/2017 2:44 PM, Aditya Mahajan wrote:
>
>> On Sat, 7 Oct 2017, Aditya Mahajan wrote:
>>
>> On Sat, 7 Oct 2017, Fabrice Couvreur wrote:
>>>
>>> Hi Hans
>>>> Sorry to insist, but I need to correct this anomaly for my documents
>>>> that
>>>>
>>> I
>>>
>>>> give to students. If I compile with Context Standalone, it does not
>>>> work,
>>>> but maybe I do not do what you are suggesting :
>>>>
>>>
>>> I can confirm that color leakage. It happens due to pgfplots (and not
>>> tikz).
>>>
>>
>> I use tikz/pgfplots extensively and started wondering why I don't see
>> this error. Then I realized that I use a modified definition of
>> starttikzpicture in my code:
>>
>> \define\starttikzpicture
>>  {\hbox\bgroup\forcecolorhack\tikzpicture}
>>
>> \define\stoptikzpicture
>>  {\endtikzpicture\egroup}
>>
>>
>> With this definition, you code works correctly.
>>
> yes, i thought that was already done so someone needs to get that into the
> official code base
>
> (btw, it seems that there is also a \stopmodule done without \startmodule
> when tikz is loaded)
>
> Hans
>
> -
>   Hans Hagen | PRAGMA AD
> <https://maps.google.com/?q=Hans+Hagen+%7C+PRAGMA+AD=gmail=g>
> E
>   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] Strange behavior with TikZ

2017-10-07 Thread Fabrice Couvreur
Hi Hans
Sorry to insist, but I need to correct this anomaly for my documents that I
give to students. If I compile with Context Standalone, it does not work,
but maybe I do not do what you are suggesting :


\placefigure[none,right]{}{%
\hbox{\switchtobodyfont[8pt]

Thanks
Fabrice

2017-10-05 22:51 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> HI Hans,
>
> like this ?
>
> \placefigure[none,right]{}{
> \hbox{\switchtobodyfont[8pt]%
>
> Fabrice
>
> 2017-10-05 22:35 GMT+02:00 Hans Hagen <pra...@wxs.nl>:
>
>> On 10/5/2017 7:26 PM, Fabrice Couvreur wrote:
>>
>> If I put any image, there is no problem : the title of the section is in
>>> color and the text in black.
>>> With a graphic made with TikZ, the title and the text are in color.
>>>
>>
>> looks ok here
>>
>> \placefigure[none,right]{}{
>>> \hbox{\switchtobodyfont[8pt]
>>>
>>
>> add a % after the above line (otherwise you get a space)
>>
>> -
>>   Hans Hagen | PRAGMA ADE
>>   Ridderstraat 27 | 8061 GH Hasselt | The N
>> <https://maps.google.com/?q=Ridderstraat+27+%7C+8061+GH+Hasselt+%7C+The+N=gmail=g>
>> etherlands
>>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] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
HI Hans,

like this ?

\placefigure[none,right]{}{
\hbox{\switchtobodyfont[8pt]%

Fabrice

2017-10-05 22:35 GMT+02:00 Hans Hagen <pra...@wxs.nl>:

> On 10/5/2017 7:26 PM, Fabrice Couvreur wrote:
>
> If I put any image, there is no problem : the title of the section is in
>> color and the text in black.
>> With a graphic made with TikZ, the title and the text are in color.
>>
>
> looks ok here
>
> \placefigure[none,right]{}{
>> \hbox{\switchtobodyfont[8pt]
>>
>
> add a % after the above line (otherwise you get a space)
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The N
> <https://maps.google.com/?q=Ridderstraat+27+%7C+8061+GH+Hasselt+%7C+The+N=gmail=g>
> etherlands
>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
___

[NTG-context] Strange behavior with TikZ

2017-10-05 Thread Fabrice Couvreur
Hello,
If I put any image, there is no problem : the title of the section is in
color and the text in black.
With a graphic made with TikZ, the title and the text are in color.
Thank you for your help.
Fabrice

\usemodule[tikz]

\usemodule [graph]

\usemodule[pgfplots]

\pgfplotsset{compat=newest}

\definecolor[Mycolor][c=.6,m=0.8,y=0,k=0]

\unexpanded\def\interff#1#2{\math{\left[#1\,;#2\right]}}

\setuphead
   [section]
   [textcommand=,
color=magenta,
style=]


\starttext
\startsection[title={Résoudre graphiquement une équation
\math{f(x)=g(x)}},sectionsegments=section,color=magenta]

\placefigure[none,right]{}{
\hbox{\switchtobodyfont[8pt]
\starttikzpicture[/pgf/declare function={f(\x)=\x^2-3;},/pgf/declare
function={g(\x)=-\x^2+2*\x+1;}]
\startaxis[
 restrict x to domain=-3:3, xmax=3, xmin=-3,
 restrict y to domain=-5:4, ymax=4, ymin=-5,
 x=1cm,
 y=0.5cm,
 axis x line = middle,
 axis y line = middle,
 axis line style = thick,
 major grid style=Mycolor,
 minor grid style=Mycolor,
 grid=both,
 xtick={-2,...,2},
 ytick={-4,...,3},
 extra x ticks={-3,3},
 extra x tick label={\null},
 extra y ticks={-5,4},
 extra y tick label={\null},
 extra tick style={tick style={draw=none}},
 every tick/.style={
black,
thick,
  },
 y tick label style={
   /pgf/number format/1000 sep={}
   },
 xlabel=$x$,ylabel=$y$,
 every axis x label/.style={
at={(ticklabel* cs:1.01)},
anchor=west,
},
every axis y label/.style={
at={(ticklabel* cs:1.01)},
anchor=south,
},
 samples=2000,
 >=stealth,
  ]
\addplot[only marks,mark=x,color=black,mark options={scale=1.5},
thick] table[x=Nombre,y=Valeur]{
   Nombre   Valeur
-1   -2
 2   1
} ;
\addplot [smooth,domain=-1.5:2.5, thick,magenta] {f(x)} ;
\addplot [smooth,domain=-1.5:2.5, thick,green] {g(x)} ;

\node[above left,green] at (2,2) {\math{{\cal C}_g}} ;
\node[below right,magenta] at (1.5,-1) {\math{{\cal C}_f}} ;
\node[below left ] at (-0.1,-0.1) {\math{0}} ;

\node[fill=black,circle,scale=0.4,magenta] at (-1.5,{f(-1.5)}){} ;
\node[fill=black,circle,scale=0.4,magenta] at (2.5,{f(2.5)}){} ;

\node[fill=black,circle,scale=0.4,green] at (-1.5,{g(-1.5)}){} ;
\node[fill=black,circle,scale=0.4,green] at (2.5,{g(2.5)}){} ;

\stopaxis
\stoptikzpicture}}

\input knuth

\stopsection

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

[NTG-context] Centering an algorithm

2017-09-23 Thread Fabrice Couvreur
Hello,
Wolfgang offered me a way to present an algorithm.
Can not I center it ?
Thank you.
Fabrice

\definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00]

\defineframedtext
   [algorithmframe]
   [width=fit,
background=color,
foregroundstyle={\tt},
backgroundcolor=MyBlue,
framecolor=darkblue,
corner=round]

\definelines
   [algorithm]
   [space=on,
before=\startalgorithmframe,
after=\stopalgorithmframe]

\starttext

\startlinecorrection[blank]
\startmidaligned
\startalgorithm
Variables : \math{V} est un réel
  \math{N} est un entier naturel
Début
  Affecter à \math{V} la valeur 354\,412
  Affecter à \math{N} la valeur 0
  Tant que \unknown\unknown
\math{N} prend la valeur \unknown\unknown
\math{V} prend la valeur \unknown\unknown
  Fin Tant que
  Afficher \unknown\unknown
Fin
\stopalgorithm
\stopmidaligned
\stoplinecorrection

\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] Increment the section counter

2017-09-12 Thread Fabrice Couvreur
Hi,
Thank you Wolgang for your solution
Thanks also to Rik
Fabrice

2017-09-12 19:59 GMT+02:00 Wolfgang Schuster <schuster.wolfg...@gmail.com>:

> You can enable manual numbering
>
>
> \setuphead[section][ownnumber=yes]
>
> \starttext
>
> \section{3}{Section 1}
>
> \section{5}{Section 1}
>
> \section{6}{Section 1}
>
> \stoptext
>
>
> or use a custom conversion
>
>
> \defineconversion[drunk][3,5,6]
>
> \setuphead[section][conversion=drunk]
>
> \starttext
>
> \dorecurse{3}{\expanded{\section{Section \recurselevel}}}
>
> \stoptext
>
>
> Wolfgang
>
> Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> 12. September 2017 um 17:06
> Hello,
> The number of the sections is 1 2 3 ...
> How to make it 3 5 6 ... ?
> Thank you
> 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
> 
> ___
>
___
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] Increment the section counter

2017-09-12 Thread Fabrice Couvreur
Hello,
The number of the sections is 1 2 3 ...
How to make it 3 5 6 ... ?
Thank you
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
___

Re: [NTG-context] \setupheadertexts except on pages with title of chapter

2017-09-09 Thread Fabrice Couvreur
Hi Pablo,
In fact, I looked up after asking my question and found the answer. I
should not have asked my question !
Fabrice

2017-09-07 17:31 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 09/07/2017 04:43 PM, Fabrice Couvreur wrote:
> > Hi Pablo,
> > Thanks but I'm confused because I found the answer on the wiki.
>
> Hi Fabrice,
>
> and which is the problem? Had you searched the answer before and you
> didn’t found it that search?
>
> No problem. Probably you were spending too much time with the computer.
> You needed a break ;-).
>
> 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] \setupheadertexts except on pages with title of chapter

2017-09-07 Thread Fabrice Couvreur
HI Pablo,
Hi Pablo,
Thanks but I'm confused because I found the answer on the wiki.
Fabrice

2017-09-07 6:35 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 09/06/2017 11:04 PM, Fabrice Couvreur wrote:
> > Hello,
> > I would like that on the pages with the title of the chapter the header
> > is empty.
>
> Hi Fabrice,
>
> this is the command you need:
>
>   \setuphead[chapter][header=empty]
>
> 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
___

[NTG-context] \setupheadertexts except on pages with title of chapter

2017-09-06 Thread Fabrice Couvreur
Hello,
I would like that on the pages with the title of the chapter the header is
empty.
Fabrice

\setupheadertexts[{\getmarking[section]}][pagenumber]
  [{\getmarking[chapter]}][pagenumber]

\setuppagenumbering[alternative=,location=]
\starttext
\placelist[chapter,section][alternative=c]
\startchapter[title={First chapter}]
\startsection[title={First section}]
  \dorecurse{5}{\input knuth}
\stopsection
\stopchapter
\startchapter[title={Second chapter}]
\startsection[title={Second section}]
  \dorecurse{5}{\input knuth}
\stopsection
\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] Font DejaVu with a font for Mathematics

2017-09-06 Thread Fabrice Couvreur
Sorry for the noise !
It is true that \math{\cal N}, it is not very beautiful, so I will
associate another font even if it should avoid, I believe, to write
documents with different fonts
Fabrice

2017-09-06 18:53 GMT+02:00 Herbert Voss <herbert.v...@fu-berlin.de>:

>
> Fabrice Couvreur schrieb:
>
> > I use for the documents of my students the font DejaVu because I find
> that
> > it is very readable on paper. Unfortunately, this is not a font for
> > writing
> > Mathematics. I would like to use DejaVu font for text and a font to write
> > mathematical formulas. What do you recommend ?
>
> DejaVu Math ... ;-)
> https://ctan.org/tex-archive/fonts/tex-gyre-math
> https://ctan.org/tex-archive/fonts/tex-gyre-math/opentype
>
> Herbert
>
> 
> ___
> 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
___

[NTG-context] Font DejaVu with a font for Mathematics

2017-09-06 Thread Fabrice Couvreur
Hello,
I use for the documents of my students the font DejaVu because I find that
it is very readable on paper. Unfortunately, this is not a font for writing
Mathematics. I would like to use DejaVu font for text and a font to write
mathematical formulas. What do you recommend ?
Thank you.
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
___

Re: [NTG-context] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Pablo,
I speak of the text in the frame as in the image
https://mail.google.com/mail/u/0/?ui=2=d5d294e54c=att=15e0c2d8c5b8cf7c=0.1=safe=f_j6o6zsx20
Fabrice

2017-08-30 22:45 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/30/2017 06:07 PM, Fabrice Couvreur wrote:
> > Hi Aditya,
> > I tried :
> > [...]
> >   to have my text wrapped around the ornament as in the figure but it
> > does not work.
>
> Hi Fabrice,
>
> sorry if I’m missing something, but I wonder whether the next sample is
> what you intend.
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
> \defineornament
> [FrameTitle]
> [preset=lefttop]
> [
>   frame=off,
>   foregroundstyle=\bfx,
>   foregroundcolor=white,
>   background=color,
>   backgroundcolor=MyColorB,
> ]
>
>
> \defineframedtext
>   [FramedText]
>   [
> offset=0.6em,
> toffset=\lineheight,
> background=color,
> backgroundcolor=MyColorA,
> foregroundstyle={\switchtobodyfont[10pt]},
> align=verytolerant,
> alternative=serried, % text wrapped
> frame=off,
> corner=round,
>   ]
>
> \definefloat
>   [recipe]
>   [figure]
>
> \setupfloat
>   [recipe]
>   [default={right,none}]
>
> \showframe
>
> \starttext
>  \placerecipe{}
>{\FrameTitle{Info}{\startFramedText[width=10cm]
>   L'équivalent vingt pieds (EVP) est une unité de mesure de
>   conteneurs (de longueur courante 20 pieds, soit environ
>   \unit{6,1 meter}).
>
>   1 EVP représente environ \unit{38,5 cubic meter}.
> \stopFramedText}}
>
> \input zapf
>
> \stoptext
>
> 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
> 
> ___
>
___
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] Background with rounded corners (Metafun)

2017-08-30 Thread Fabrice Couvreur
Hi Aditya,
I tried :


\defineframedtext
  [FramedText]
  [
offset=0.6em,
toffset=\lineheight,
background=color,
backgroundcolor=MyColorA,
foregroundstyle={\switchtobodyfont[10pt]},
align=verytolerant,
alternative=serried, % text wrapped
frame=off,
corner=00,
  ]
  to have my text wrapped around the ornament as in the figure but it does
not work.
Thanks
Fabrice

2017-08-23 1:20 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Sorry 'corner=00' !
>
> 2017-08-23 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
>
>> Hi Aditya,
>> Sorry I forgot to attach the image of what I want to do. I know corner=number
>> parameter of framed and framed text but I wanted to do it with Metafun.
>> Thank you
>> Fabrice
>>
>> 2017-08-23 0:50 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>>
>>> On Wed, 23 Aug 2017, Fabrice Couvreur wrote:
>>>
>>> Hello,
>>>> I would like to have three corners rounded as in the figure.
>>>>
>>>
>>> Not sure if you had simplified your example or not. But if all you want
>>> is a rounded corner, you can consider using corner=number parameter of
>>> framed and framed text:
>>>
>>> http://wiki.contextgarden.net/Framed#Rounded_Corners
>>>
>>> Here is an example (that does not use metapost).
>>>
>>> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
>>> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>>>
>>> \defineornament
>>> [FrameTitle]
>>> [preset=lefttop]
>>> [
>>>   frame=off,
>>>   foregroundstyle=\bfx,
>>>   foregroundcolor=white,
>>>   background=color,
>>>   backgroundcolor=MyColorB,
>>> ]
>>>
>>> \defineframedtext
>>>   [FramedText]
>>>   [
>>> offset=0.6em,
>>> toffset=\lineheight,
>>> background=color,
>>> backgroundcolor=MyColorA,
>>> foregroundstyle={\switchtobodyfont[10pt]},
>>> align=verytolerant,
>>> frame=off,
>>> corner=01,
>>>   ]
>>>
>>>
>>> \showframe
>>> \starttext
>>>
>>> \FrameTitle{Info}{\startFramedText[width=10cm]
>>>   L'équivalent vingt pieds (EVP) est une unité de mesure de
>>> conteneurs
>>> (de longueur courante 20 pieds, soit environ \unit{6,1 meter}).
>>>
>>>   1 EVP représente environ \unit{38,5 cubic meter}.
>>> \stopFramedText}
>>>
>>> \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
>>> 
>>> ___
>>>
>>
>>
>
___
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 the Garamond font

2017-08-27 Thread Fabrice Couvreur
Is this an impression but, of equal size, it seems smaller than other fonts.

2017-08-27 13:10 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi,
> Here's what I get, is this correct ?
> Thank you
> Fabrice
>
> fab@debian:~$ pdffonts layout25.pdf
> name type  encoding
> emb sub uni object ID
>  - 
> --- --- --- -
> JJIWHN+GaramondNo8-Regular   CID Type 0C   Identity-H
> yes yes yes 10  0
> fab@debian:~$
>
> 2017-08-25 12:03 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
>
>> Hi Aditya,
>> The first time I have downloaded since http://wiki.contextgarde
>> n.net/URW_Garamond  with the result you know. Then I did a search on
>> Google and I downloaded another package for the same result.
>> Where to find the fonts ?
>> Fabrice
>>
>> 2017-08-25 4:06 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>>
>>> On Fri, 25 Aug 2017, Fabrice Couvreur wrote:
>>>
>>> Hello,
>>>> I reinstalled the fonts in :
>>>>
>>>> fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
>>>> total 16
>>>> drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
>>>> drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
>>>> drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
>>>> drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
>>>> fab@debian:~$
>>>>
>>>> I compiled the following file :
>>>>
>>>> \loadtypescriptfile[mathdesign]
>>>> \setupbodyfont[garamond]
>>>> \starttext
>>>> \input knuth
>>>> \stoptext
>>>>
>>>
>>> You have EBGaramond font, but you are using mathdesign typescript which
>>> is designed for URW Garamond. So you need to either install URW Garamond
>>> (in AFM format) or create a typescript for EBGaramond.
>>>
>>> For reference, this is the relevant part of type-imp-mathdesign.mkiv:
>>>
>>>% URW Garamond
>>>
>>> \starttypescript [\s!serif] [garamond]
>>> \definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm]
>>> \definefontsynonym [Garamond-Italic]  [\s!file:ugmri8a.afm]
>>> \definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm]
>>> \definefontsynonym [Garamond-BoldItalic]  [\s!file:ugmmi8a.afm]
>>> \stoptypescript
>>>
>>> \starttypescript [\s!serif] [garamond] [\s!name]
>>> \setups[\s!font:\s!fallback:\s!serif]
>>> \definefontsynonym [\s!Serif][Garamond-Regular]
>>> \definefontsynonym [\s!SerifItalic]  [Garamond-Italic]
>>> \definefontsynonym [\s!SerifBold][Garamond-Bold]
>>> \definefontsynonym [\s!SerifBoldItalic]  [Garamond-BoldItalic]
>>> \stoptypescript
>>>
>>> \starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all]
>>> \loadfontgoodies[mdugm-math]
>>> \definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm]
>>> \definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf]
>>> \stoptypescript
>>>
>>> \starttypescript [mathdesigngm,garamond]
>>> \definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond]
>>> [\s!default]
>>> \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [modern]
>>> [\s!default]
>>> \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [modern]
>>> [\s!default]
>>> \definetypeface [\typescriptone] [\s!mm] [\s!math]  [garamond]
>>> [\s!default]
>>> \quittypescriptscanning
>>> \stoptypescript
>>>
>>>
>>> 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/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] Strange behavior with the Garamond font

2017-08-27 Thread Fabrice Couvreur
Hi,
Here's what I get, is this correct ?
Thank you
Fabrice

fab@debian:~$ pdffonts layout25.pdf
name type  encoding emb
sub uni object ID
 -  ---
--- --- -
JJIWHN+GaramondNo8-Regular   CID Type 0C   Identity-H   yes
yes yes 10  0
fab@debian:~$

2017-08-25 12:03 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi Aditya,
> The first time I have downloaded since http://wiki.
> contextgarden.net/URW_Garamond  with the result you know. Then I did a
> search on Google and I downloaded another package for the same result.
> Where to find the fonts ?
> Fabrice
>
> 2017-08-25 4:06 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>
>> On Fri, 25 Aug 2017, Fabrice Couvreur wrote:
>>
>> Hello,
>>> I reinstalled the fonts in :
>>>
>>> fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
>>> total 16
>>> drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
>>> drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
>>> drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
>>> drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
>>> fab@debian:~$
>>>
>>> I compiled the following file :
>>>
>>> \loadtypescriptfile[mathdesign]
>>> \setupbodyfont[garamond]
>>> \starttext
>>> \input knuth
>>> \stoptext
>>>
>>
>> You have EBGaramond font, but you are using mathdesign typescript which
>> is designed for URW Garamond. So you need to either install URW Garamond
>> (in AFM format) or create a typescript for EBGaramond.
>>
>> For reference, this is the relevant part of type-imp-mathdesign.mkiv:
>>
>>% URW Garamond
>>
>> \starttypescript [\s!serif] [garamond]
>> \definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm]
>> \definefontsynonym [Garamond-Italic]  [\s!file:ugmri8a.afm]
>> \definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm]
>> \definefontsynonym [Garamond-BoldItalic]  [\s!file:ugmmi8a.afm]
>> \stoptypescript
>>
>> \starttypescript [\s!serif] [garamond] [\s!name]
>> \setups[\s!font:\s!fallback:\s!serif]
>> \definefontsynonym [\s!Serif][Garamond-Regular]
>> \definefontsynonym [\s!SerifItalic]  [Garamond-Italic]
>> \definefontsynonym [\s!SerifBold][Garamond-Bold]
>> \definefontsynonym [\s!SerifBoldItalic]  [Garamond-BoldItalic]
>> \stoptypescript
>>
>> \starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all]
>> \loadfontgoodies[mdugm-math]
>> \definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm]
>> \definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf]
>> \stoptypescript
>>
>> \starttypescript [mathdesigngm,garamond]
>> \definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond]
>> [\s!default]
>> \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [modern]
>> [\s!default]
>> \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [modern]
>> [\s!default]
>> \definetypeface [\typescriptone] [\s!mm] [\s!math]  [garamond]
>> [\s!default]
>> \quittypescriptscanning
>> \stoptypescript
>>
>>
>> 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/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
>> 
>> ___
>>
>
>


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

Re: [NTG-context] Some questions about my document

2017-08-27 Thread Fabrice Couvreur
Hi Pablo,
Thank you, it's very clear and it finally corresponds to what I want.
The road is long in the learning of this formidable tool !
Fabrice

2017-08-27 12:43 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/27/2017 12:29 PM, Fabrice Couvreur wrote:
> > Hi Pablo,
> >
> > " You have to define a new conversion set and use it for the prefix
> > segments "
> > It seems to me that's what I did.
>
> Hi Fabrice,
>
> I don’t think so. Two different conversion sets are required: one for
> \setupheads[sectionconversionset=numbers] and a different one for
> \defineenumeration[remark][prefixconversionset=digits].
>
> If there is no different conversion set for the enumeration, you get the
> default for the head.
>
> Here is the full sample:
>
> \mainlanguage[fr]
> \setuphead[chapter][commandbefore={: }]
> \setuphead[section][distance=\zeropoint,
> commandbefore={\space\endash\space}]
> \setuplabeltext[fr][chapter=Chapitre ]
>
> \definestructureconversionset
>   [structure]
>   [n, R, n, n, n]
>
> \definestructureconversionset
>   [digits]
>   [n, n, n, n, n]
>
> \setupheads[sectionconversionset=structure]
>
> \defineenumeration
>   [remark]
>   [
> text=Remark,
> location=serried,
> width=fit,
> right={.~},
> prefix=yes,
> prefixsegments=chapter,
> prefixconversionset=digits,
> %~ prefixsegments=section
>   ]
>
> \setupnumber[remark][way=bychapter]
>
>
> \starttext
> \dorecurse{3}{\startchapter
>   [title={First chapter}]
> \dorecurse{3}{\startsection
>   [title={First section}]
>   \dorecurse{3}{\startremark \input ward \stopremark}
> \stopsection}
> \stopchapter}
> \stoptext
>
> I hope it is clear now. Let me know if it isn’t.
>
> Cheers,
>
> 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] Some questions about my document

2017-08-27 Thread Fabrice Couvreur
Hi Pablo,

" You have to define a new conversion set and use it for the prefix
segments "
It seems to me that's what I did :

\definestructureconversionset
  [structure]
  [numbers, Romannumerals, numbers, numbers, numbers]
  [numbers]

\setupheads [sectionconversionset=structure]

\defineenumeration
  [remark]
  [
text=Remark,
location=serried,
width=fit,
right={.~},
prefix=yes,
prefixsegments=chapter,
  ]

\setupnumber[remark][way=bychapter]


Only I get (which is normal according to the numbering chosen for the
chapters : Romannumerals)

Remark I.1.

and I want this :

Remark 1.1.

Fabrice



2017-08-27 11:03 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/27/2017 12:14 AM, Fabrice Couvreur wrote:
> > " I would like to have this :
> >
> > Chapitre I : Espaces probabilisés
> >
> > I.1 - Expérience aléatoire et univers "
> >
> > I did this :
> >
> > \setuphead[chapter][commandbefore={: }]
> > \setuphead[section][distance=\zeropoint,commandbefore={\
> space\endash\space}]
> > \setuplabeltext[en][chapter=Chapitre ]
>
> Hi Fabrice,
>
> I think it would be better to use French:
>
> \mainlanguage[fr]
> \setuplabeltext[fr][chapter=Chapitre ]
>
> > But for this
> >
> > Remark 1.1.
> > Remark 1.2
> > Remark 1.3
> >
> > I do not find !
>
> You have to define a new conversion set and use it for the prefix
> segments (I added the section to the numbering):
>
> \definestructureconversionset
>   [digits]
>   [n, n, a, n, n]
>   [numbers]
>
> \defineenumeration
>   [remark]
>   [
> text=Remark,
> location=serried,
> width=fit,
> right={.~},
> prefix=yes,
> prefixsegments=chapter:section,
> prefixconversionset=digits,
>   ]
>
> 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] Some questions about my document

2017-08-26 Thread Fabrice Couvreur
" I would like to have this :

Chapitre I : Espaces probabilisés

I.1 - Expérience aléatoire et univers "


I did this :

\setuphead[chapter][commandbefore={: }]
\setuphead[section][distance=\zeropoint,commandbefore={\space\endash\space}]
\setuplabeltext[en][chapter=Chapitre ]

But for this

Remark 1.1.
Remark 1.2
Remark 1.3

I do not find !

Fabrice

2017-08-26 12:27 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi,
> I have simplified the code, but I get :
>
> Remark I.1.
> Remark I.2.
> Remark I.3.
>
> instead :
>
> Remark 1.1.
> Remark 1.2
> Remark 1.3
>
> Thanks
> Fabrice
>
> %
> \definestructureconversionset
>   [structure]
>   [numbers, Romannumerals, numbers, numbers, numbers]
>   [numbers]
>
> \setupheads [sectionconversionset=structure]
>
> \defineenumeration
>   [remark]
>   [
> text=Remark,
> location=serried,
> width=fit,
> right={.~},
> prefix=yes,
> prefixsegments=chapter,
>   ]
>
> \setupnumber[remark][way=bychapter]
>
> \starttext
> \startchapter
>   [title={First chapter}]
> \startsection
>   [title={First section}]
>   \dorecurse{3}{\startremark \input ward \stopremark}
> \stopsection
> \stopchapter
> \stoptext
> %
>
> 2017-08-24 14:53 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
>
>> Hello,
>> I would like to have this :
>>
>> 
>>
>> Chapitre I : Espaces probabilisés
>>
>> I.1 - Expérience aléatoire et univers
>>
>> Définition 1.1
>>
>> Définition 1.2
>>
>> 
>>
>> Thank you
>> Fabrice
>>
>> %
>>
>> \definestructureconversionset
>>   [structure]
>>   [numbers, Romannumerals, numbers, numbers, numbers]
>>   [numbers]
>>
>> \setupheads [sectionconversionset=structure]
>>
>> \setupenumerations
>> [
>> before={\blank[big]},
>> after={\blank[big]},
>> alternative=serried,
>> width=broad,
>> distance=0.5em,
>> headstyle=bold,
>> titlestyle=bold,
>> prefix=chapter,
>> way=bychapter,
>> conversion=numbers]
>>
>> \defineenumeration
>> [definition]
>> [
>> text=Définition,
>> title=yes,
>> style=italic,
>> list=all,
>> listtext={Définition}]
>>
>> \starttext
>> \startchapter[title=Espaces probabilisés]
>> \startsection[title=Expérience aléatoire  et univers]
>> \startdefinition
>>   On appelle expérience aléatoire une expérience sur un système dont le
>> résultat n'est pas connu d'avance et peut varier si on répète cette
>> expérience.
>> \stopdefinition
>> \startdefinition
>>   On appelle univers l'ensemble des résultats possibles. Il est noté
>> \math{\Omega}.
>> \stopdefinition
>> \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] Some questions about my document

2017-08-26 Thread Fabrice Couvreur
Hi,
I have simplified the code, but I get :

Remark I.1.
Remark I.2.
Remark I.3.

instead :

Remark 1.1.
Remark 1.2
Remark 1.3

Thanks
Fabrice

%
\definestructureconversionset
  [structure]
  [numbers, Romannumerals, numbers, numbers, numbers]
  [numbers]

\setupheads [sectionconversionset=structure]

\defineenumeration
  [remark]
  [
text=Remark,
location=serried,
width=fit,
right={.~},
prefix=yes,
prefixsegments=chapter,
  ]

\setupnumber[remark][way=bychapter]

\starttext
\startchapter
  [title={First chapter}]
\startsection
  [title={First section}]
  \dorecurse{3}{\startremark \input ward \stopremark}
\stopsection
\stopchapter
\stoptext
%

2017-08-24 14:53 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hello,
> I would like to have this :
>
> 
>
> Chapitre I : Espaces probabilisés
>
> I.1 - Expérience aléatoire et univers
>
> Définition 1.1
>
> Définition 1.2
>
> 
>
> Thank you
> Fabrice
>
> %
>
> \definestructureconversionset
>   [structure]
>   [numbers, Romannumerals, numbers, numbers, numbers]
>   [numbers]
>
> \setupheads [sectionconversionset=structure]
>
> \setupenumerations
> [
> before={\blank[big]},
> after={\blank[big]},
> alternative=serried,
> width=broad,
> distance=0.5em,
> headstyle=bold,
> titlestyle=bold,
> prefix=chapter,
> way=bychapter,
> conversion=numbers]
>
> \defineenumeration
> [definition]
> [
> text=Définition,
> title=yes,
> style=italic,
> list=all,
> listtext={Définition}]
>
> \starttext
> \startchapter[title=Espaces probabilisés]
> \startsection[title=Expérience aléatoire  et univers]
> \startdefinition
>   On appelle expérience aléatoire une expérience sur un système dont le
> résultat n'est pas connu d'avance et peut varier si on répète cette
> expérience.
> \stopdefinition
> \startdefinition
>   On appelle univers l'ensemble des résultats possibles. Il est noté
> \math{\Omega}.
> \stopdefinition
> \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 the Garamond font

2017-08-25 Thread Fabrice Couvreur
Hi Aditya,
The first time I have downloaded since
http://wiki.contextgarden.net/URW_Garamond  with the result you know. Then
I did a search on Google and I downloaded another package for the same
result.
Where to find the fonts ?
Fabrice

2017-08-25 4:06 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:

> On Fri, 25 Aug 2017, Fabrice Couvreur wrote:
>
> Hello,
>> I reinstalled the fonts in :
>>
>> fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
>> total 16
>> drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
>> drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
>> drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
>> drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
>> fab@debian:~$
>>
>> I compiled the following file :
>>
>> \loadtypescriptfile[mathdesign]
>> \setupbodyfont[garamond]
>> \starttext
>> \input knuth
>> \stoptext
>>
>
> You have EBGaramond font, but you are using mathdesign typescript which is
> designed for URW Garamond. So you need to either install URW Garamond (in
> AFM format) or create a typescript for EBGaramond.
>
> For reference, this is the relevant part of type-imp-mathdesign.mkiv:
>
>% URW Garamond
>
> \starttypescript [\s!serif] [garamond]
> \definefontsynonym [Garamond-Regular] [\s!file:ugmr8a.afm]
> \definefontsynonym [Garamond-Italic]  [\s!file:ugmri8a.afm]
> \definefontsynonym [Garamond-Bold][\s!file:bchb8a.afm]
> \definefontsynonym [Garamond-BoldItalic]  [\s!file:ugmmi8a.afm]
> \stoptypescript
>
> \starttypescript [\s!serif] [garamond] [\s!name]
> \setups[\s!font:\s!fallback:\s!serif]
> \definefontsynonym [\s!Serif][Garamond-Regular]
> \definefontsynonym [\s!SerifItalic]  [Garamond-Italic]
> \definefontsynonym [\s!SerifBold][Garamond-Bold]
> \definefontsynonym [\s!SerifBoldItalic]  [Garamond-BoldItalic]
> \stoptypescript
>
> \starttypescript [\s!math] [mdugm,mathdesigngm,garamond] [\s!all]
> \loadfontgoodies[mdugm-math]
> \definefontsynonym [\s!MathRoman] [mdugmrm@mdugm-rm]
> \definefontsynonym [\s!MathRomanBold] [mdugmbf@mdugm-bf]
> \stoptypescript
>
> \starttypescript [mathdesigngm,garamond]
> \definetypeface [\typescriptone] [\s!rm] [\s!serif] [garamond]
> [\s!default]
> \definetypeface [\typescriptone] [\s!ss] [\s!sans]  [modern]
> [\s!default]
> \definetypeface [\typescriptone] [\s!tt] [\s!mono]  [modern]
> [\s!default]
> \definetypeface [\typescriptone] [\s!mm] [\s!math]  [garamond]
> [\s!default]
> \quittypescriptscanning
> \stoptypescript
>
>
> 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
> 
> ___
>
___
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 the Garamond font

2017-08-24 Thread Fabrice Couvreur
Hello,
I reinstalled the fonts in :

fab@debian:~$ ls -l /home/fab/texmf/fonts/opentype/
total 16
drwxr-xr-x 2 fab fab 4096 août  25 02:14 ebgaramond
drwxr-xr-x 5 fab fab 4096 avril 11  2016 fourier-GUT
drwxrwxr-x 9 fab fab 4096 avril  4  2011 kpfonts
drwxr-xr-x 3 fab fab 4096 août  12 23:50 STIXv2.0.0
fab@debian:~$

 I compiled the following file :

\loadtypescriptfile[mathdesign]
\setupbodyfont[garamond]
\starttext
\input knuth
\stoptext


which font it embedded :

ab@debian:~$ pdffonts layout22.pdf
name type  encoding emb
sub uni object ID
 -  ---
--- --- -
AHYUQI+GaramondNo8-Regular   CID Type 0C   Identity-H   yes
yes yes 10  0

It still does not work !

Fabrice

2017-08-18 23:41 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi,
> @Aditya
>
> This does not solve my problem
>
> @Pablo
>
> fab@debian:~$ pdffonts layout15.pdf
> name type  encoding
> emb sub uni object ID
>  - 
> --- --- --- -
> AHYUQI+GaramondNo8-Regular   CID Type 0C   Identity-H
> yes yes yes 10  0
>
>
> 2017-08-18 20:17 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>
>> On Thu, 17 Aug 2017, Fabrice Couvreur wrote:
>>
>> When I speak of non-readable, I mean it looks like "hieroglyphics".
>>>
>>
>> Try
>>
>> mtxrun --script fonts --reload --force
>>
>> and then compiling again.
>>
>> 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/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
>> 
>> ___
>>
>
>


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

Re: [NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
Hi Pablo,
Thank you so much !
Fabrice

%\setupbackgrounds[header][text][bottomframe=on]
\setuphead
[chapter]
[header=empty]

\setupheader[text][after=\vskip 1pt \hrule]

\starttext
\starttitle[title={\bf My Book}]
\stoptitle
\placelist[chapter,section][alternative=c]
\stoptext



2017-08-24 18:12 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/24/2017 05:10 PM, Fabrice Couvreur wrote:
> > Hi,
> > How to proceed so that the text of the head is not on the page with the
> > table of contents and pages with the title of the chapter ?
>
> Hi Fabrice,
>
> to the first question:
>
>   \setuphead
> [chapter]
> [header=empty]
>
> You might not want the rule in those pages. Play with the options:
>
>   %~ \setupheader[text][after=\vskip 3pt \hrule]
>   \setupheader[text][after={\blackrule[
>   width=\textwidth,
>   height=1em]}]
>
> It is wiser (not only to solve the problem), that you write a \title
> before \placelist.
>
> 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
___

[NTG-context] Draw a line under the headertext in ConTeXt except some pages

2017-08-24 Thread Fabrice Couvreur
Hi,
How to proceed so that the text of the head is not on the page with the
table of contents and pages with the title of the chapter ?
Thanks
Fabrice

\setuplayout
  [
header=\lineheight,
headerdistance=\lineheight,
  ]

\setupbackgrounds[header][text][bottomframe=on]

\setupheadertexts[{\getmarking[section]}][pagenumber]
 [{\getmarking[chapter]}][pagenumber]

\setuppagenumbering[alternative=,location=]

\definestructureconversionset
  [structure]
  [numbers, Romannumerals, numbers, numbers, numbers]
  [numbers]

\setupheads [sectionconversionset=structure]


\setuplist
  [chapter]
  [
   style=bold,
  ]

\starttext
\placelist[chapter,section][alternative=c]
\startchapter[title=Espaces probabilisés]
  \startsection[title=Expérience aléatoire  et univers]
\dorecurse{5}{\input knuth}
  \stopsection
  \startsection[title=Événements]
\dorecurse{5}{\input knuth}
\stopsection
\stopchapter
\startchapter[title=Variables aléatoires : généralités]
  \startsection[title=Définition]
 \dorecurse{5}{\input knuth}
  \stopsection
  \startsection[title=Loi de probabilité d'une variable aléatoire]
 \dorecurse{5}{\input knuth}
  \stopsection
\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
___

[NTG-context] Some questions about my document

2017-08-24 Thread Fabrice Couvreur
Hello,
I would like to have this :



Chapitre I : Espaces probabilisés

I.1 - Expérience aléatoire et univers

Définition 1.1

Définition 1.2



Thank you
Fabrice

%

\definestructureconversionset
  [structure]
  [numbers, Romannumerals, numbers, numbers, numbers]
  [numbers]

\setupheads [sectionconversionset=structure]

\setupenumerations
[
before={\blank[big]},
after={\blank[big]},
alternative=serried,
width=broad,
distance=0.5em,
headstyle=bold,
titlestyle=bold,
prefix=chapter,
way=bychapter,
conversion=numbers]

\defineenumeration
[definition]
[
text=Définition,
title=yes,
style=italic,
list=all,
listtext={Définition}]

\starttext
\startchapter[title=Espaces probabilisés]
\startsection[title=Expérience aléatoire  et univers]
\startdefinition
  On appelle expérience aléatoire une expérience sur un système dont le
résultat n'est pas connu d'avance et peut varier si on répète cette
expérience.
\stopdefinition
\startdefinition
  On appelle univers l'ensemble des résultats possibles. Il est noté
\math{\Omega}.
\stopdefinition
\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] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Sorry 'corner=00' !

2017-08-23 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi Aditya,
> Sorry I forgot to attach the image of what I want to do. I know corner=number
> parameter of framed and framed text but I wanted to do it with Metafun.
> Thank you
> Fabrice
>
> 2017-08-23 0:50 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>
>> On Wed, 23 Aug 2017, Fabrice Couvreur wrote:
>>
>> Hello,
>>> I would like to have three corners rounded as in the figure.
>>>
>>
>> Not sure if you had simplified your example or not. But if all you want
>> is a rounded corner, you can consider using corner=number parameter of
>> framed and framed text:
>>
>> http://wiki.contextgarden.net/Framed#Rounded_Corners
>>
>> Here is an example (that does not use metapost).
>>
>> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
>> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>>
>> \defineornament
>> [FrameTitle]
>> [preset=lefttop]
>> [
>>   frame=off,
>>   foregroundstyle=\bfx,
>>   foregroundcolor=white,
>>   background=color,
>>   backgroundcolor=MyColorB,
>> ]
>>
>> \defineframedtext
>>   [FramedText]
>>   [
>> offset=0.6em,
>> toffset=\lineheight,
>> background=color,
>> backgroundcolor=MyColorA,
>> foregroundstyle={\switchtobodyfont[10pt]},
>> align=verytolerant,
>> frame=off,
>> corner=01,
>>   ]
>>
>>
>> \showframe
>> \starttext
>>
>> \FrameTitle{Info}{\startFramedText[width=10cm]
>>   L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs
>> (de longueur courante 20 pieds, soit environ \unit{6,1 meter}).
>>
>>   1 EVP représente environ \unit{38,5 cubic meter}.
>> \stopFramedText}
>>
>> \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
>> 
>> ___
>>
>
>
___
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] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
With your solution 'corner=01'

2017-08-23 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi Aditya,
> Sorry I forgot to attach the image of what I want to do. I know corner=number
> parameter of framed and framed text but I wanted to do it with Metafun.
> Thank you
> Fabrice
>
> 2017-08-23 0:50 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>
>> On Wed, 23 Aug 2017, Fabrice Couvreur wrote:
>>
>> Hello,
>>> I would like to have three corners rounded as in the figure.
>>>
>>
>> Not sure if you had simplified your example or not. But if all you want
>> is a rounded corner, you can consider using corner=number parameter of
>> framed and framed text:
>>
>> http://wiki.contextgarden.net/Framed#Rounded_Corners
>>
>> Here is an example (that does not use metapost).
>>
>> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
>> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>>
>> \defineornament
>> [FrameTitle]
>> [preset=lefttop]
>> [
>>   frame=off,
>>   foregroundstyle=\bfx,
>>   foregroundcolor=white,
>>   background=color,
>>   backgroundcolor=MyColorB,
>> ]
>>
>> \defineframedtext
>>   [FramedText]
>>   [
>> offset=0.6em,
>> toffset=\lineheight,
>> background=color,
>> backgroundcolor=MyColorA,
>> foregroundstyle={\switchtobodyfont[10pt]},
>> align=verytolerant,
>> frame=off,
>> corner=01,
>>   ]
>>
>>
>> \showframe
>> \starttext
>>
>> \FrameTitle{Info}{\startFramedText[width=10cm]
>>   L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs
>> (de longueur courante 20 pieds, soit environ \unit{6,1 meter}).
>>
>>   1 EVP représente environ \unit{38,5 cubic meter}.
>> \stopFramedText}
>>
>> \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
>> 
>> ___
>>
>
>
___
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] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Hi Aditya,
Sorry I forgot to attach the image of what I want to do. I know corner=number
parameter of framed and framed text but I wanted to do it with Metafun.
Thank you
Fabrice

2017-08-23 0:50 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:

> On Wed, 23 Aug 2017, Fabrice Couvreur wrote:
>
> Hello,
>> I would like to have three corners rounded as in the figure.
>>
>
> Not sure if you had simplified your example or not. But if all you want is
> a rounded corner, you can consider using corner=number parameter of framed
> and framed text:
>
> http://wiki.contextgarden.net/Framed#Rounded_Corners
>
> Here is an example (that does not use metapost).
>
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
>
> \defineornament
> [FrameTitle]
> [preset=lefttop]
> [
>   frame=off,
>   foregroundstyle=\bfx,
>   foregroundcolor=white,
>   background=color,
>   backgroundcolor=MyColorB,
> ]
>
> \defineframedtext
>   [FramedText]
>   [
> offset=0.6em,
> toffset=\lineheight,
> background=color,
> backgroundcolor=MyColorA,
> foregroundstyle={\switchtobodyfont[10pt]},
> align=verytolerant,
> frame=off,
> corner=01,
>   ]
>
>
> \showframe
> \starttext
>
> \FrameTitle{Info}{\startFramedText[width=10cm]
>   L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs
> (de longueur courante 20 pieds, soit environ \unit{6,1 meter}).
>
>   1 EVP représente environ \unit{38,5 cubic meter}.
> \stopFramedText}
>
> \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
___

[NTG-context] Background with rounded corners (Metafun)

2017-08-22 Thread Fabrice Couvreur
Hello,
I would like to have three corners rounded as in the figure.
Thank you
Fabrice

\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]

\startuseMPgraphic{MyFrame}
 path b ;
 picture p ;
 p := textext.rt("\bf\tfx\white\framedtextparameter{Title}") ;
 p := p shifted (.3EmWidth,OverlayHeight-.6EmWidth) ;
 b := boundingbox p enlarged .3EmWidth ;
 fill OverlayBox withcolor \MPcolor{MyColorA} ;
 fill b withcolor \MPcolor{MyColorB} ;
 draw p ;
 setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
\stopuseMPgraphic

\defineoverlay
  [MyFrame]
  [\useMPgraphic{MyFrame}]

\defineframedtext
  [MyFrame]
  [frame=off,
   foregroundstyle={\switchtobodyfont[10pt]},
   background=MyFrame,
   align={verytolerant},
   height=fit]

\definefloat
  [recipe]
  [figure]

\setupfloat
  [recipe]
  [default={right,none}]
\showframe
\starttext
 \placerecipe{}
   {\startMyFrame[Title=Info,width=10cm]
  L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs
(de longueur courante 20 pieds, soit environ \unit{6,1 meter}).

  1 EVP représente environ \unit{38,5 cubic meter}.
\stopMyFrame
   }
\input knuth


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

[NTG-context] Problem with placing a float and a tab

2017-08-22 Thread Fabrice Couvreur
Hello,
How should the table be placed correctly ?
Thanks
Fabrice

\unexpanded\def\pcent#1{\math{#1\,\%}}

\startsetups  [table:one]
   \setupTABLE[start][align={middle,lohi},width=2.2cm,offset=0.8ex]
   \setupTABLE[column][first][width=2cm,align={right}]
   \setupTABLE[1][1][frame=off]
   \setupTABLE[row][7][frame=off,align={left}]
\stopsetups
\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]

\startuseMPgraphic{MyFrame}
 path b ;
 picture p ;
 p := textext.rt("\bf\tfx\white\framedtextparameter{Title}") ;
 p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight) ;
 b := boundingbox p enlarged .3EmWidth ;
 fill OverlayBox withcolor \MPcolor{MyColorA} ;
 fill b withcolor \MPcolor{MyColorB} ;
 draw p ;
 setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
\stopuseMPgraphic

\defineoverlay
  [MyFrame]
  [\useMPgraphic{MyFrame}]

\defineframedtext
  [MyFrame]
  [frame=off,
   foregroundstyle={\switchtobodyfont[8pt]},
   background=MyFrame,
   align={verytolerant},
   height=fit]

\definefloat
  [recipe]
  [figure]

\setupfloat
  [recipe]
  [default={right,none}]
\showframe
\starttext
 \placerecipe{}
   {\startMyFrame[Title=Info,width=5cm]
  L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs
(de longueur courante 20 pieds, soit environ \unit{6,1 meter}).

  1 EVP représente environ \unit{38,5 cubic meter}.
\stopMyFrame
   }

Le tableau ci-dessous dresse le bilan du transport combiné fluvial en
France pour l'activité de conteneurs entre 2010 et 2012, en équivalents
vingt pieds (EVP).
  \startmidaligned
  \bTABLE[setups=table:one]
\bTR
\bTD   \eTD
\bTD 2010  \eTD
\bTD 2011  \eTD
\bTD 2012  \eTD
\bTD 2011/2010 \eTD
\bTD 2012/2011 \eTD
\eTR
\bTR
\bTD Rhône  \eTD
\bTD 61\,633\eTD
\bTD 69\,637\eTD
\bTD 77\,314\eTD
\bTD \pcent{+13,0}  \eTD
\bTD \pcent{+11,0}  \eTD
\eTR
\bTR
\bTD Seine   \eTD
\bTD 195\,467\eTD
\bTD 237\,400\eTD
\bTD 241\,004\eTD
\bTD \pcent{+21,5}   \eTD
\bTD \pcent{+5,7}\eTD
\eTR
\bTR
\bTD Nord\eTD
\bTD 50\,483 \eTD
\bTD 68\,145 \eTD
\bTD 67\,835 \eTD
\bTD \pcent{+35,0}   \eTD
\bTD \pcent{-0,5}\eTD
\eTR
\bTR
\bTD Rhin\eTD
\bTD 182\,478\eTD
\bTD 156\,818\eTD
\bTD 164\,017\eTD
\bTD \pcent{-14,1}   \eTD
\bTD \pcent{+4,6}\eTD
\eTR
\bTR
\bTH Total   \eTH
\bTH 490\,061\eTH
\bTH 532\,000\eTH
\bTH 560\,170\eTH
\bTH \pcent{+8,6}\eTH
\bTH \pcent{+5,3}\eTH
\eTR
\bTR
\bTD [nc=4] \tfx\bf Source : Voies navigables de France (VNF)\eTD
\eTR
  \eTABLE
  \stopmidaligned

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

[NTG-context] Alignment problem in a table

2017-08-22 Thread Fabrice Couvreur
Hello,
How to align the text of the seventh line to the left ?
Thanks
Fabrice

\unexpanded\def\pcent#1{\math{#1\,\%}}

\startsetups  [table:one]
   \setupTABLE[start][align={middle,lohi},width=2.2cm,offset=0.8ex]
   \setupTABLE[column][first][width=2.5cm,align={right}]
   \setupTABLE[1][1][frame=off]
   \setupTABLE[row][7][frame=off,align={left}]
\stopsetups

\starttext
  \startmidaligned
  \bTABLE[setups=table:one]
\bTR
\bTD   \eTD
\bTD 2010  \eTD
\bTD 2011  \eTD
\bTD 2012  \eTD
\bTD 2011/2010 \eTD
\bTD 2012/2011 \eTD
\eTR
\bTR
\bTD Rhône  \eTD
\bTD 61\,633\eTD
\bTD 69\,637\eTD
\bTD 77\,314\eTD
\bTD \pcent{+13,0}  \eTD
\bTD \pcent{+11,0}  \eTD
\eTR
\bTR
\bTD Seine   \eTD
\bTD 195\,467\eTD
\bTD 237\,400\eTD
\bTD 241\,004\eTD
\bTD \pcent{+21,5}   \eTD
\bTD \pcent{+5,7}\eTD
\eTR
\bTR
\bTD Nord\eTD
\bTD 50\,483 \eTD
\bTD 68\,145 \eTD
\bTD 67\,835 \eTD
\bTD \pcent{+35,0}   \eTD
\bTD \pcent{-0,5}\eTD
\eTR
\bTR
\bTD Rhin\eTD
\bTD 182\,478\eTD
\bTD 156\,818\eTD
\bTD 164\,017\eTD
\bTD \pcent{-14,1}   \eTD
\bTD \pcent{+4,6}\eTD
\eTR
\bTR
\bTH Total   \eTH
\bTH 490\,061\eTH
\bTH 532\,000\eTH
\bTH 560\,170\eTH
\bTH \pcent{+8,6}\eTH
\bTH \pcent{+5,3}\eTH
\eTR
\bTR
\bTD [nc=4] \tfx\bf Source : Voies navigables de France (VNF)\eTD
\eTR
  \eTABLE
  \stopmidaligned

 \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] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
Hi Aditya,
Thank you very much !!
I did not know that it was necessary to use \environment instead of
\component, it is probably in the documentation
Fabrice

2017-08-19 12:35 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:

> On Sat, 19 Aug 2017, Fabrice Couvreur wrote:
>
> Hello,
>> I have tried many approaches, but it still does not work. Everything is
>> passed to the dm-1.tex file (font, footer) but not the header.
>>
>
>
> \startcomponent dm-1
>>
>>  \component MyLayout
>>
>>  \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>>
>>  \input knuth
>>
>> \stopcomponent
>>
>
> Two things:
>
> 1. Use \environment MyLayout instead of \component MyLayout.
> 2. The environment should be set before \startcomponent.
>
> I am attaching a zip file with working code.
>
> 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
> 
> ___
>
___
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] About \setupheadertexts : simplify a code

2017-08-19 Thread Fabrice Couvreur
Hello,
I have tried many approaches, but it still does not work. Everything is
passed to the dm-1.tex file (font, footer) but not the header.
Have you tested the files, does it work for you ?
Sorry to insist, but I really need this way of doingThank you
Fabrice

##
MyLayout.mkvi
##

\startenvironment MyLayout

\setupbodyfont[12pt,pagella]

\definelayout
   [noheader]
   [header=2\lineheight,
headerdistance=\lineheight,
backspace=2cm,
width=middle,
topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
footer=\lineheight,
height=middle]

\setuplayout
   [header=\zeropoint,
headerdistance=\lineheight,
backspace=2cm,
width=middle,
topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
footer=\lineheight,
height=middle]

\definelayout[1][noheader]

\setuppagenumbering[alternative=doublesided,location=]

\setupfootertexts[\tfxx Page \pagenumber\,/\,\lastpage][]

\definecolor[darkgray]   [s=.25]

\setupbackgrounds
  [header]
  [text]
  [
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
  ]

\defineframed[headerframed]
 [
   frame=off, % For visualization set this to on
   height=fit,
   width=fit,
   location=bottom,
   boffset=\lineheight,
 ]

\starttexdefinition MyHeader #where #day #month #year #title #number #time

\setupheadertexts
  [{\headerframed[align=middle, foregroundstyle=bold,
foregroundcolor=red]
{#title n\high{o}\,#number}}]

\setupheadertexts
  [{\headerframed[align=flushleft, foregroundstyle=\ssx]
  {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
  [{\headerframed[align=flushright, foregroundstyle=\ssx]
  {#where \\ {#time}}}]

\stoptexdefinition

\stopenvironment


###
dm-1.tex
###

\startcomponent dm-1

  \component MyLayout

  \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}

  \input knuth

\stopcomponent

2017-08-19 1:29 GMT+02:00 Jeong Dal :

> Hi, Otared,
>
> I am also able to typeset Aditya’s example without problem, so example
> file is OK for me.
> There may be something which is not in the file.
> I am using MKIV beta 6. 21 version under OSX.
>
> This is LuaTeX, Version 1.05.0 (TeX Live 2017)
>  system commands enabled.
> open source > level 1, order 1, name '/Users/graph/ConTeXt/tex/
> texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system  >
> system  > ConTeXt  ver: 2017.06.21 23:03 MKIV beta  fmt:
> 2017.6.25  int: english/english
>
> Best regards,
>
> Dalyoung
>
>
> 2017. 8. 19. 오전 7:14, ntg-context-requ...@ntg.nl 작성:
>
> About \setupheadertexts : simplify a code
>
>
>
> 
> ___
> 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] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
I turn around !!
It does not work

2017-08-19 1:15 GMT+02:00 Rik <r...@panix.com>:

> On 2017-08-18 19:01, Fabrice Couvreur wrote:
>
> If I test this file, it does not work
>
> % macros=mkvi
>
> \startcomponent dm-1
>
>   \environment MyLayout
>
>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>
>   \dorecurse{20}{\input knuth}
>
>   \math{x^2+4x+5=0}
>
> \stopcomponent
>
> 2017-08-19 0:23 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:
>
>> On 2017-08-18 18:14, Fabrice Couvreur wrote:
>>
>> Hi Rik,
>> Can you clarify by editing my files ?
>> Fabrice
>>
>> 2017-08-18 23:57 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:
>>
>>> On 2017-08-18 17:34, Fabrice Couvreur wrote:
>>>
>>> Hello,
>>> It's ok for me if I compile the Aditya file.
>>> I have another problem with a simple structure. I created the file
>>> MyLayout.tex containing the macro and I want to call this macro in the
>>> dm1.tex file, but it does not work.
>>> Thank you
>>> Fabrice
>>>
>>> #
>>> MyLayout.tex
>>> #
>>>
>>> % macros=mkvi
>>>
>>> \startenvironment MyLayout
>>>
>>> \setuplayout
>>>[header=3\lineheight,
>>> headerdistance=\lineheight]
>>>
>>> \setupbackgrounds
>>>   [header]
>>>   [text]
>>>   [
>>> frame=off,
>>> bottomframe=on,
>>> framecolor=darkgray,
>>> rulethickness=2pt,
>>>   ]
>>>
>>> \defineframed[headerframed]
>>>  [
>>>frame=off, % For visualization set this to on
>>>height=fit,
>>>width=fit,
>>>location=bottom,
>>>boffset=\lineheight,
>>>  ]
>>>
>>> \starttexdefinition MyHeader #where #day #month #year #title #number
>>> #time
>>>
>>> \setupheadertexts
>>>   [{\headerframed[align=middle, foregroundstyle=bold,
>>> foregroundcolor=red]
>>> {#title n\high{o}\,#number}}]
>>>
>>> \setupheadertexts
>>>   [{\headerframed[align=flushleft, foregroundstyle=\ssx]
>>>   {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
>>>   [{\headerframed[align=flushright, foregroundstyle=\ssx]
>>>   {#where \\ {#time}}}]
>>>
>>> \stoptexdefinition
>>>
>>> \stopenvironment
>>>
>>> ##
>>> dm-1.tex
>>> ##
>>>
>>> \startcomponent dm-1
>>>
>>>   \environment MyLayout
>>>
>>>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>>>
>>>   \input knuth
>>>
>>> \stopcomponent
>>>
>>> 2017-08-18 18:44 GMT+02:00 Otared Kavian <ota...@gmail.com>:
>>>
>>>> Hi Aditya,
>>>>
>>>> Thanks for having sent the example file: indeed with your file I can
>>>> typeset the example and see the expected result.
>>>> I don’t know what happened when I copied and pasted the example from
>>>> the e-mail…
>>>> I think the command
>>>> % macros = mkvi
>>>> was not set correctly written at the first line, that is I had a space
>>>> before the percent sign « % ». In fact
>>>> %macros=mkvi
>>>> or
>>>> %macros = mkvi
>>>> work as well.
>>>>
>>>> By the way, wouldn’t be more user friendly, and more in the spirit of
>>>> ConTeXt, if we had a command saying
>>>> \enablemode[mkvi]
>>>> in order to tell ConTeXt that we are using %macros = mkvi ?
>>>>
>>>> Best regards: OK
>>>>
>>>> > On 18 Aug 2017, at 17:54, Aditya Mahajan <adit...@umich.edu> wrote:
>>>> >
>>>> > On Fri, 18 Aug 2017, Otared Kavian wrote:
>>>> >
>>>> >> Hi Aditya,
>>>> >>
>>>> >> I tried to typeset your example, but got an error: whether or not
>>>> the command
>>>> >>  % macros=mkvi
>>>> >> is present on the fist line, then ConTeXt complains saying that
>>>> >>  ! Illegal parameter number in definition of \MyHeader
>

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi Aditya
it does not work

2017-08-19 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> If I test this file, it does not work
>
> % macros=mkvi
>
> \startcomponent dm-1
>
>   \environment MyLayout
>
>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>
>   \dorecurse{20}{\input knuth}
>
>   \math{x^2+4x+5=0}
>
> \stopcomponent
>
> 2017-08-19 0:23 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:
>
>> On 2017-08-18 18:14, Fabrice Couvreur wrote:
>>
>> Hi Rik,
>> Can you clarify by editing my files ?
>> Fabrice
>>
>> 2017-08-18 23:57 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:
>>
>>> On 2017-08-18 17:34, Fabrice Couvreur wrote:
>>>
>>> Hello,
>>> It's ok for me if I compile the Aditya file.
>>> I have another problem with a simple structure. I created the file
>>> MyLayout.tex containing the macro and I want to call this macro in the
>>> dm1.tex file, but it does not work.
>>> Thank you
>>> Fabrice
>>>
>>> #
>>> MyLayout.tex
>>> #
>>>
>>> % macros=mkvi
>>>
>>> \startenvironment MyLayout
>>>
>>> \setuplayout
>>>[header=3\lineheight,
>>> headerdistance=\lineheight]
>>>
>>> \setupbackgrounds
>>>   [header]
>>>   [text]
>>>   [
>>> frame=off,
>>> bottomframe=on,
>>> framecolor=darkgray,
>>> rulethickness=2pt,
>>>   ]
>>>
>>> \defineframed[headerframed]
>>>  [
>>>frame=off, % For visualization set this to on
>>>height=fit,
>>>width=fit,
>>>location=bottom,
>>>boffset=\lineheight,
>>>  ]
>>>
>>> \starttexdefinition MyHeader #where #day #month #year #title #number
>>> #time
>>>
>>> \setupheadertexts
>>>   [{\headerframed[align=middle, foregroundstyle=bold,
>>> foregroundcolor=red]
>>> {#title n\high{o}\,#number}}]
>>>
>>> \setupheadertexts
>>>   [{\headerframed[align=flushleft, foregroundstyle=\ssx]
>>>   {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
>>>   [{\headerframed[align=flushright, foregroundstyle=\ssx]
>>>   {#where \\ {#time}}}]
>>>
>>> \stoptexdefinition
>>>
>>> \stopenvironment
>>>
>>> ##
>>> dm-1.tex
>>> ##
>>>
>>> \startcomponent dm-1
>>>
>>>   \environment MyLayout
>>>
>>>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>>>
>>>   \input knuth
>>>
>>> \stopcomponent
>>>
>>> 2017-08-18 18:44 GMT+02:00 Otared Kavian <ota...@gmail.com>:
>>>
>>>> Hi Aditya,
>>>>
>>>> Thanks for having sent the example file: indeed with your file I can
>>>> typeset the example and see the expected result.
>>>> I don’t know what happened when I copied and pasted the example from
>>>> the e-mail…
>>>> I think the command
>>>> % macros = mkvi
>>>> was not set correctly written at the first line, that is I had a space
>>>> before the percent sign « % ». In fact
>>>> %macros=mkvi
>>>> or
>>>> %macros = mkvi
>>>> work as well.
>>>>
>>>> By the way, wouldn’t be more user friendly, and more in the spirit of
>>>> ConTeXt, if we had a command saying
>>>> \enablemode[mkvi]
>>>> in order to tell ConTeXt that we are using %macros = mkvi ?
>>>>
>>>> Best regards: OK
>>>>
>>>> > On 18 Aug 2017, at 17:54, Aditya Mahajan <adit...@umich.edu> wrote:
>>>> >
>>>> > On Fri, 18 Aug 2017, Otared Kavian wrote:
>>>> >
>>>> >> Hi Aditya,
>>>> >>
>>>> >> I tried to typeset your example, but got an error: whether or not
>>>> the command
>>>> >>  % macros=mkvi
>>>> >> is present on the fist line, then ConTeXt complains saying that
>>>> >>  ! Illegal parameter number in definition of \MyHeader
>>>> >> and stops typesetting pointing to the command \stoptexdefinition.
>>>> >
>>

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
If I test this file, it does not work

% macros=mkvi

\startcomponent dm-1

  \environment MyLayout

  \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}

  \dorecurse{20}{\input knuth}

  \math{x^2+4x+5=0}

\stopcomponent

2017-08-19 0:23 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:

> On 2017-08-18 18:14, Fabrice Couvreur wrote:
>
> Hi Rik,
> Can you clarify by editing my files ?
> Fabrice
>
> 2017-08-18 23:57 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:
>
>> On 2017-08-18 17:34, Fabrice Couvreur wrote:
>>
>> Hello,
>> It's ok for me if I compile the Aditya file.
>> I have another problem with a simple structure. I created the file
>> MyLayout.tex containing the macro and I want to call this macro in the
>> dm1.tex file, but it does not work.
>> Thank you
>> Fabrice
>>
>> #
>> MyLayout.tex
>> #
>>
>> % macros=mkvi
>>
>> \startenvironment MyLayout
>>
>> \setuplayout
>>[header=3\lineheight,
>> headerdistance=\lineheight]
>>
>> \setupbackgrounds
>>   [header]
>>   [text]
>>   [
>> frame=off,
>> bottomframe=on,
>> framecolor=darkgray,
>> rulethickness=2pt,
>>   ]
>>
>> \defineframed[headerframed]
>>  [
>>frame=off, % For visualization set this to on
>>height=fit,
>>width=fit,
>>location=bottom,
>>boffset=\lineheight,
>>  ]
>>
>> \starttexdefinition MyHeader #where #day #month #year #title #number #time
>>
>> \setupheadertexts
>>   [{\headerframed[align=middle, foregroundstyle=bold,
>> foregroundcolor=red]
>> {#title n\high{o}\,#number}}]
>>
>> \setupheadertexts
>>   [{\headerframed[align=flushleft, foregroundstyle=\ssx]
>>   {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
>>   [{\headerframed[align=flushright, foregroundstyle=\ssx]
>>   {#where \\ {#time}}}]
>>
>> \stoptexdefinition
>>
>> \stopenvironment
>>
>> ##
>> dm-1.tex
>> ##
>>
>> \startcomponent dm-1
>>
>>   \environment MyLayout
>>
>>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>>
>>   \input knuth
>>
>> \stopcomponent
>>
>> 2017-08-18 18:44 GMT+02:00 Otared Kavian <ota...@gmail.com>:
>>
>>> Hi Aditya,
>>>
>>> Thanks for having sent the example file: indeed with your file I can
>>> typeset the example and see the expected result.
>>> I don’t know what happened when I copied and pasted the example from the
>>> e-mail…
>>> I think the command
>>> % macros = mkvi
>>> was not set correctly written at the first line, that is I had a space
>>> before the percent sign « % ». In fact
>>> %macros=mkvi
>>> or
>>> %macros = mkvi
>>> work as well.
>>>
>>> By the way, wouldn’t be more user friendly, and more in the spirit of
>>> ConTeXt, if we had a command saying
>>> \enablemode[mkvi]
>>> in order to tell ConTeXt that we are using %macros = mkvi ?
>>>
>>> Best regards: OK
>>>
>>> > On 18 Aug 2017, at 17:54, Aditya Mahajan <adit...@umich.edu> wrote:
>>> >
>>> > On Fri, 18 Aug 2017, Otared Kavian wrote:
>>> >
>>> >> Hi Aditya,
>>> >>
>>> >> I tried to typeset your example, but got an error: whether or not the
>>> command
>>> >>  % macros=mkvi
>>> >> is present on the fist line, then ConTeXt complains saying that
>>> >>  ! Illegal parameter number in definition of \MyHeader
>>> >> and stops typesetting pointing to the command \stoptexdefinition.
>>> >
>>> > I am attaching the file. It runs fine here with ConTeXt  ver: 2017.08.14
>>> 23:57.
>>> >
>>> > Aditya
>>
>>
>> I believe you need to declare the use of MKVI macros as the first thing
>> in your project file if they will be used by any components.
>>
>> --
>> Rik
>>
>>
> %macros=mkvi
> \startcomponent dm-1
> …
>
>
>
> --
> 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://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] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi Rik,
Can you clarify by editing my files ?
Fabrice

2017-08-18 23:57 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:

> On 2017-08-18 17:34, Fabrice Couvreur wrote:
>
> Hello,
> It's ok for me if I compile the Aditya file.
> I have another problem with a simple structure. I created the file
> MyLayout.tex containing the macro and I want to call this macro in the
> dm1.tex file, but it does not work.
> Thank you
> Fabrice
>
> #
> MyLayout.tex
> #
>
> % macros=mkvi
>
> \startenvironment MyLayout
>
> \setuplayout
>[header=3\lineheight,
> headerdistance=\lineheight]
>
> \setupbackgrounds
>   [header]
>   [text]
>   [
> frame=off,
> bottomframe=on,
> framecolor=darkgray,
> rulethickness=2pt,
>   ]
>
> \defineframed[headerframed]
>  [
>frame=off, % For visualization set this to on
>height=fit,
>width=fit,
>location=bottom,
>boffset=\lineheight,
>  ]
>
> \starttexdefinition MyHeader #where #day #month #year #title #number #time
>
> \setupheadertexts
>   [{\headerframed[align=middle, foregroundstyle=bold,
> foregroundcolor=red]
> {#title n\high{o}\,#number}}]
>
> \setupheadertexts
>   [{\headerframed[align=flushleft, foregroundstyle=\ssx]
>   {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
>   [{\headerframed[align=flushright, foregroundstyle=\ssx]
>   {#where \\ {#time}}}]
>
> \stoptexdefinition
>
> \stopenvironment
>
> ##
> dm-1.tex
> ##
>
> \startcomponent dm-1
>
>   \environment MyLayout
>
>   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
>
>   \input knuth
>
> \stopcomponent
>
> 2017-08-18 18:44 GMT+02:00 Otared Kavian <ota...@gmail.com>:
>
>> Hi Aditya,
>>
>> Thanks for having sent the example file: indeed with your file I can
>> typeset the example and see the expected result.
>> I don’t know what happened when I copied and pasted the example from the
>> e-mail…
>> I think the command
>> % macros = mkvi
>> was not set correctly written at the first line, that is I had a space
>> before the percent sign « % ». In fact
>> %macros=mkvi
>> or
>> %macros = mkvi
>> work as well.
>>
>> By the way, wouldn’t be more user friendly, and more in the spirit of
>> ConTeXt, if we had a command saying
>> \enablemode[mkvi]
>> in order to tell ConTeXt that we are using %macros = mkvi ?
>>
>> Best regards: OK
>>
>> > On 18 Aug 2017, at 17:54, Aditya Mahajan <adit...@umich.edu> wrote:
>> >
>> > On Fri, 18 Aug 2017, Otared Kavian wrote:
>> >
>> >> Hi Aditya,
>> >>
>> >> I tried to typeset your example, but got an error: whether or not the
>> command
>> >>  % macros=mkvi
>> >> is present on the fist line, then ConTeXt complains saying that
>> >>  ! Illegal parameter number in definition of \MyHeader
>> >> and stops typesetting pointing to the command \stoptexdefinition.
>> >
>> > I am attaching the file. It runs fine here with ConTeXt  ver: 2017.08.14
>> 23 <2017.08.14%2023>:57.
>> >
>> > Aditya
>
>
> I believe you need to declare the use of MKVI macros as the first thing in
> your project file if they will be used by any components.
>
> --
> 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://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 the Garamond font

2017-08-18 Thread Fabrice Couvreur
Hi,
@Aditya

This does not solve my problem

@Pablo

fab@debian:~$ pdffonts layout15.pdf
name type  encoding emb
sub uni object ID
 -  ---
--- --- -
AHYUQI+GaramondNo8-Regular   CID Type 0C   Identity-H   yes
yes yes 10  0


2017-08-18 20:17 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:

> On Thu, 17 Aug 2017, Fabrice Couvreur wrote:
>
> When I speak of non-readable, I mean it looks like "hieroglyphics".
>>
>
> Try
>
> mtxrun --script fonts --reload --force
>
> and then compiling again.
>
> 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/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] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hello,
It's ok for me if I compile the Aditya file.
I have another problem with a simple structure. I created the file
MyLayout.tex containing the macro and I want to call this macro in the
dm1.tex file, but it does not work.
Thank you
Fabrice

#
MyLayout.tex
#

% macros=mkvi

\startenvironment MyLayout

\setuplayout
   [header=3\lineheight,
headerdistance=\lineheight]

\setupbackgrounds
  [header]
  [text]
  [
frame=off,
bottomframe=on,
framecolor=darkgray,
rulethickness=2pt,
  ]

\defineframed[headerframed]
 [
   frame=off, % For visualization set this to on
   height=fit,
   width=fit,
   location=bottom,
   boffset=\lineheight,
 ]

\starttexdefinition MyHeader #where #day #month #year #title #number #time

\setupheadertexts
  [{\headerframed[align=middle, foregroundstyle=bold,
foregroundcolor=red]
{#title n\high{o}\,#number}}]

\setupheadertexts
  [{\headerframed[align=flushleft, foregroundstyle=\ssx]
  {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
  [{\headerframed[align=flushright, foregroundstyle=\ssx]
  {#where \\ {#time}}}]

\stoptexdefinition

\stopenvironment

##
dm-1.tex
##

\startcomponent dm-1

  \environment MyLayout

  \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}

  \input knuth

\stopcomponent

2017-08-18 18:44 GMT+02:00 Otared Kavian :

> Hi Aditya,
>
> Thanks for having sent the example file: indeed with your file I can
> typeset the example and see the expected result.
> I don’t know what happened when I copied and pasted the example from the
> e-mail…
> I think the command
> % macros = mkvi
> was not set correctly written at the first line, that is I had a space
> before the percent sign « % ». In fact
> %macros=mkvi
> or
> %macros = mkvi
> work as well.
>
> By the way, wouldn’t be more user friendly, and more in the spirit of
> ConTeXt, if we had a command saying
> \enablemode[mkvi]
> in order to tell ConTeXt that we are using %macros = mkvi ?
>
> Best regards: OK
>
> > On 18 Aug 2017, at 17:54, Aditya Mahajan  wrote:
> >
> > On Fri, 18 Aug 2017, Otared Kavian wrote:
> >
> >> Hi Aditya,
> >>
> >> I tried to typeset your example, but got an error: whether or not the
> command
> >>  % macros=mkvi
> >> is present on the fist line, then ConTeXt complains saying that
> >>  ! Illegal parameter number in definition of \MyHeader
> >> and stops typesetting pointing to the command \stoptexdefinition.
> >
> > I am attaching the file. It runs fine here with ConTeXt  ver: 2017.08.14
> 23:57.
> >
> > 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
> > 
> ___
>
> 
> ___
> 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] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi,
Thanks for your answers but I also get the same error
Fabrice

2017-08-18 15:05 GMT+02:00 Jean-Pierre Delange <adeiman...@free.fr>:

> Hi Otared and Aditya,
>
> I get the same mtx-context | fatal error: return code: 1
>
> The log shows this :
>
> tex error  > tex error on line 36 in file /home/adeimantos/TRAVAIL/
> context/Fichiers-ConTeXt_Doc-Tests/ConTEXt_TEST_Formulaire.tex: ! Illegal
> parameter number in definition of \MyHeader
>
>
>
> - Mail original -
> De: "Otared Kavian" <ota...@gmail.com>
> À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
> Envoyé: Vendredi 18 Août 2017 11:45:47
> Objet: Re: [NTG-context] About \setupheadertexts : simplify a code
>
> Hi Aditya,
>
> I tried to typeset your example, but got an error: whether or not the
> command
> % macros=mkvi
> is present on the fist line, then ConTeXt complains saying that
> ! Illegal parameter number in definition of \MyHeader
> and stops typesetting pointing to the command \stoptexdefinition.
>
> What am I missing here?
> Thanks for your attention: OK
>
> > On 18 Aug 2017, at 06:25, Aditya Mahajan <adit...@umich.edu> wrote:
> >
> > On Fri, 18 Aug 2017, Henri wrote:
> >
> >> On Thu, 2017-08-17 at 15:25 +0200, Fabrice Couvreur wrote:
> >>> Hello,
> >>> To get the alignment, I had to create three \vbox. Can we simplify
> this code a bit ?
> >>> Thank you
> >>> Fabrice
> >>
> >> Use the optional argument of the new framed you defined.
> >
> > In addition to that, you can also simplify other things as well. This is
> how I would have done it:
> >
> > % macros=mkvi
> > \showframe
> >
> > \setuplayout
> >   [header=3\lineheight,
> >headerdistance=\lineheight]
> >
> > \setupbackgrounds
> >  [header]
> >  [text]
> >  [
> >frame=off,
> >bottomframe=on,
> >framecolor=darkgray,
> >rulethickness=2pt,
> >  ]
> >
> > \defineframed[headerframed]
> > [
> >   frame=off, % For visualization set this to on
> >   height=fit,
> >   width=fit,
> >   location=bottom,
> >   boffset=\lineheight,
> > ]
> >
> > \starttexdefinition MyHeader #where #day #month #year #title #number
> #time
> >
> >\setupheadertexts
> >  [{\headerframed[align=middle, foregroundstyle=bold,
> foregroundcolor=red]
> >{#title n\high{o}\,#number}}]
> >
> >\setupheadertexts
> >  [{\headerframed[align=flushleft, foregroundstyle=\ssx]
> >  {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
> >  [{\headerframed[align=flushright, foregroundstyle=\ssx]
> >  {#where \\ {#time}}}]
> >
> > \stoptexdefinition
> >
> > \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
> >
> > \starttext
> > \input knuth
> > \stoptext
> >
> > An added benefit is that you get correct interlinespace for the left and
> right header.
> >
> > 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
> > 
> ___
>
> 
> ___
> 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] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi,
It's okay for me
Fabrice

2017-08-18 15:05 GMT+02:00 Jean-Pierre Delange <adeiman...@free.fr>:

> Hi Otared and Aditya,
>
> I get the same mtx-context | fatal error: return code: 1
>
> The log shows this :
>
> tex error  > tex error on line 36 in file /home/adeimantos/TRAVAIL/
> context/Fichiers-ConTeXt_Doc-Tests/ConTEXt_TEST_Formulaire.tex: ! Illegal
> parameter number in definition of \MyHeader
>
>
>
> - Mail original -
> De: "Otared Kavian" <ota...@gmail.com>
> À: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
> Envoyé: Vendredi 18 Août 2017 11:45:47
> Objet: Re: [NTG-context] About \setupheadertexts : simplify a code
>
> Hi Aditya,
>
> I tried to typeset your example, but got an error: whether or not the
> command
> % macros=mkvi
> is present on the fist line, then ConTeXt complains saying that
> ! Illegal parameter number in definition of \MyHeader
> and stops typesetting pointing to the command \stoptexdefinition.
>
> What am I missing here?
> Thanks for your attention: OK
>
> > On 18 Aug 2017, at 06:25, Aditya Mahajan <adit...@umich.edu> wrote:
> >
> > On Fri, 18 Aug 2017, Henri wrote:
> >
> >> On Thu, 2017-08-17 at 15:25 +0200, Fabrice Couvreur wrote:
> >>> Hello,
> >>> To get the alignment, I had to create three \vbox. Can we simplify
> this code a bit ?
> >>> Thank you
> >>> Fabrice
> >>
> >> Use the optional argument of the new framed you defined.
> >
> > In addition to that, you can also simplify other things as well. This is
> how I would have done it:
> >
> > % macros=mkvi
> > \showframe
> >
> > \setuplayout
> >   [header=3\lineheight,
> >headerdistance=\lineheight]
> >
> > \setupbackgrounds
> >  [header]
> >  [text]
> >  [
> >frame=off,
> >bottomframe=on,
> >framecolor=darkgray,
> >rulethickness=2pt,
> >  ]
> >
> > \defineframed[headerframed]
> > [
> >   frame=off, % For visualization set this to on
> >   height=fit,
> >   width=fit,
> >   location=bottom,
> >   boffset=\lineheight,
> > ]
> >
> > \starttexdefinition MyHeader #where #day #month #year #title #number
> #time
> >
> >\setupheadertexts
> >  [{\headerframed[align=middle, foregroundstyle=bold,
> foregroundcolor=red]
> >{#title n\high{o}\,#number}}]
> >
> >\setupheadertexts
> >  [{\headerframed[align=flushleft, foregroundstyle=\ssx]
> >  {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
> >  [{\headerframed[align=flushright, foregroundstyle=\ssx]
> >  {#where \\ {#time}}}]
> >
> > \stoptexdefinition
> >
> > \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
> >
> > \starttext
> > \input knuth
> > \stoptext
> >
> > An added benefit is that you get correct interlinespace for the left and
> right header.
> >
> > 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
> > 
> ___
>
> 
> ___
> 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] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi,
@Aditya and Henri Thank you for your suggestions.
@Otared Maybe remove \showframe ?
Fabrice

2017-08-18 11:45 GMT+02:00 Otared Kavian <ota...@gmail.com>:

> Hi Aditya,
>
> I tried to typeset your example, but got an error: whether or not the
> command
> % macros=mkvi
> is present on the fist line, then ConTeXt complains saying that
> ! Illegal parameter number in definition of \MyHeader
> and stops typesetting pointing to the command \stoptexdefinition.
>
> What am I missing here?
> Thanks for your attention: OK
>
> > On 18 Aug 2017, at 06:25, Aditya Mahajan <adit...@umich.edu> wrote:
> >
> > On Fri, 18 Aug 2017, Henri wrote:
> >
> >> On Thu, 2017-08-17 at 15:25 +0200, Fabrice Couvreur wrote:
> >>> Hello,
> >>> To get the alignment, I had to create three \vbox. Can we simplify
> this code a bit ?
> >>> Thank you
> >>> Fabrice
> >>
> >> Use the optional argument of the new framed you defined.
> >
> > In addition to that, you can also simplify other things as well. This is
> how I would have done it:
> >
> > % macros=mkvi
> > \showframe
> >
> > \setuplayout
> >   [header=3\lineheight,
> >headerdistance=\lineheight]
> >
> > \setupbackgrounds
> >  [header]
> >  [text]
> >  [
> >frame=off,
> >bottomframe=on,
> >framecolor=darkgray,
> >rulethickness=2pt,
> >  ]
> >
> > \defineframed[headerframed]
> > [
> >   frame=off, % For visualization set this to on
> >   height=fit,
> >   width=fit,
> >   location=bottom,
> >   boffset=\lineheight,
> > ]
> >
> > \starttexdefinition MyHeader #where #day #month #year #title #number
> #time
> >
> >\setupheadertexts
> >  [{\headerframed[align=middle, foregroundstyle=bold,
> foregroundcolor=red]
> >{#title n\high{o}\,#number}}]
> >
> >\setupheadertexts
> >  [{\headerframed[align=flushleft, foregroundstyle=\ssx]
> >  {Lycée JANSON DE SAILLY \\ \date[d=#day,m=#month,y=#year]}}]
> >  [{\headerframed[align=flushright, foregroundstyle=\ssx]
> >  {#where \\ {#time}}}]
> >
> > \stoptexdefinition
> >
> > \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}
> >
> > \starttext
> > \input knuth
> > \stoptext
> >
> > An added benefit is that you get correct interlinespace for the left and
> right header.
> >
> > 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
> > 
> ___
>
> 
> ___
> 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 the Garamond font

2017-08-17 Thread Fabrice Couvreur
Hi Pablo,
When I speak of non-readable, I mean it looks like "hieroglyphics".


fab@debian:~$ mtxrun --script fonts  --list --pattern=garamond --all

resolvers   | trees | analyzing 'home:texmf'
identifierfamilyname
fontname  filename
subfont   instances

cormorantgaramondbold cormorantgaramond
cormorantgaramondbold CormorantGaramond-Bold.otf
cormorantgaramondbolditalic   cormorantgaramond
cormorantgaramondbolditalic   CormorantGaramond-BoldItalic.otf
cormorantgaramonddemi cormorantgaramond
cormorantgaramondsemibold CormorantGaramond-SemiBold.otf
cormorantgaramonditalic   cormorantgaramond
cormorantgaramonditalic   CormorantGaramond-RegularItalic.otf
cormorantgaramondlightcormorantgaramond
cormorantgaramondlightCormorantGaramond-Light.otf
cormorantgaramondlightitalic  cormorantgaramond
cormorantgaramondlightitalic  CormorantGaramond-LightItalic.otf
cormorantgaramondmedium   cormorantgaramond
cormorantgaramondmedium   CormorantGaramond-Medium.otf
cormorantgaramondmediumitalic cormorantgaramond
cormorantgaramondmediumitalic CormorantGaramond-MediumItalic.otf
cormorantgaramondnormal   cormorantgaramond
cormorantgaramondregular  CormorantGaramond-Regular.otf
cormorantgaramondregular  cormorantgaramond
cormorantgaramondregular  CormorantGaramond-Regular.otf
cormorantgaramondsemibold cormorantgaramond
cormorantgaramondsemibold CormorantGaramond-SemiBold.otf
cormorantgaramondsemibolditalic   cormorantgaramond
cormorantgaramondsemibolditalic   CormorantGaramond-SemiBoldItalic.otf
ebgaramond12italicebgaramond
ebgaramond12italicEBGaramond12-Italic.otf
ebgaramond12regular   ebgaramond
ebgaramond12regular   EBGaramond12-Regular.otf
ebgaramondinitialsebgaramondinitials
ebgaramondinitialsEBGaramondInitials.otf
ebgaramondinitialsnormal  ebgaramondinitials
ebgaramondinitialsEBGaramondInitials.otf
ebgaramondinitialsregular ebgaramondinitials
ebgaramondinitialsEBGaramondInitials.otf
ebgaramonditalic  ebgaramond
ebgaramond12italicEBGaramond12-Italic.otf
ebgaramondnormal  ebgaramond
ebgaramond12italicEBGaramond12-Italic.otf
ebgaramondregular ebgaramond
ebgaramond12regular   EBGaramond12-Regular.otf
garamondno8itagaramondno8
garamondno8itaugmri8a.afm
garamondno8italic garamondno8
garamondno8itaugmri8a.afm
garamondno8medgaramondno8
garamondno8medugmm8a.afm
garamondno8medita garamondno8
garamondno8medita ugmmi8a.afm
garamondno8medium garamondno8
garamondno8medugmm8a.afm
garamondno8mediumitalic   garamondno8
garamondno8medita ugmmi8a.afm
garamondno8normal garamondno8
garamondno8regugmr8a.afm
garamondno8reggaramondno8
garamondno8regugmr8a.afm
garamondno8regulargaramondno8
garamondno8regugmr8a.afm
vngaramondno8ita  vngaramondno8
vngaramondno8ita  ugmri8v.afm
vngaramondno8italic   vngaramondno8
vngaramondno8ita  ugmri8v.afm
vngaramondno8med  vngaramondno8
vngaramondno8med  ugmm8v.afm
vngaramondno8medita   vngaramondno8
vngaramondno8medita   ugmmi8v.afm
vngaramondno8medium   vngaramondno8
vngaramondno8med  ugmm8v.afm
vngaramondno8mediumitalic vngaramondno8
vngaramondno8medita   ugmmi8v.afm
vngaramondno8normal   vngaramondno8
vngaramondno8reg  ugmr8v.afm
vngaramondno8reg  vngaramondno8
vngaramondno8reg  ugmr8v.afm
vngaramondno8regular  vngaramondno8
vngaramondno8reg  ugmr8v.afm
fab@debian:~$


Thanks
Fabrice


2017-08-17 21:03 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/17/2017 08:28 PM, Fabrice Couvreur wrote:
> > Hello,
> > I compiled the following document with Context Standalone and viewed the
> > file with Evince, it is not readable !
>
> Hi Fabrice,
>
> I copied the fonts from http://wiki.contextgarden.net/URW_Garamond to
> tex/texmf-fonts/ and I got a PDF document with the font embedded (output
> attached).
>
> Before doing that, I couldn’t compile your source.
>
> What do you mean by a document not being readable? Is it properly
> displayed with xpdf or MuPDF?
>
> Does pdffonts list any font in the document? Does the log file reveal
&

[NTG-context] Strange behavior with the Garamond font

2017-08-17 Thread Fabrice Couvreur
Hello,
I compiled the following document with Context Standalone and viewed the
file with Evince, it is not readable !
Thanks
Fabrice


\loadtypescriptfile[mathdesign]
\setupbodyfont[garamond]
\starttext
\input knuth
\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
___

[NTG-context] Strange behavior with enumeration

2017-08-17 Thread Fabrice Couvreur
Hi,
Level two items are not on the same baseline.
Thank you
Fabrice

\starttext
\startitemize[n]
\item 15\,\% d'un stock de 12\,000 jouets sont des jouets
\quotation{1\high{\tfxx er} âge}.

  Le nombre de jouets \quotation{1\high{\tfxx er} âge} est :
  \startitemize[columns,a,three]
  \item \math{\dfrac{15}{100}\times 12\,000.}
  \item \math{1\,500.}
  \item \math{1\,800.}
  \stopitemize
\stopitemize
\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
___

[NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Fabrice Couvreur
Hello,
To get the alignment, I had to create three \vbox. Can we simplify this
code a bit ?
Thank you
Fabrice

% macros=mkvi
\setuplayout
   [header=3\lineheight,
headerdistance=\lineheight]

\setupbackgrounds[header][text]
 [frame=off,
  bottomframe=on,
  framecolor=darkgray,
  rulethickness=2pt]

\defineframed[headerframedleft]
 [frame=off,
  align=left,
  width=fit,height=\headerheight]

\defineframed[headerframedright]
 [frame=off,
  align=right,
  width=fit,height=\headerheight]

\defineframed[headerframedmiddle]
 [frame=off,
  align=middle,
  width=fit,height=\headerheight]

\starttexdefinition MyHeader #where #day #month #year #title #number #time

\setupheadertexts
   [\headerframedmiddle{\\ \ss\sc\bf\red #title n\high{o}\,#number \\ }]

\setupheadertexts
   [\headerframedright{\tfx \ss Lycée JANSON DE SAILLY \\
\date[d=#day,m=#month,y=#year]}]
   [\headerframedleft{\tfx\ss #where \\ {#time}}]

\stoptexdefinition

\MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}

\starttext
\input knuth
\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] About formatting the "Fonts out of ConTEXT" manual

2017-08-16 Thread Fabrice Couvreur
Hi Henri,
Thanks for the information.
Fabrice


2017-08-16 2:16 GMT+02:00 Henri <henrime...@gmail.com>:

> On Tue, 2017-08-15 at 12:35 +0200, Fabrice Couvreur wrote:
> > Hi Hans,
> > I love the style used for this manual. I tried to do the same thing, but
> it's a long way off !
> > I tried to find the source code to inspire me :-)
>
> The source for the fonts manual is distributed with minimals.  It can be
> found in
>
> tex/texmf-context/doc/context/sources/general/fonts/
>
> or online on GitHub
>
> https://github.com/contextgarden/context-mirror/
> tree/beta/doc/context/sources/general/fonts
>
> > I did this :
> >
> > \startuniqueMPgraphic{titled}
> >   path p ;
> >   p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
> >   pickup pencircle scaled 1mm ;
> >   linecap := squared ;
> >   drawoptions(withcolor \MPcolor{darkred}) ;
> >   draw ulcorner p -- urcorner p ;
> >   setbounds currentpicture to p ;
> > \stopuniqueMPgraphic
> >
> > \defineoverlay[titled][\uniqueMPgraphic{titled}]
> >
> > \startuseMPgraphic{triangledone}
> > fill lltriangle scaled 4cm withcolor darkred;
> > \stopuseMPgraphic
> >
> > \defineoverlay[triangledone][\useMPgraphic{triangledone}]
> >
> > \def\Triangledone#1%
> >   {\framed
> >   [background=triangledone,frame=off,offset=overlay]
> >   {\tfb\color[white]{\bf#1}}}
> >
> > \startuseMPgraphic{triangledtwo}
> > fill lrtriangle scaled 4cm withcolor darkred;
> > \stopuseMPgraphic
> >
> > \defineoverlay[triangledtwo][\useMPgraphic{triangledtwo}]
> >
> > \def\Triangledtwo#1%
> >   {\framed
> >   [background=triangledtwo,frame=off,offset=overlay]
> >   {\tfb\color[white]{\bf#1}}}
> >
> > \setupheadertexts[margin][][\Triangledone\pagenumber][\
> Triangledtwo\pagenumber][]
> >
> > \setupfootertexts[margin][]
> >  [{\framed
> >  [background=titled,frame=off,offset=8pt,align=left,
> >   width=\dimexpr\leftmarginwidth-\
> leftedgewidth\relax]
> >   {\darkred\getmarking[section]}}]
> >
> > \setuppagenumbering[alternative=doublesided,location=]
> >
> > \setuphead
> >[section]
> >[color=darkred]
> >
> > \starttext
> >
> > \startchapter[title={First Chapter}]
> > \startsection[title={First section}]
> > \dorecurse{5}{\input knuth}
> > \stoptext
> >
> > Thank you
> > 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
> 
> ___
>
___
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] About formatting the "Fonts out of ConTEXT" manual

2017-08-15 Thread Fabrice Couvreur
Hi Hans,
I love the style used for this manual. I tried to do the same thing, but
it's a long way off !
I tried to find the source code to inspire me :-)
I did this :

\startuniqueMPgraphic{titled}
  path p ;
  p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
  pickup pencircle scaled 1mm ;
  linecap := squared ;
  drawoptions(withcolor \MPcolor{darkred}) ;
  draw ulcorner p -- urcorner p ;
  setbounds currentpicture to p ;
\stopuniqueMPgraphic

\defineoverlay[titled][\uniqueMPgraphic{titled}]

\startuseMPgraphic{triangledone}
fill lltriangle scaled 4cm withcolor darkred;
\stopuseMPgraphic

\defineoverlay[triangledone][\useMPgraphic{triangledone}]

\def\Triangledone#1%
  {\framed
  [background=triangledone,frame=off,offset=overlay]
  {\tfb\color[white]{\bf#1}}}

\startuseMPgraphic{triangledtwo}
fill lrtriangle scaled 4cm withcolor darkred;
\stopuseMPgraphic

\defineoverlay[triangledtwo][\useMPgraphic{triangledtwo}]

\def\Triangledtwo#1%
  {\framed
  [background=triangledtwo,frame=off,offset=overlay]
  {\tfb\color[white]{\bf#1}}}

\setupheadertexts[margin][][\Triangledone\pagenumber][\Triangledtwo\pagenumber][]

\setupfootertexts[margin][]
 [{\framed
 [background=titled,frame=off,offset=8pt,align=left,
  width=\dimexpr\leftmarginwidth-\leftedgewidth\relax]
  {\darkred\getmarking[section]}}]

\setuppagenumbering[alternative=doublesided,location=]

\setuphead
   [section]
   [color=darkred]

\starttext

\startchapter[title={First Chapter}]
\startsection[title={First section}]
\dorecurse{5}{\input knuth}
\stoptext

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

Re: [NTG-context] STIX Two Text and Math

2017-08-12 Thread Fabrice Couvreur
Hi Hans,
I downloaded the fonts and it works perfectly.
What do you think are the finest fonts for writing a book with mathematics ?
Are Cambria fonts free ? If so where can they be downloaded ?
Thank you
Fabrice

2017-08-12 13:01 GMT+02:00 Hans Hagen <pra...@wxs.nl>:

> On 8/12/2017 11:49 AM, Fabrice Couvreur wrote:
>
> Has anyone ever used these fonts ?
>>
>
> not me
>
> If so, do you need to write a script to use them ?
>>
>
> no, you can say:
>
> \setupbodyfont[stixtwo]
>
> 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/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
___

[NTG-context] STIX Two Text and Math

2017-08-12 Thread Fabrice Couvreur
Hi,
Hello,
Has anyone ever used these fonts ?
If so, do you need to write a script to use them ?
Thank you
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
___

Re: [NTG-context] How can I add “page # of ##” on my document ?

2017-08-11 Thread Fabrice Couvreur
Hi Peter and Aditya,

"You run the command "ConTeXt Full" instead of "ConTeXt"

It works !
Thank you

Fabrice

2017-08-11 9:30 GMT+02:00 Peter Münster :

> On Thu, Aug 10 2017, Aditya Mahajan wrote:
>
> > You need to remove the --once call from the context call. (Not sure
> > how to do this in Emacs)
>
> You run the command "ConTeXt Full" instead of "ConTeXt".
>
> --
>Peter
> 
> ___
> 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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi,
@Aditya "You need multiple runs to resolve \lastpage"
What you propose does not solve the problem

@Pablo Very nice job !
Thanks
Merci

2017-08-10 18:54 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/10/2017 12:35 PM, Fabrice Couvreur wrote:
> > [...]
> > How to make the last page number interactive ?
>
> Hi Fabrice,
>
> I guess this might be what you want:
>
> \showframe
> \setupinteraction
> [state=start,
>  style=,
>  color=,
>  contrastcolor=,
>  focus=standard]
> \enabledirectives[references.border=darkred]
> \setuppagenumbering[alternative=]
> \setupfootertexts[{Page\,\pagenumber\,sur\,\at[final page]}]
> \starttext
> \dorecurse{50}{a\page}
> \reference[final page]{final}
> \stoptext
>
> 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
> 
> ___
>
___
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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi Otared,
This works with Texlive context but this does not work with Standalone
context that I use with Emacs.
How to make the last page number interactive ?
Thank you
Fabrice

2017-08-10 11:47 GMT+02:00 Otared Kavian <ota...@gmail.com>:

> I forgot to add that you can also use
>
> \setupfootertexts[Page \pagenumber\ sur\ \totalnumberofpages][]
>
> Best regards: OK
>
>
> On 10 Aug 2017, at 11:43, Otared Kavian <ota...@gmail.com> wrote:
>
> Hi Fabrice,
>
> The following gives the desired result, as Hans pointed ou:
>
> \setuppagenumbering[alternative=]
>
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>
> \starttext
>
> \dorecurse{5}{\input knuth.tex \page}
>
> \stoptext
>
> Best regards: OK
>
> On 10 Aug 2017, at 11:28, Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> wrote:
>
> Hi Hans and Pablo,
>
> \setuppagenumbering[alternative=]
>
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>
> The behavior is not that expected:
>
> Page 1 sur 0
> Page 2 sur 0
> Page 3 sur 0 
>
> Thanks
> Fabrice
>
> 2017-08-10 9:57 GMT+02:00 Hans Hagen <pra...@wxs.nl>:
>
>> On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
>>
>>> Hello,
>>> With Latex, I did this :
>>>
>>> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue
>>> ,citecolor=blue,urlcolor=blue]{hyperref}
>>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage
>>>
>>>
>>> With Context, I tried this unsuccessfully ;
>>>
>>> \setupinteraction
>>>  [state=start,
>>>   style=,
>>>   color=\darkred,
>>>   contrastcolor=]
>>>
>>>   \setuppagenumbering
>>>  [alternative=,
>>>   location={footer,right},
>>>   command={Page\,\pagenumber\,sur\,\lastpage } ]
>>>
>> \setuppagenumbering[alternative=]
>>
>> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>>
>> -
>>   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
> 
> ___
>
>
>
>
> 
> ___
> 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] How can I add “page # of ##” on my document ?

2017-08-10 Thread Fabrice Couvreur
Hi Hans and Pablo,

\setuppagenumbering[alternative=]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

The behavior is not that expected:

Page 1 sur 0
Page 2 sur 0
Page 3 sur 0 

Thanks
Fabrice

2017-08-10 9:57 GMT+02:00 Hans Hagen <pra...@wxs.nl>:

> On 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
>
>> Hello,
>> With Latex, I did this :
>>
>> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue
>> ,citecolor=blue,urlcolor=blue]{hyperref}
>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage
>>
>>
>> With Context, I tried this unsuccessfully ;
>>
>> \setupinteraction
>>  [state=start,
>>   style=,
>>   color=\darkred,
>>   contrastcolor=]
>>
>>   \setuppagenumbering
>>  [alternative=,
>>   location={footer,right},
>>   command={Page\,\pagenumber\,sur\,\lastpage } ]
>>
> \setuppagenumbering[alternative=]
>
> \setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
>
> -
>   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
___

[NTG-context] How can I add “page # of ##” on my document ?

2017-08-09 Thread Fabrice Couvreur
Hello,
With Latex, I did this :

\usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue,citecolor=blue,urlcolor=blue]{hyperref}
\rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage


With Context, I tried this unsuccessfully ;

\setupinteraction
[state=start,
 style=,
 color=\darkred,
 contrastcolor=]

 \setuppagenumbering
[alternative=,
 location={footer,right},
 command={Page\,\pagenumber\,sur\,\lastpage } ]


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

Re: [NTG-context] Space from bottom footer to bottom rim of paper

2017-08-09 Thread Fabrice Couvreur
Hi Pablo
Thank you very much. By combining the two codes, you get what I want.
Fabrice


"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

\switchtobodyfont[11pt]

\definelayout
  [noheader]
  [header=26pt,
   headerdistance=25pt,
   backspace=2cm,
   width=middle,
   topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
   footer=16pt,
   height=middle]

\setuplayout
  [header=\zeropoint,
   headerdistance=25pt,
   backspace=2cm,
   width=middle,
   topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
   footer=16pt,
   height=middle]

\definelayout[1][noheader]

\setuppagenumbering
[alternative=,
 location={footer,right]

\setupbackgrounds[header][text]
 [frame=off,
  bottomframe=on,
  framecolor=gray,
  rulethickness=2pt]

\defineframed[headerframed]
 [frame=off,
  location=depth,
  bottomoffset=\lineheight,
  align=middle,
  width=fit]

\setupheadertexts[\headerframed{\ss\sc\bf\red Contrôle n\high{o}\,1 \\
}]

\setupheadertexts
[\headerframed{\tfx\ss Lycée JANSON DE SAILLY\\ 31 juillet
2017}]
[\headerframed{\tfx\ss T\high{le} ES 2 \\ Durée 1 heure 30}]

\starttext
\dorecurse{10}{\input knuth}
\stoptext

2017-08-09 17:37 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/09/2017 05:05 PM, Fabrice Couvreur wrote:
> > I want topspace=bottomspace=2cm
> > It works for topspace but not for bottomspace
> > How to do ?
>
> Hi Fabrice,
>
> is this what you intend?
>
> \showframe
> \setuplayout
>   [header=26pt,
>headerdistance=25pt,
>backspace=2cm,
>width=middle,
>topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
>footer=16pt,
>height=middle]
>%~ bottomspace=\dimexpr 2cm-\footerheight-\footerdistance\relax]
> \starttext
> \ConTeXt.
> \stoptext
>
> 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
> 
> ___
___
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] Space from bottom footer to bottom rim of paper

2017-08-09 Thread Fabrice Couvreur
I want topspace=bottomspace=2cm
It works for topspace but not for bottomspace
How to do ?
Thanks
Fabrice

\setuplayout
  [header=26pt,
   headerdistance=25pt,
   backspace=2cm,
   width=middle,
   topspace=\dimexpr 2cm-\headerheight-\headerdistance\relax,
   footer=16pt,
   bottomspace=\dimexpr 2cm-\footerheight-\footerdistance\relax]
___
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] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
HI Pablo,
This works perfectly
Thank you
Fabrice

2017-08-09 16:23 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 08/09/2017 02:59 PM, Fabrice Couvreur wrote:
> > Hello,
> > How do I make the header appear on the first page only ?
> > Thank you
> > Fabrice
>
> Hello Fabrice,
>
> a workaround would be to suppress header dimension for all pages other
> than the first one.
>
> \definelayout
>   [noheader]
>   [header=2\lineheight,
>headerdistance=\lineheight,
>backspace=2cm,
>width=middle,
>topspace=\lineheight]
>
> \setuplayout
>   [header=\zeropoint,
>headerdistance=3\lineheight,
>backspace=2cm,
>width=middle,
>topspace=2cm]
>
> \definelayout[1][noheader]
>
> \setupbackgrounds[header,state=start][text][frame=off,
> bottomframe=on,framecolor=gray,rulethickness=2pt]
>
> \setupheader[style=bold]
>
> \setuppagenumbering
> [alternative=,
> location=footer]
>
> \defineframed[headerframed]
>  [frame=off,
>   location=depth,
>   bottomoffset=\lineheight,
>   align=middle,
>   width=fit]
>
> \setupheadertexts[\headerframed{\ss \sc \bf
> \red Contrôle n\high{o}\,1 \\ }]
> \setupheadertexts[\headerframed{\tfx \ss Lycée JANSON DE SAILLY\\
> 31 juillet 2017}]
> [\headerframed{\tfx \ss T\high{le} ES 2 \\ Durée 1 heure 30}]
>
> \starttext
> \dorecurse{6}{\input knuth}
> \stoptext
>
> 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
> 
> ___
___
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] About \setupbackgrounds (again)

2017-08-09 Thread Fabrice Couvreur
Hello,
How do I make the header appear on the first page only ?
Thank you
Fabrice

\setuplayout
  [header=2\lineheight,
   headerdistance=\lineheight,
   backspace=2cm,
   width=middle,
   topspace=\lineheight]

\setupbackgrounds[header,state=start][text][frame=off,
bottomframe=on,framecolor=gray,rulethickness=2pt]


\setupheader[style=bold]

\setuppagenumbering
[alternative=,
location=footer]


\defineframed[headerframed]
 [frame=off,
  location=depth,
  bottomoffset=\lineheight,
  align=middle,
  width=fit]

\setupheadertexts[\headerframed{\ss \sc \bf \red Contrôle n\high{o}\,1 \\ }]
\setupheadertexts[\headerframed{\tfx \ss Lycée JANSON DE SAILLY\\ 31
juillet 2017}][\headerframed{\tfx \ss T\high{le} ES 2 \\ Durée 1 heure 30}]

\starttext
\dorecurse{6}{\input knuth}
\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] About \setupbackgrounds

2017-08-02 Thread Fabrice Couvreur
Hi Aditya,

\defineframed
[headerframed]
[
  ...,
  location=depth,
  ...,
]
Fabrice

2017-08-01 12:21 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi Aditya,
> Neither command responds to what I'm trying to do. I will try to be
> clearer. If we look at the letter J, it touches the bottom line of the
> frame. I would like the space to be bigger between the header and the
> bottom line.
> Thank you
> Fabrice
>
> 2017-07-31 21:30 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:
>
>> On Mon, 31 Jul 2017, Fabrice Couvreur wrote:
>>
>> https://tex.stackexchange.com/questions/84425/fancyhdr-equiv
>>> alent-in-context
>>>
>>> Hello,
>>> I considered the solution proposed by Aditya. How to have a larger space
>>> between the title and the bottomframe ?
>>>
>>
>> What do you mean by "title"? If you mean the space between the bottom
>> rule of the header and where the text starts in the page, you can change
>> that using
>>
>> \setuplayout
>>[
>>  ...,
>>  headerdistance=...,
>>  
>>]
>>
>> If you mean the space between the header and the bottom frame of the
>> header, you can play around with
>>
>> \defineframed
>> [headerframed]
>> [
>>   ...,
>>   bottomoffset=...,
>>   ...,
>> ]
>>
>>
>> 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/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] About \setupbackgrounds

2017-08-01 Thread Fabrice Couvreur
Hi Aditya,
Neither command responds to what I'm trying to do. I will try to be clearer. If
we look at the letter J, it touches the bottom line of the frame. I would
like the space to be bigger between the header and the bottom line.
Thank you
Fabrice

2017-07-31 21:30 GMT+02:00 Aditya Mahajan <adit...@umich.edu>:

> On Mon, 31 Jul 2017, Fabrice Couvreur wrote:
>
> https://tex.stackexchange.com/questions/84425/fancyhdr-equiv
>> alent-in-context
>>
>> Hello,
>> I considered the solution proposed by Aditya. How to have a larger space
>> between the title and the bottomframe ?
>>
>
> What do you mean by "title"? If you mean the space between the bottom rule
> of the header and where the text starts in the page, you can change that
> using
>
> \setuplayout
>[
>  ...,
>  headerdistance=...,
>  
>]
>
> If you mean the space between the header and the bottom frame of the
> header, you can play around with
>
> \defineframed
> [headerframed]
> [
>   ...,
>   bottomoffset=...,
>   ...,
> ]
>
>
> 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/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
___

[NTG-context] About \setupbackgrounds

2017-07-31 Thread Fabrice Couvreur
https://tex.stackexchange.com/questions/84425/fancyhdr-equivalent-in-context

Hello,
I considered the solution proposed by Aditya. How to have a larger space
between the title and the bottomframe ?
Thank you
Fabrice

\setupbodyfont[11pt]
\setupcolors[state=start]
\setuplayout
  [header=2\lineheight,
   headerdistance=\lineheight,
   backspace=2cm,
   width=middle,
   topspace=2cm]

\setupbackgrounds[header][text][frame=off, bottomframe=on]


\setupheader[style=bold]


\defineframed[headerframed]
 [frame=off,
  align=middle,
  width=fit]

\setupheadertexts[\headerframed{\red contrôle n\high{o}1 \\ }]
\setupheadertexts[\headerframed{Lycée JANSON DE SAILLY\\ 31 juillet
2017}][\headerframed{T ES 2 \\ Durée 1 heure 30}]

\starttext
\input knuth
\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] About Layout

2017-07-31 Thread Fabrice Couvreur
Hi Pablo,
Thank you for your answer.
You're right about the geometry package, here are the dimensions I get:


1 one inch + \ hoffset
2 \ oddsidemargin = -15pt
3 \ headheight = 26pt
4 \ textheight = 731pt
5 \ marginparsep = 10pt
6 \ footskip = 18pt
7 \ hoffset = 0pt
8 \ paperwidth = 597pt
9 one inch + \ voffset
10 \ topmargin = -52pt
11 \ headsep = 25pt
12 \ textwidth = 483pt
13 \ marginparwidth = 50pt
14 \ marginparpush = 5pt (not shown)
15 \ voffset = 0pt
16 \ paperheight = 845pt

Fabrice

2017-07-29 13:03 GMT+02:00 Pablo Rodriguez <oi...@gmx.es>:

> On 07/29/2017 12:07 PM, Fabrice Couvreur wrote:
> > Hello,
> > With Latex, for my layout, I used this :
> >
> > \documentclass[a4paper,11pt]{article}
> > \usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}
> >
> > With Context, I did this :
> >
> > \setuppapersize[A4][A4]
> > \setuplayout
> >   [ topspace=2cm,
> > header=0pt,
> > footer=1.5cm,
> > bottomspace=0pt,
> > backspace=2cm,
> > cutspace=0pt,
> > width=middle]
> >
> > Is it correct ?
> Hi Fabrice,
>
> the \setuplayout values are fine. Do they contain the same dimensions as
> in the LaTeX geometry options? Let me see ;-).
>
> You remove header in ConTeXt, but it seems not to be removed in LaTeX.
> This may make a different point to start placing text in the page (if
> you have header space defined in LaTeX [whether you use it or not]).
>
> You set the footer in ConTeXt. I don’t remember where LaTeX places the
> page number and how LaTeX handles the footer. You might end having a
> different point to end placing text in the page.
>
> Paper size in ConTeXt defaults to A4, so you may remove that line.
>
> BTW, you forgot to mention \setupbodyfont[11pt]. Body font size defaults
> to 12pt in ConTeXt.
>
> A way to check this is the following sample:
>
> \setuplayout
> [topspace=2cm,
>  height=middle,
>  header=0pt,
>  footer=1.5cm,
>  backspace=2cm,
>  width=middle]
> \showframe
> \starttext
> \showlayout
> \input zapf
> \stoptext
>
> You don’t have to set bottomspace or cutspace with height or width set
> to middle.
>
> 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
> 
> ___
___
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] About Layout

2017-07-29 Thread Fabrice Couvreur
Hello,
With Latex, for my layout, I used this :

\documentclass[a4paper,11pt]{article}
\usepackage[left=2cm,right=2cm,top=2cm,bottom=2cm]{geometry}

With Context, I did this :

\setuppapersize[A4][A4]
\setuplayout
  [ topspace=2cm,
header=0pt,
footer=1.5cm,
bottomspace=0pt,
backspace=2cm,
cutspace=0pt,
width=middle]


Is it correct ?
Thank you
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
___

Re: [NTG-context] Package esvect and Context

2017-05-27 Thread Fabrice Couvreur
Thanks Hans
Fabrice

2017-05-27 0:09 GMT+02:00 Hans Hagen <pra...@wxs.nl>:

> On 5/26/2017 12:53 PM, Fabrice Couvreur wrote:
>
>> Hello,
>> Hans suggested a macro to draw the vectors . It works well but I find
>> that in some situations, the arrow is too big.
>> thank you,
>>
>
>  interim ahlength := 2;
>
>
> Fabrice
>>
>>
>> https://mailman.ntg.nl/pipermail/ntg-context/2016/085828.html
>>
>> \useMPlibrary[mat]
>>
>> \startMPextensions
>>   vardef math_stacker_arrow_shape =
>>   image (
>>   drawarrow
>>   (OverlayWidth,OverlayOffset) -- (0,OverlayOffset)
>>   withcolor
>>   OverlayLineColor ;
>>   setbounds currentpicture to boundingbox currentpicture
>> bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ;
>>   )
>>   enddef ;
>>   vardef math_stacker_leftarrow_shape =
>>   math_stacker_arrow_shape
>>   enddef ;
>>   vardef math_stacker_rightarrow_shape =
>>   math_stacker_arrow_shape rotated 180
>>   enddef ;
>> \stopMPextensions
>>
>> \startuniqueMPgraphic{math:stacker:\number"2190}
>>   math_stacker_draw(math_stacker_leftarrow_shape) ;
>> \stopuniqueMPgraphic
>>
>> \startuniqueMPgraphic{math:stacker:\number"2192}
>>   math_stacker_draw(math_stacker_rightarrow_shape) ;
>> \stopuniqueMPgraphic
>>
>> % so far
>>
>> \setupmathstackers
>> [both] % vfenced]
>> [color=darkred,
>>  alternative=mp]
>>
>> \setupmathstackers
>> [top]
>> [color=darkred,
>>  alternative=mp]
>>
>> \setupmathstackers
>> [bottom]
>> [color=darkred,
>>  alternative=mp]
>>
>> \starttext
>>
>> $\overrightarrow  {i}$
>>
>> \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
___

[NTG-context] Package esvect and Context

2017-05-26 Thread Fabrice Couvreur
Hello,
Hans suggested a macro to draw the vectors . It works well but I find that
in some situations, the arrow is too big.
thank you,
Fabrice


https://mailman.ntg.nl/pipermail/ntg-context/2016/085828.html

\useMPlibrary[mat]

\startMPextensions
 vardef math_stacker_arrow_shape =
 image (
 drawarrow
 (OverlayWidth,OverlayOffset) -- (0,OverlayOffset)
 withcolor
 OverlayLineColor ;
 setbounds currentpicture to boundingbox currentpicture
bottomenlarged (OverlayOffset/2) topenlarged (OverlayOffset/2) ;
 )
 enddef ;
 vardef math_stacker_leftarrow_shape =
 math_stacker_arrow_shape
 enddef ;
 vardef math_stacker_rightarrow_shape =
 math_stacker_arrow_shape rotated 180
 enddef ;
\stopMPextensions

\startuniqueMPgraphic{math:stacker:\number"2190}
 math_stacker_draw(math_stacker_leftarrow_shape) ;
\stopuniqueMPgraphic

\startuniqueMPgraphic{math:stacker:\number"2192}
 math_stacker_draw(math_stacker_rightarrow_shape) ;
\stopuniqueMPgraphic

% so far

\setupmathstackers
   [both] % vfenced]
   [color=darkred,
alternative=mp]

\setupmathstackers
   [top]
   [color=darkred,
alternative=mp]

\setupmathstackers
   [bottom]
   [color=darkred,
alternative=mp]

\starttext

$\overrightarrow  {i}$

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

[NTG-context] Bug with Enumeration and \dfrac{}{} with Standalone ?

2017-05-14 Thread Fabrice Couvreur
Hello,
I am posting again on the same subject but with more precision.
I use Standalone Context in its latest version.
We can observe that the alignment is not correct with \dfrac{}{} but it is
with {}\ over{}. But if I use Texlive 2016 there are no problems.
Thank you
Fabrice

#
\starttext

\startitemize[n][stopper={.},style=bold,color=darkred]
\item  Soit \math{f} la fonction définie pour tout réel \m{x} différent de
\m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
représentative dans un repère du plan.
  \startitemize[a][stopper={.},style=bold,color=darkred]
   \item L'image de 3 par la fonction \math{f} est :

\startitemize[i,columns,joinedup,three]
 [stopper={.},style=bold,color=darkred,grid=line]

\item \math{{14}\over {3}}

\item \math{{5}\over {4}}

\item \math{2}

\stopitemize

\startitemize[i,columns,joinedup,three]
 [stopper={.},style=bold,color=darkred,grid=line]

\item \math{\dfrac{14}{3}}

\item \math{\dfrac{5}{4}}

\item \math{2}

\stopitemize
  \stopitemize
\stopitemize
#
___
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 Enumerations

2017-05-10 Thread Fabrice Couvreur
Hello,
I just updated Context Standalone, but the problem still exists.
With Texlive Context, it works.
Fabrice

Le 8 mai 2017 à 12:27, Fabrice Couvreur <fabrice1.couvr...@gmail.com> a
écrit :

> Hello,
> The alignment of the third level is incorrect, why ?
>
> ##
> \starttext
>
> \startitemize[n][stopper={.},style=bold,color=darkred]
>
>\item  Soit \math{f} la fonction définie pour tout réel \m{x} différent
> de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
> représentative dans un repère du plan.
>   \startitemize[a][stopper={.},style=bold,color=darkred]
>\item L'image de 3 par la fonction \math{f} est :
>
> \startitemize[i,columns,joinedup,pack,1*broad,three]
>  [stopper={.},style=bold,color=darkred,grid=line]
>
> \item \math{\dfrac{14}{3}}
>
> \item \math{\dfrac{5}{4}}
>
> \item \math{2}
>
> \stopitemize
>   \stopitemize
> \stopitemize
>
>
> \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
___

[NTG-context] Strange behavior with Enumerations

2017-05-08 Thread Fabrice Couvreur
Hello,
The alignment of the third level is incorrect, why ?

##
\starttext

\startitemize[n][stopper={.},style=bold,color=darkred]

   \item  Soit \math{f} la fonction définie pour tout réel \m{x} différent
de \m{-1} par \math{f(x)=\dfrac{x+2}{x+1}} et \math{\cal C} sa courbe
représentative dans un repère du plan.
  \startitemize[a][stopper={.},style=bold,color=darkred]
   \item L'image de 3 par la fonction \math{f} est :

\startitemize[i,columns,joinedup,pack,1*broad,three]
 [stopper={.},style=bold,color=darkred,grid=line]

\item \math{\dfrac{14}{3}}

\item \math{\dfrac{5}{4}}

\item \math{2}

\stopitemize
  \stopitemize
\stopitemize


\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] Real number with Lua

2017-04-19 Thread Fabrice Couvreur
2017-04-19 16:04 GMT+02:00 Otared Kavian :

>
> \starttext
> \ctxlua{x = math.floor(10^3*math.pi)/10^3; context(x)}
> \stoptext
>


​Hi Kavian (or Otared ?),
​Thank you very much, it works.
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
___

[NTG-context] Real number with Lua

2017-04-19 Thread Fabrice Couvreur
Hello,
I do not know Lua but I'll learn later. How to display only 3 digits after
the decimal point ?
thank you,
Fabrice

\starttext
\startlinecorrection[blank]
  \startmidaligned
\bTABLE[width=2cm,offset=0.8ex,align={lohi,middle}]
\bTR
\bTD \math{P} \eTD
\bTD \math{m} \eTD
\bTD \math{g_M} \eTD
\eTR
\bTR
\bTD \math{1.6} \eTD
\bTD \math{0.4} \eTD
\bTD \startluacode context(1.6/0.4)\stopluacode \eTD
\eTR
\bTR
\bTD \math{3.1} \eTD
\bTD \math{0.8} \eTD
\bTD \startluacode context(3.1/0.8)\stopluacode \eTD
\eTR
\bTR
\bTD \math{4.3} \eTD
\bTD \math{1.2} \eTD
\bTD \startluacode
context(4.3/1.2)
  \stopluacode
\eTD
\eTR
\bTR
\bTD \math{5.8} \eTD
\bTD \math{1.6} \eTD
\bTD \startluacode context(5.8/1.6)\stopluacode \eTD
\eTR
\bTR
\bTD \math{7.5} \eTD
\bTD \math{2} \eTD
\bTD \startluacode context(7.5/2)\stopluacode \eTD
\eTR
\eTABLE
  \stopmidaligned
\stoplinecorrection
\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
___

[NTG-context] Align an item with the top of a picture

2017-04-17 Thread Fabrice Couvreur
Hello,
How to align item a. With the top of the picture?
Thank you
Fabrice

\useMPlibrary[dum]
\starttext
\startlinecorrection[blank]
  \startmidaligned
\startcombination[2*1]
{\externalfigure[dummy][height=6cm]}{}
{\framedtext[location=hang,width=5cm,frame=off]{\startitemize[a]
\item
\item
\item
\item
\stopitemize}}{}
\stopcombination
\stopmidaligned
\stoplinecorrection
\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] Text around a figure

2017-04-15 Thread Fabrice Couvreur
Hi Rik,
Thank you, I did not follow the forum this week, I should have seen it.
Fabrice


2017-04-14 18:44 GMT+02:00 Rik Kabel <cont...@rik.users.panix.com>:

> On 2017-04-14 10:36, Fabrice Couvreur wrote:
>
> Is it possible that the first line of text starts at the top of the figure?
>
> Blablablablablablablablablablablabla
> ##  blablablablablablablabla
>Fig   blablablablablablablabla
> ##  blablablablablablablabla
>
>
> \starttext
>
> \placefigure [left,none] {} {\externalfigure[rafting.jpg][width=4cm]}
> \input knuth
>
>
>
> \stoptext
>
>
> This came up about a week ago. See https://www.mail-archive.com/
> ntg-context@ntg.nl/msg84828.html (and the follow-up for your answer).
>
> --
> 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://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
___

[NTG-context] Text around a figure

2017-04-14 Thread Fabrice Couvreur
Is it possible that the first line of text starts at the top of the figure?

Blablablablablablablablablablablabla
##  blablablablablablablabla
   Fig   blablablablablablablabla
##  blablablablablablablabla


\starttext

\placefigure [left,none] {} {\externalfigure[rafting.jpg][width=4cm]}
\input knuth



\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] Customize a table with Metafun

2017-02-15 Thread Fabrice Couvreur
Hi Lutz,
Thank you
Fabrice


2017-02-14 17:04 GMT+01:00 Lutz Haseloff <lu...@toppkieker.net>:

> linecap:=butt ;
>
>
> Am 14. Februar 2017 16:53:04 MEZ schrieb Fabrice Couvreur <
> fabrice1.couvr...@gmail.com>:
>>
>> Hello,
>> In the code below, the red vertical line extends beyond the edges of the
>> cell.
>> Thank you
>> Fabrice
>>
>> \startuniqueMPgraphic{Vertical}
>>
>>   linecap:=squared ;
>>   path p ; p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
>>   drawoptions (withpen pencircle withcolor \MPcolor{red}) ;
>>   draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ;
>>   setbounds currentpicture to p ;
>>
>> \stopuniqueMPgraphic
>>
>> \defineoverlay[Vertical][\uniqueMPgraphic{Vertical}]
>>
>> \startsetups[table:initialize]
>>
>> \setupTABLE[start]
>>[align={middle,lohi},offset=0.5ex,width=1.5cm,
>> foregroundstyle={\switchtobodyfont[10pt]}]
>> \setupTABLE[1][2][background=Vertical]
>>
>> \stopsetups
>>
>> \starttext
>> \startlinecorrection[blank]
>>   \startmidaligned
>> \bTABLE[setups=table:initialize]
>> \bTR
>> \bTD \math{\red 0 {\rm (A)}} \eTD
>> \bTD \math{+\infty}  \eTD
>> \eTR
>> \bTR
>> \bTD \eTD
>> \bTD  \math{+\infty} \eTD
>> \eTR
>> \eTABLE
>>   \stopmidaligned
>> \stoplinecorrection
>> \stoptext
>>
>
> --
> Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail
> gesendet.
>
> 
> ___
> 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
___

[NTG-context] Vertical spacing in enumerations

2017-02-14 Thread Fabrice Couvreur
In the code below, the vertical spacing of the second level should be like
that of the first level
Thank you
Fabrice

\definecolor[MyBlue][c=0.06 , m=0.03, y=0.00, k=0.00]

\defineframed
  [algorithmframe]
  [width=\textwidth,
   align=normal,
   strut=no,
   offset=1ex,
   foregroundstyle={\switchtobodyfont[7pt]},
   background=color,
   location=middle,
   backgroundcolor=MyBlue,
   framecolor=darkblue,
   corner=round]

\definelines
  [algorithm]
  [space=on,
   before={\startframed[algorithmframe]},
   after=\stopframed]

\starttext
\startalgorithm
\startitemize[1,joinedup,nowhite]
\item On commence par le sommet A : il est à une distance \math{d({\rm A})}
égale à \math{0} du sommet A.
\item Pour tous les sommets S adjacents à A et non marqués :
\startitemize[2,joinedup,nowhite]
  \item on calcule la somme \math{s} du poids de l'arête A-S et de la
distance \math{d({\rm A})} ;
  \item si \math{s < d({\rm S})}, on remplace la distance \math{d({\rm S})}
par \math{s} et on retient que cette distance \quotation{provient} du
sommet A.
  \stopitemize
\item On marque définitivement le sommet A.
\stopitemize
\stopalgorithm
\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
___

[NTG-context] Customize a table with Metafun

2017-02-14 Thread Fabrice Couvreur
Hello,
In the code below, the red vertical line extends beyond the edges of the
cell.
Thank you
Fabrice

\startuniqueMPgraphic{Vertical}

  linecap:=squared ;
  path p ; p := unitsquare xyscaled (OverlayWidth,OverlayHeight) ;
  drawoptions (withpen pencircle withcolor \MPcolor{red}) ;
  draw .5[llcorner p, lrcorner p]--.5[ulcorner p, urcorner p] ;
  setbounds currentpicture to p ;

\stopuniqueMPgraphic

\defineoverlay[Vertical][\uniqueMPgraphic{Vertical}]

\startsetups[table:initialize]

\setupTABLE[start]
   [align={middle,lohi},offset=0.5ex,width=1.5cm,
foregroundstyle={\switchtobodyfont[10pt]}]
\setupTABLE[1][2][background=Vertical]

\stopsetups

\starttext
\startlinecorrection[blank]
  \startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\bTD \math{\red 0 {\rm (A)}} \eTD
\bTD \math{+\infty}  \eTD
\eTR
\bTR
\bTD \eTD
\bTD  \math{+\infty} \eTD
\eTR
\eTABLE
  \stopmidaligned
\stoplinecorrection
\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] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hi Michael,
Thanks, it's ok.
Fabrice

2017-02-02 22:02 GMT+01:00 Rogers, Michael K <mrog...@emory.edu>:

> This seems to work in place of 0.866cm: sqrt(3)/2*cm
>
> Michael
>
> On Feb 2, 2017, at 3:54 PM, Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> wrote:
>
> Hello,
> I wanted to use sqrt(3)/2 but without success. Instead, I replaced this
> value with an approximate value 0.866
> How should it be done ?
> Thank you
> Fabrice
>
> \starttext
>
> \startMPcode
> draw fullcircle scaled 1cm withcolor magenta ;
> draw fullcircle scaled 1cm shifted (1cm,0) withcolor magenta ;
> draw fullcircle scaled 1cm shifted (0.5cm,0.866cm) withcolor magenta ;
>  \stopMPcode
>
> \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
> 
> ___
>
>
>
> --
>
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
>
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
>
> 
> ___
> 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
___

[NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hello,
I wanted to use sqrt(3)/2 but without success. Instead, I replaced this
value with an approximate value 0.866
How should it be done ?
Thank you
Fabrice

\starttext

\startMPcode
draw fullcircle scaled 1cm withcolor magenta ;
draw fullcircle scaled 1cm shifted (1cm,0) withcolor magenta ;
draw fullcircle scaled 1cm shifted (0.5cm,0.866cm) withcolor magenta ;
 \stopMPcode

\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] Title without the parentheses

2017-01-31 Thread Fabrice Couvreur
Hi Kavian,
Thank you very much for your help, your solution corresponds to what I was
trying to do even if it uses another approach.
Fabrice

2017-01-30 14:54 GMT+01:00 Otared Kavian <ota...@gmail.com>:

> Hi Fabrice,
>
> In order to have the box aligned with the text, it is enough to use the
>  \lower command as in the exmaple below.
> Best regards: Otared K.
>
> %% begin
> \startuniqueMPgraphic{MyShape}
> path p ;
> p := unitsquare xscaled \overlaywidth yscaled \overlayheight ;
> pickup pencircle scaled \overlaylinewidth ;
> fill p withcolor \MPcolor{\overlaycolor} ;
> draw p withcolor \MPcolor{\overlaylinecolor} ;
> \stopuniqueMPgraphic
> \setuplayout[grid=yes]
> \defineoverlay[MyBackgroundLayer][\uniqueMPgraphic{MyShape}]
>
> \define[1]\MyExoCommand{%
> \lower\strutdepth\hbox{\startframed
> [background=MyBackgroundLayer,
> frame=off,
> % width=3cm,
> align=flushleft,
> backgroundcolor=darkred]
> {\white Exercice #1}
> \stopframed}
> }
> \defineenumeration[ex]
> [text=,
> title=yes,
> titleleft=,
> titleright=,
> width=fit,
> alternative=top,
> number=yes,
> numbercommand=\MyExoCommand]
>
>
> \showgrid
> \starttext
>
> \startex{Pour tous les candidats \hfill 5 points}
>   \input ward
> \stopex
>
> \stoptext
> %% end
>
> On 29 Jan 2017, at 23:04, Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> wrote:
>
> Hello Kavian,
> Thank you for your answer, it's good for the parentheses. For the
> command, I found only this which does not exactly answer what I want to do.
> Fabrice
>
> \defineenumeration
>   [ex]
>   [text={Exercice},
>headcommand=\EXFRAME,
>titleleft=,
>titleright=,
>title=yes,
>width=fit,
>numberconversionset=ACCONVERSION,
>alternative=top,
>number=yes]
>
> 2017-01-29 12:02 GMT+01:00 Otared Kavian <ota...@gmail.com>:
>
>> Hi Fabrice,
>>
>> To suppress the parentheses in the title, you can use the keys titleleft
>> and titleright as in the following:
>>
>> \defineenumeration
>>   [ex]
>>   [text=Exercice,
>>title=yes,
>>titleleft=,
>>titleright=,
>>width=fit,
>>numberconversionset=ACCONVERSION,
>>alternative=top,
>>number=yes]
>>
>> In order to put the word « Exercice » in the frame you should define a
>> special command, for instance \MyTextCommand and the say text =
>> \MyTextCommand
>>
>> Best regrads: OK
>>
>> On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com>
>> wrote:
>>
>> Hello,
>> I would like a title without the parentheses and the text "Exercice" in
>> the frame with the number.
>> Thank you.
>> Fabrice
>>
>> \defineframed
>>   [EXFRAME]
>>   [frame=off,
>>offset=0pt,
>>location=low,
>>width=\struttotal,
>>background=color,
>>backgroundcolor=darkred,
>>foregroundcolor=white,
>>forgroundstyle=bold]
>>
>> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
>> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>>
>> \defineenumeration
>>   [ex]
>>   [text=Exercice,
>>title=yes,
>>width=fit,
>>numberconversionset=ACCONVERSION,
>>alternative=top,
>>number=yes]
>>
>> \starttext
>>
>> \startex{Pour tous les candidats \hfill 5 points}
>>   \input ward
>> \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/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] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
Hello Kavian,
Thank you for your answer, it's good for the parentheses. For the command,
I found only this which does not exactly answer what I want to do.
Fabrice

\defineenumeration
  [ex]
  [text={Exercice},
   headcommand=\EXFRAME,
   titleleft=,
   titleright=,
   title=yes,
   width=fit,
   numberconversionset=ACCONVERSION,
   alternative=top,
   number=yes]

2017-01-29 12:02 GMT+01:00 Otared Kavian <ota...@gmail.com>:

> Hi Fabrice,
>
> To suppress the parentheses in the title, you can use the keys titleleft
> and titleright as in the following:
>
> \defineenumeration
>   [ex]
>   [text=Exercice,
>title=yes,
>titleleft=,
>titleright=,
>width=fit,
>numberconversionset=ACCONVERSION,
>alternative=top,
>number=yes]
>
> In order to put the word « Exercice » in the frame you should define a
> special command, for instance \MyTextCommand and the say text =
> \MyTextCommand
>
> Best regrads: OK
>
> On 29 Jan 2017, at 09:07, Fabrice Couvreur <fabrice1.couvr...@gmail.com>
> wrote:
>
> Hello,
> I would like a title without the parentheses and the text "Exercice" in
> the frame with the number.
> Thank you.
> Fabrice
>
> \defineframed
>   [EXFRAME]
>   [frame=off,
>offset=0pt,
>location=low,
>width=\struttotal,
>background=color,
>backgroundcolor=darkred,
>foregroundcolor=white,
>forgroundstyle=bold]
>
> \defineprocessor[ACPROCESSOR][command=\EXFRAME]
> \defineconversionset[ACCONVERSION][][ACPROCESSOR->n]
>
> \defineenumeration
>   [ex]
>   [text=Exercice,
>title=yes,
>width=fit,
>numberconversionset=ACCONVERSION,
>alternative=top,
>number=yes]
>
> \starttext
>
> \startex{Pour tous les candidats \hfill 5 points}
>   \input ward
> \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
___

[NTG-context] Title without the parentheses

2017-01-29 Thread Fabrice Couvreur
Hello,
I would like a title without the parentheses and the text "Exercice" in the
frame with the number.
Thank you.
Fabrice

\defineframed
  [EXFRAME]
  [frame=off,
   offset=0pt,
   location=low,
   width=\struttotal,
   background=color,
   backgroundcolor=darkred,
   foregroundcolor=white,
   forgroundstyle=bold]

\defineprocessor[ACPROCESSOR][command=\EXFRAME]
\defineconversionset[ACCONVERSION][][ACPROCESSOR->n]

\defineenumeration
  [ex]
  [text=Exercice,
   title=yes,
   width=fit,
   numberconversionset=ACCONVERSION,
   alternative=top,
   number=yes]

\starttext

\startex{Pour tous les candidats \hfill 5 points}
  \input ward
\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
___

[NTG-context] Table on two pages (natural tables)

2017-01-10 Thread Fabrice Couvreur
Hello,
My table does not fit on the first page that contains the title of the
evaluation and I would like it to continue on the second page. I tried using
the key split = yes but my table moves to the second page and there is more
than the title of the first.
thank you,
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
___

Re: [NTG-context] integral symbol

2016-12-29 Thread Fabrice Couvreur
Hi Hans,
Thanks for your solution. I created a macro, is it "robust" ?
Fabrice

\setupmathextensible[integral][rightoffset=-3mu,exact=yes,factor=2]
\def\integ#1#2#3{\math{\autointegral{#1}{#2}{#3}\diff x}}

\starttext
 \integ{4}{1}{g(x)}
\stoptext


2016-12-28 18:40 GMT+01:00 Hans Hagen :

> On 12/28/2016 6:14 PM, Alan Braslau wrote:
>
>> Hi Hans, Hi list,
>>
>> This is similar to what we have discussed earlier on this list and
>> elsewhere regarding \over vs. \frac. (I agree with Knuth that {a \over
>> b} is *much* more readable in running source code than \frac{a}{b} but
>> have resigned myself to use \frac{}{}, as this can be made better
>> behaved and gives a much better result.)
>>
>> Other traditional TeX constructs like \int^a_b have their charm (and
>> need to remain supported, just like is \over), but I support
>> introducing and encouraging the use of new constructs like your example
>> below. An alternative syntax (that could co-exist) would be admitting
>> $\left\int ... \right.$, but I do not know what limitations there might
>> be with both the (luatex) engine and with ConTeXt.
>>
>
> the tricky part there is that int has super and subscripts while left /
> right are different animals ... i looked into this (in the engine) and
> decided to delay implementing that (i might do it some day but it's sort of
> tricky to keep compatibility)
>
> also, ints are upright (extensible or stepwise sizes) or slanted (stepwise
> sizes) so even if we support something there are some limitations due to
> lack of font support (could be dealt with in due time)
>
> The problem with extensions, like always, in straying from traditional
>> TeX is interchangeability of code, or, more importantly, in the
>> learning curve obstacles that this introduces to traditional TeX (and
>> LaTeX) thinking. I know that at some level we do not care, for we often
>> make (good) design choices that improve the syntax of ConTeXt.
>>
>> Perhaps we can use this thread to discuss other cases (like \sum, ...)
>> that present difficulties and then decide on good solutions.
>>
>
> sure ...
>
> 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/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] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hi Henri,
Thank you for your suggestion.
Fabrice

2016-12-28 12:19 GMT+01:00 Henri Menke <henrime...@gmail.com>:

> On 12/28/2016 11:39 AM, Fabrice Couvreur wrote:
> > Hello,
> > The integral symbol is little in inline math mode. Is it possible to
> have it bigger ?
> > thank you,
> > Fabrice
> >
> > \definetypeface [mainface] [rm]
> >[serif] [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [ss]
> >[sans]  [helvetica]   [default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [tt]
> >[mono]  [palatino][default]   [encoding=texnansi]
> >
> > \definetypeface [mainface] [mm]
> >[math]  [palatino][default]   [encoding=texnansi]
> >
> > \setupbodyfont[mainface,11pt]
> >
> > \starttext
> >
> > L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.
>
> \math{\displaystyle\int_1^3 k(x)\diff x}
>
> >
> > L'aire hachurée se note :
> >
> > \startformula
> >   \int_1^3 k(x)\mathop{dx}.
> > \stopformula
> >
> > \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
___

[NTG-context] integral symbol

2016-12-28 Thread Fabrice Couvreur
Hello,
The integral symbol is little in inline math mode. Is it possible to have
it bigger ?
thank you,
Fabrice

\definetypeface [mainface] [rm]
   [serif] [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [ss]
   [sans]  [helvetica]   [default]   [encoding=texnansi]

\definetypeface [mainface] [tt]
   [mono]  [palatino][default]   [encoding=texnansi]

\definetypeface [mainface] [mm]
   [math]  [palatino][default]   [encoding=texnansi]

\setupbodyfont[mainface,11pt]

\starttext

L'aire hachurée se note \math{\int_1^3 k(x)\mathop{dx}}.

L'aire hachurée se note :

\startformula
  \int_1^3 k(x)\mathop{dx}.
\stopformula

\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] Asymptote or Metapost and ConTeXt parameters.

2016-12-19 Thread Fabrice Couvreur
Hello,
I do not answer the question, but I'm interested because I also use
Asymptote. The following code works with context in texlive 2016 but does
not work with standalone context.
thank you,
Fabrice
% macros=mkvi

\usemodule[filter]

\defineexternalfilter
   [ASY]
   [
 filter={asy -tex "context" -outformat pdf
 -outname \externalfilteroutputfile},
 output=\externalfilterbasefile.pdf,
 cache=yes,
 readcommand=\ReadImage,
   ]

\define[1]\ReadImage{\externalfigure[#1]}

\starttext
   Testing if we can include an asymptote image
   \startplacefigure[location={here}, title={An Asymptote figure}]
 \startASY
   import three;
size(8cm,0);
currentlight.background=black;

material White(real x, real y){
   return material(diffusepen=gray(.05+.1x+.3y),
   emissivepen=gray(.05+.1x+.3y));
}

for(int y=0; y<=2; ++y)
for(int x=0; x<3; ++x)
draw(shift(2x,2y,0)*unitsphere,White(x,y));
 \stopASY
   \stopplacefigure
\stoptext


2016-12-19 8:41 GMT+01:00 Jaroslav Hajtmar :

> Hello ConTeXtist,
>
> I saw the opportunity to insert an Asymptote picture into Context source
> code (due filter).
>
> For example here: https://mailman.ntg.nl/pipermail/ntg-context/2015/
> 080581.html
>
>
>
> Is there a way to pass the ConTeXt parameter which influenced the creation
> of the Asymptote image? My point eg. the ability to define macros, which
> gave its parameters to Asymptote procedure or function and depending on
> these parameters, the image created by Asymptote looked differently.
>
>
>
> Before starting work on an illustrative example I am asking, whether it
> makes sense to deal with such a thing ... I suppose the impossibility of
> combining asymptote code and such Lua code (or not?).
>
>
>
> There is a similar possibility, at least in Metapost? For simpler pictures
> it would probably suffice 
>
>
>
> Thanx
>
> Jaroslav Hajtmar
>
>
>
> 
> ___
> 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] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
Okay, so to change locally, I do this :


\placerecipe{}{
\setupframedtexts[MyFrame][width=10cm]
\startMyFrame[Title=One]

  \stopMyFrame}
  \placerecipe{}{
\setupframedtexts[MyFrame][width=8cm]
\startMyFrame[Title=Two]

  \stopMyFrame}
  \placerecipe{}{
\startMyFrame[Title=Three]

  \stopMyFrame}

2016-11-01 11:17 GMT+01:00 Piotr Kopszak <kops...@gmail.com>:

> You mean, you effectively want ConTeXt to choose best proportions for
> the framed text on its own? I guess very few designers would agree for
> that, if any.
>
> 2016-11-01 10:47 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
> > Hello,
> > The option align = tolerant rule one of the problems I may encounter.
> But I
> > wonder if it's possible that I should not choose myself width = 6cm to
> fit
> > the text. If I have to use the command several times with different
> content,
> > how make ?
> > Thank you
> > Fabrice
> >
> > 2016-11-01 9:23 GMT+01:00 Piotr Kopszak <kops...@gmail.com>:
> >>
> >> Just use
> >> ...
> >> \startMyFrame[Title=Info]
> >> \setupalign[hyphenated,morehyphenation,verytolerant]
> >> ...
> >>
> >> Piotr
> >>
> >> 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com
> >:
> >> > Hello,
> >> > How to make the width of framedtext automatically adapts to its
> >> > contents.
> >> > Fabrice
> >> >
> >> > \definefloat
> >> >[recipe]
> >> >[figure]
> >> >
> >> > \setupfloat
> >> >[recipe]
> >> >[default={right,none}]
> >> >
> >> > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> >> > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
> >> >
> >> >
> >> > \defineframedtext
> >> >   [MyFrame]
> >> >   [before={\blank},
> >> >after={\blank},
> >> >frame=off,
> >> >background=MyFrame,
> >> >width=6cm,
> >> >height=fit]
> >> >
> >> > \startuseMPgraphic{MyFrame}
> >> >  path b;
> >> >  picture p;
> >> >  p := textext.rt("\tfx\white\framedtextparameter{Title}");
> >> >  p := p shifted (2BodyFontSize,OverlayHeight-ypart center
> >> > p+.25ExHeight);
> >> >  b := boundingbox p enlarged .3EmWidth ;
> >> >  fill OverlayBox withcolor \MPcolor{MyColorA};
> >> >  fill b withcolor \MPcolor{MyColorB} ;
> >> >  draw p ;
> >> >  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
> >> > \stopuseMPgraphic
> >> >
> >> > \defineoverlay
> >> >   [MyFrame]
> >> >   [\useMPgraphic{MyFrame}]
> >> >
> >> >   \starttext
> >> >
> >> >   \placerecipe{}{
> >> >   \startMyFrame[Title=Info]
> >> >   L'histogramme est constitué de rectangles dont les bases
> correspondent
> >> > aux
> >> > classes et dont les aires sont proportionnelles aux effectifs ou
> >> > fréquences
> >> > des classes.
> >> >   \stopMyFrame}
> >> >
> >> >   \input Knuth
> >> >
> >> >   \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
> >> >
> >> > 
> ___
> >>
> >>
> >>
> >> --
> >> http://okle.pl
> >>
> >> 
> ___
> >> 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
&g

Re: [NTG-context] Framedtext in a float

2016-11-01 Thread Fabrice Couvreur
Hello,
The option align = tolerant rule one of the problems I may encounter.
But I wonder
if it's possible that I should not choose myself width = 6cm to fit the
text. If I have to use the command several times with different content,
how make ?
Thank you
Fabrice

2016-11-01 9:23 GMT+01:00 Piotr Kopszak <kops...@gmail.com>:

> Just use
> ...
> \startMyFrame[Title=Info]
> \setupalign[hyphenated,morehyphenation,verytolerant]
> ...
>
> Piotr
>
> 2016-11-01 0:12 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:
> > Hello,
> > How to make the width of framedtext automatically adapts to its contents.
> > Fabrice
> >
> > \definefloat
> >[recipe]
> >[figure]
> >
> > \setupfloat
> >[recipe]
> >[default={right,none}]
> >
> > \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> > \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
> >
> >
> > \defineframedtext
> >   [MyFrame]
> >   [before={\blank},
> >after={\blank},
> >frame=off,
> >background=MyFrame,
> >width=6cm,
> >height=fit]
> >
> > \startuseMPgraphic{MyFrame}
> >  path b;
> >  picture p;
> >  p := textext.rt("\tfx\white\framedtextparameter{Title}");
> >  p := p shifted (2BodyFontSize,OverlayHeight-ypart center
> p+.25ExHeight);
> >  b := boundingbox p enlarged .3EmWidth ;
> >  fill OverlayBox withcolor \MPcolor{MyColorA};
> >  fill b withcolor \MPcolor{MyColorB} ;
> >  draw p ;
> >  setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
> > \stopuseMPgraphic
> >
> > \defineoverlay
> >   [MyFrame]
> >   [\useMPgraphic{MyFrame}]
> >
> >   \starttext
> >
> >   \placerecipe{}{
> >   \startMyFrame[Title=Info]
> >   L'histogramme est constitué de rectangles dont les bases correspondent
> aux
> > classes et dont les aires sont proportionnelles aux effectifs ou
> fréquences
> > des classes.
> >   \stopMyFrame}
> >
> >   \input Knuth
> >
> >   \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
> > 
> ___
>
>
>
> --
> http://okle.pl
> 
> ___
> 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
___

[NTG-context] Framedtext in a float

2016-10-31 Thread Fabrice Couvreur
Hello,
How to make the width of framedtext automatically adapts to its contents.
Fabrice

\definefloat
   [recipe]
   [figure]

\setupfloat
   [recipe]
   [default={right,none}]

\definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
\definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]


\defineframedtext
  [MyFrame]
  [before={\blank},
   after={\blank},
   frame=off,
   background=MyFrame,
   width=6cm,
   height=fit]

\startuseMPgraphic{MyFrame}
 path b;
 picture p;
 p := textext.rt("\tfx\white\framedtextparameter{Title}");
 p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25ExHeight);
 b := boundingbox p enlarged .3EmWidth ;
 fill OverlayBox withcolor \MPcolor{MyColorA};
 fill b withcolor \MPcolor{MyColorB} ;
 draw p ;
 setbounds currentpicture to boundingbox currentpicture enlarged 2mm ;
\stopuseMPgraphic

\defineoverlay
  [MyFrame]
  [\useMPgraphic{MyFrame}]

  \starttext

  \placerecipe{}{
  \startMyFrame[Title=Info]
  L'histogramme est constitué de rectangles dont les bases correspondent
aux classes et dont les aires sont proportionnelles aux effectifs ou
fréquences des classes.
  \stopMyFrame}

  \input Knuth

  \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] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
Hi Peter,
Thank you very much.

2016-10-31 15:22 GMT+01:00 Peter Münster <pmli...@free.fr>:

> On Mon, Oct 31 2016, Fabrice Couvreur wrote:
>
> > how to add the option -- purgeall ?
>
> (setq ConTeXt-mode-hook
>   (lambda () (setq TeX-command-extra-options "--purgeall")))
>
> --
>Peter
> 
> ___
> 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] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
Sorry, but I have one question: how to add the option -- purgeall ?
Fabrice

2016-10-31 14:16 GMT+01:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>:

> Hi Peter,
> It seems to work !
> Thank you to Peter, Tobias, Michael and Mica for your help
> Fabrice
>
> 2016-10-31 11:59 GMT+01:00 Peter Münster <pmli...@free.fr>:
>
>> On Mon, Oct 31 2016, Fabrice Couvreur wrote:
>>
>> > /home/fab/context/tex/texmf-linux-64/bin/context:...
>>
>> Please replace this with /home/fab/context/tex/texmf-linux-64/bin:...
>>
>> --
>>Peter
>> 
>> ___
>> 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] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
Hi Peter,
It seems to work !
Thank you to Peter, Tobias, Michael and Mica for your help
Fabrice

2016-10-31 11:59 GMT+01:00 Peter Münster <pmli...@free.fr>:

> On Mon, Oct 31 2016, Fabrice Couvreur wrote:
>
> > /home/fab/context/tex/texmf-linux-64/bin/context:...
>
> Please replace this with /home/fab/context/tex/texmf-linux-64/bin:...
>
> --
>Peter
> 
> ___
> 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] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
/home/fab/context/tex/texmf-linux-64/bin/context:/home/fab/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/texmf/tex/latex/tex4ebook-master/tex4ebook:/home/fab/texlive/2016/bin/x86_64-linux

2016-10-31 10:18 GMT+01:00 Peter Münster <pmli...@free.fr>:

> On Mon, Oct 31 2016, Fabrice Couvreur wrote:
>
> > it's always texlive context and not standalone.
>
> What is the output of M-x getenv RET PATH RET ?
>
> --
>Peter
> 
> ___
> 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] Emacs24 + AucTeX + ConTeXt

2016-10-31 Thread Fabrice Couvreur
ds: Wrong type argument: symbolp, „string“ (that’s the bug)
> open context.el (somewhere in .emacs.d/(m)elpa/auctex-11.89.X) and
> replace line 501 (or nearby)
>
> :type "string"
>
> with
>
> :type 'string
>
> and recompile the file with `M-x byte-compile file RET RET’.
> +++
>
> (8) Switch from Mark II to Mark IV
>
> Now, Emacs should generally provide support to ConTeXt Mark IV. To compile
> tex-files comfortable right out of Emacs via C-c C-c add:
>
> (9) (setenv "PATH" "/home/fab/tex/texmf-linux-64/bin/:$PATH" t) to your
> .emacs and
> (10) (setq ConTeXt-Mark-version "IV“) if you want
> (11) Save file and restart Emacs
> (12) Open a context file and try out
>
>
> ALOHA, tobber
>
>
>
>
>
>
>
> > Am 30.10.2016 um 13:30 schrieb Fabrice Couvreur <
> fabrice1.couvr...@gmail.com>:
> >
> > Hi Tobias,
> >
> > (2) Possible completions are:
> > ConTeXt-close-environment ConTeXt-close-xml-tag
> > ConTeXt-environment ConTeXt-etexshow
> > ConTeXt-find-matching-start ConTeXt-find-matching-stop
> > ConTeXt-insert-item ConTeXt-mark-environment
> > ConTeXt-mode ConTeXt-mode-command-menu
> > ConTeXt-mode-menu ConTeXt-section
> > ConTeXt-work-on-environment
> >
> > I added in .emacs
> >
> > (custom-set-variables
> >  '(ConTeXt-Mark-version "IV"))
> >
> > update auctex
> >
> > How ? Auctex installed with ELPA
> >
> > (setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)
> >
> >  I do not understand this symbol „ and how to access
> >
> > Thanks
> > Fabrice
> >
> >
> > 2016-10-30 12:15 GMT+01:00 Tobias Berndt <tobiasber...@arcor.de>:
> > @ Fabrice: If you’re working under a Linux, use „home“ instead of
> „Users“ (I’m under macOS, therefore I left „Users“) and forget about the
> add-to-list line. So:
> >
> > (1) M-x context-mode
> > (2) M-x ConTeXt-Mark-version (switch to mkIV)
> >
> > If there is no such command: update auctex; if this gives an error
> (there was/is a bug:) tell me and I’ll give you an instruction how to
> manipulate your context.el
> >
> > (3) Add to .emacs: (setenv „PATH“ „/home/fab/tex/texmf-linux-64/bin/:$PATH“
> t)
> > (4) ;; (add-to-list 'load-path "/home/fab/context/tex/texmf-
> linux-64/bin/context“)
> > (5) Restart Emacs
> >
> > C-c C-c should work, now.
> >
> >
> > ALOHA, tobber
> >
> >
> >
> >
> >
> >
> > > Am 29.10.2016 um 23:41 schrieb Fabrice Couvreur <
> fabrice1.couvr...@gmail.com>:
> > >
> > > Hi,
> > > @Tobias
> > >
> > > If I add this to my .emacs I get
> > >
> > > (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t)
> > > (add-to-list 'load-path "/home/fab/context/tex/texmf-
> linux-64/bin/context")
> > >
> > > Warning (initialization): An error occurred while loading
> `/home/fab/.emacs':
> > >
> > > Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin
> > >
> > >
> > > @Michael
> > >
> > > fab@debian:~$ which context
> > > /home/fab/bin/context
> > > fab@debian:~$ source context/tex/setuptex
> > > Setting "/home/fab/context/tex" as ConTeXt root.
> > > fab@debian:~$ which context
> > > /home/fab/context/tex/texmf-linux-64/bin/context
> > > fab@debian:~$
> > >
> > > If I add this to my .emacs is always texlive 2016 is invoked when I
> compile
> > >
> > > (eval-after-load "tex"
> > > '(add-to-list 'TeX-command-list
> > > '("context"
> > >  "(/home/fab/context)/setuptex&"
> > >   TeX-run-TeX
> > >   nil
> > >   (context-mode)
> > >   :help "Run ConTeXt") t))
> > >
> > >
> > > Thanks,
> > > Fabrice
> > >
> > >
> > > 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>:
> > > sorry that should be:
> > >
> > > (path to textree)/setuptex && context .
> > >
> > >
> > >>
> > >> cd (path to textree) && setuptex && context etc...
> > >
> > >
> > > 
> ___
&g

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-30 Thread Fabrice Couvreur
Hi Tobias,

(2) Possible completions are:
ConTeXt-close-environment ConTeXt-close-xml-tag
ConTeXt-environment ConTeXt-etexshow
ConTeXt-find-matching-start ConTeXt-find-matching-stop
ConTeXt-insert-item ConTeXt-mark-environment
ConTeXt-mode ConTeXt-mode-command-menu
ConTeXt-mode-menu ConTeXt-section
ConTeXt-work-on-environment

I added in .emacs

(custom-set-variables
 '(ConTeXt-Mark-version "IV"))

update auctex


How ? Auctex installed with ELPA

(setenv „PATH" „/home/fab/tex/texmf-linux-64/bin/:$PATH" t)


 I do not understand this symbol „ and how to access

Thanks
Fabrice


2016-10-30 12:15 GMT+01:00 Tobias Berndt <tobiasber...@arcor.de>:

> @ Fabrice: If you’re working under a Linux, use „home“ instead of „Users“
> (I’m under macOS, therefore I left „Users“) and forget about the
> add-to-list line. So:
>
> (1) M-x context-mode
> (2) M-x ConTeXt-Mark-version (switch to mkIV)
>
> If there is no such command: update auctex; if this gives an error (there
> was/is a bug:) tell me and I’ll give you an instruction how to manipulate
> your context.el
>
> (3) Add to .emacs: (setenv „PATH“ „/home/fab/tex/texmf-linux-64/bin/:$PATH“
> t)
> (4) ;; (add-to-list 'load-path "/home/fab/context/tex/texmf-
> linux-64/bin/context“)
> (5) Restart Emacs
>
> C-c C-c should work, now.
>
>
> ALOHA, tobber
>
>
>
>
>
>
> > Am 29.10.2016 um 23:41 schrieb Fabrice Couvreur <
> fabrice1.couvr...@gmail.com>:
> >
> > Hi,
> > @Tobias
> >
> > If I add this to my .emacs I get
> >
> > (setenv "PATH"/Users/fab/tex/texmf-linux-64/bin/ ":$PATH" t)
> > (add-to-list 'load-path "/home/fab/context/tex/texmf-
> linux-64/bin/context")
> >
> > Warning (initialization): An error occurred while loading
> `/home/fab/.emacs':
> >
> > Symbol's value as variable is void: /Users/fab/tex/texmf-linux-64/bin
> >
> >
> > @Michael
> >
> > fab@debian:~$ which context
> > /home/fab/bin/context
> > fab@debian:~$ source context/tex/setuptex
> > Setting "/home/fab/context/tex" as ConTeXt root.
> > fab@debian:~$ which context
> > /home/fab/context/tex/texmf-linux-64/bin/context
> > fab@debian:~$
> >
> > If I add this to my .emacs is always texlive 2016 is invoked when I
> compile
> >
> > (eval-after-load "tex"
> > '(add-to-list 'TeX-command-list
> > '("context"
> >  "(/home/fab/context)/setuptex&"
> >   TeX-run-TeX
> >   nil
> >   (context-mode)
> >   :help "Run ConTeXt") t))
> >
> >
> > Thanks,
> > Fabrice
> >
> >
> > 2016-10-29 12:50 GMT+02:00 Michael Eidenbenz <eidenb...@arch.ethz.ch>:
> > sorry that should be:
> >
> > (path to textree)/setuptex && context .
> >
> >
> >>
> >> cd (path to textree) && setuptex && context etc...
> >
> >
> > 
> ___
> > 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
___

<    1   2   3   4   5   6   7   8   >