Dear list members,

 

Is it possible to combine modes and MetaFun?

 

In the below MWE, the \doifmode construction does not work.

 

Kind regards,

Jan Willem Flamma

 

===

\enablemode[en]

%\enablemode[nl]

 

\starttext

 

\startbuffer[square]

    u := 2cm ;

    draw unitsquare scaled u ;

 

    drawdblarrow (0,-0.2u)..(u,-0.2u) ;

    drawdblarrow (1.2u, 0)..(1.2u, u) ;

 

    %\doifmode{en}{label(\sometxt{length},  (0.5u,-0.4u)) ;}

    %\doifmode{nl}{label(\sometxt{lengte},  (0.5u,-0.4u)) ;}

 

    %\doifmode{en}{label(\sometxt{width},   (1.6u, 0.5u)) ;}

    %\doifmode{nl}{label(\sometxt{breedte}, (1.6u, 0.5u)) ;}

\stopbuffer

 

\placefigure

    [here,none][]{}

    {\scale[width=0.5\textwidth]{\processMPbuffer[square]}}

 

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

Reply via email to