Re: [NTG-context] Problem with the environment {\quotation}

2016-07-21 Thread Fabrice Couvreur
thanks Aditya
Fabrice

2016-07-21 2:05 GMT+02:00 Aditya Mahajan :

> On Thu, 21 Jul 2016, Fabrice Couvreur wrote:
>
> Hello,
>> With the latest version of Standalone Context, environment {\quotation}
>> causes a compilation error but with texlive 2016, no problem.
>> thanks,
>> Fabrice
>>
>>
>> \mainlanguage[fr]
>>
>> \starttext
>>
>> Seuls les nombres vont servir aux calculs, le gérant peut donc résumer ce
>> tableau à l'aide du seul tableau de nombres suivant, appelé {\quotation la
>> matrice \math{A}}.
>>
>> \stoptext
>>
>
> Use \quotation{} rather than {\quotation ...}
>
> Aditya
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with the environment {\quotation}

2016-07-20 Thread Aditya Mahajan

On Thu, 21 Jul 2016, Fabrice Couvreur wrote:


Hello,
With the latest version of Standalone Context, environment {\quotation}
causes a compilation error but with texlive 2016, no problem.
thanks,
Fabrice


\mainlanguage[fr]

\starttext

Seuls les nombres vont servir aux calculs, le gérant peut donc résumer ce
tableau à l'aide du seul tableau de nombres suivant, appelé {\quotation la
matrice \math{A}}.

\stoptext


Use \quotation{} rather than {\quotation ...}

Aditya___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Problem with the environment {\quotation}

2016-07-20 Thread Fabrice Couvreur
Hello,
With the latest version of Standalone Context, environment {\quotation}
causes a compilation error but with texlive 2016, no problem.
thanks,
Fabrice


\mainlanguage[fr]

\starttext

Seuls les nombres vont servir aux calculs, le gérant peut donc résumer ce
tableau à l'aide du seul tableau de nombres suivant, appelé {\quotation la
matrice \math{A}}.

\stoptext



tex error   > tex error on line 3 in file /home/fab/ntg47.tex: ! Extra
}, or forgotten \endgroup

l.3 ...ant, appelé {\quotation la matrice \math{A}}
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Problem with an environment

2014-03-12 Thread Fabrice

Hi Wolfgang,
Thank you for your help. I actually forgot this :
\ definetypeface [mainface] [ss] [sans] [dejavu] [default] [rscale = auto].
The problem is that I'm still new with ConTeXt, but I think I can say 
that I grew to people like you.


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with an environment

2014-03-11 Thread Fabrice

Hi,
I'll try to rephrase my question. In fact, the title is not in bold and 
the size of the font is not taken into account.

Regards,
Fabrice

https://drive.google.com/file/d/0B-mkD83s36jbS05RalpqRHhzc2s/edit?usp=sharing
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with an environment

2014-03-11 Thread Wolfgang Schuster

Am 11.03.2014 um 23:13 schrieb Fabrice couvreur.fabr...@wanadoo.fr:

 Hi,
 I'll try to rephrase my question. In fact, the title is not in bold and the 
 size of the font is not taken into account.

When you want to use a sans serif font you should also set one which isn’t the 
case in your setup.

\loadtypescriptfile[mathdesign]
 
\definetypeface [mainface] [rm] [serif] [palatino] [default]
\definetypeface [mainface] [tt] [mono]  [modern] [default] [rscale=0.9]
\definetypeface [mainface] [mm] [math]  [xits] [default]

\setupbodyfont[mainface,11pt]

Wolfgang___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Problem with an environment

2014-03-06 Thread Fabrice Couvreur
I'm trying to built a template for evaluations of my students.
I have a problem with the head environment that does not take into account
the selected font and size.
Regards,
Fabrice


\environment environ-2

\environment environ-3

\environment header

\starttext

\MyOtherHeader{Seconde GTA}{20}{3}{2014}{{\ss \tfd \bf Correction du devoir
maison de Mathématiques} }{{\ss \bf \tfd 9}}

\startex
 \input knuth
 \stopex
\stoptext

##

\startenvironment environ-2

\loadtypescriptfile[mathdesign]

\definetypeface [mainface] [rm] [serif] [palatino] [default]

\definetypeface [mainface] [tt] [mono]  [modern] [default] [rscale=0.9]

\definetypeface [mainface] [mm] [math]  [xits] [default]

\setupbodyfont[mainface,11pt]

\setuppagenumbering[location=]

\setupexternalfigures[location={local,global,default}]

\setupexternalfigures[directory=/home/fab/Seconde/2013_2014/Figures/]

\mainlanguage[fr]

\stopenvironment


Thanks Hans for this header


% macros=mkvi

\startenvironment header

\environment environ-2

\starttexdefinition MyOtherHeader #where #day #month #year #title #number

\defineoverlay[whatever][\useMPgraphic{whatever}]

\startuseMPgraphic{whatever}
 path p;
 p:=fullsquare xyscaled (\overlaywidth,\overlayheight) squeezed 1pt;
 fill p withcolor white ;
 draw p withpen pencircle scaled 2pt withcolor 0.625white ;
 picture d ;
 d :=
textext(\quad#where\space\endash\space\date[d=#day,m=#month,y=#year]\quad)
 shifted .5[ulcorner p,urcorner p];
 fill boundingbox d withcolor white ; draw d ;
setbounds currentpicture to p ;
\stopuseMPgraphic

\framed [
width=\hsize,
height=5em,
foregroundstyle=\itxx,
background=whatever,
frame=off,
]
   {#title
\space
{\ss\tfc\bf n \high{\tfa \bf o}}
\space
#number
}

\stoptexdefinition

\stopenvironment


Thanks Wolfgang for this environment

#
\startenvironment environ-3

\defineenumeration
  [ex]
  [text={Exercice},
   headstyle={\bf\feature[+][f:smallcaps]},
   inbetween={\blank[small]},
   stopper={.}]



\stopenvironment

#
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___