Am 28.07.2014 um 16:15 schrieb Xan <dxpubl...@telefonica.net>:

> Hi,
> 
> Any hint on that [https://github.com/adityam/filter/issues/17], please?

Don’t use \doifmode{…}{…} etc. with buffers or environments which rely on a 
buffer because you disable the function to keep end of lines in the input.

What you have to do in this case is to use the \startmode or \startnotmode 
commands.

\usemodule[filter]

\defineexternalfilter
    [python]
    [filtercommand={python \externalfilterinputfile\space > 
\externalfilteroutputfile},cache=force]

\starttext

\startmode[solucions]

\starttextrule{Solucions}

\startpython
from sympy.solvers import solve
from sympy import Symbol
from sympy import Eq

x = Symbol('x')
print(solve(Eq(3*x + 2, 35), x))
\stoppython

\stoptextrule

\stopmode

\stoptext

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
___________________________________________________________________________________

Reply via email to