[NTG-context] buff_gobble error MathML

2013-06-08 Thread Steffen Wolfrum
Hi friends,

we need to run MathML inside \sym (see below).
Is there a way to solve the error ! Argument of \buff_gobble has an extra }.

Thanks, Steffen
---
\usemodule[mathml] \starttext

\setupitemize[1][broad][margin=no,distance=0em,width=0em,align=stretch]

\startitemize[1][width=5cm]

\sym{\startbuffer mml:math xmlns:mml=http://www.w3.org/1998/Math/MathML;
msub xmlns=http://www.w3.org/1998/Math/MathML;
mrow
mig/mi
/mrow
mrow
mn1/mn
/mrow
/msub
mo xmlns=http://www.w3.org/1998/Math/MathML;,/mo
mi xmlns=http://www.w3.org/1998/Math/MathML; /mi
msub xmlns=http://www.w3.org/1998/Math/MathML;
mrow
mig/mi
/mrow
mrow
mn2/mn
/mrow
/msub
/mml:math\stopbuffer\processxmlbuffer}Vektor

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


Re: [NTG-context] buff_gobble error MathML

2013-06-08 Thread Wolfgang Schuster

Am 08.06.2013 um 12:53 schrieb Steffen Wolfrum cont...@st.estfiles.de:

 Hi friends,
 
 we need to run MathML inside \sym (see below).
 Is there a way to solve the error ! Argument of \buff_gobble has an extra }.

You can’t use \startbuffer … \stopbuffer in other commands but with \setbuffer
there is a command which can be used here.

  \sym{\setbuffer … \endbuffer\processxmlbuffer}

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
___


Re: [NTG-context] buff_gobble error MathML

2013-06-08 Thread Steffen Wolfrum

Am 08.06.2013 um 16:18 schrieb Wolfgang Schuster:

 
 Am 08.06.2013 um 12:53 schrieb Steffen Wolfrum cont...@st.estfiles.de:
 
 Hi friends,
 
 we need to run MathML inside \sym (see below).
 Is there a way to solve the error ! Argument of \buff_gobble has an extra 
 }.
 
 You can’t use \startbuffer … \stopbuffer in other commands but with \setbuffer
 there is a command which can be used here.
 
 \sym{\setbuffer … \endbuffer\processxmlbuffer}



great, thanks. but this immediately gives the next error: invalid xml file - 
parsed text

what's wrong with the code below?

Steffen
---

\usemodule[mathml] \starttext


\setbuffer mml:math xmlns:mml=http://www.w3.org/1998/Math/MathML;
mn xmlns=http://www.w3.org/1998/Math/MathML;0/mn
mo xmlns=http://www.w3.org/1998/Math/MathML;≤/mo
msub xmlns=http://www.w3.org/1998/Math/MathML;
mrow
miδ/mi
/mrow
mrow
mij/mi
mis/mi
/mrow
/msub
mo xmlns=http://www.w3.org/1998/Math/MathML;/mo
mroot xmlns=http://www.w3.org/1998/Math/MathML;
mrow
msub
mrow
mik/mi
/mrow
mrow
mij/mi
/mrow
/msub
msub
mrow
mik/mi
/mrow
mrow
mis/mi
/mrow
/msub
/mrow
mrow/
/mroot
/mml:math\endbuffer\processxmlbuffer

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

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

Re: [NTG-context] buff_gobble error MathML

2013-06-08 Thread Wolfgang Schuster

Am 08.06.2013 um 16:51 schrieb Steffen Wolfrum cont...@st.estfiles.de:

 
 Am 08.06.2013 um 16:18 schrieb Wolfgang Schuster:
 
 
 Am 08.06.2013 um 12:53 schrieb Steffen Wolfrum cont...@st.estfiles.de:
 
 Hi friends,
 
 we need to run MathML inside \sym (see below).
 Is there a way to solve the error ! Argument of \buff_gobble has an extra 
 }.
 
 You can’t use \startbuffer … \stopbuffer in other commands but with 
 \setbuffer
 there is a command which can be used here.
 
 \sym{\setbuffer … \endbuffer\processxmlbuffer}
 
 
 
 great, thanks. but this immediately gives the next error: invalid xml file - 
 parsed text
 
 what's wrong with the code below?

Replace the  operator with lt;

 […]
 mo xmlns=http://www.w3.org/1998/Math/MathML;/mo
 […]

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
___