ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Steffen Wolfrum <context@st.estfiles.de>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: buff_gobble error MathML
Date: Sat, 8 Jun 2013 16:51:05 +0200	[thread overview]
Message-ID: <190F8CD2-D484-4447-81F0-FE189FE89686@st.estfiles.de> (raw)
In-Reply-To: <9B399A5C-C0ED-47C2-A365-75C904BE9806@gmail.com>


Am 08.06.2013 um 16:18 schrieb Wolfgang Schuster:

> 
> Am 08.06.2013 um 12:53 schrieb Steffen Wolfrum <context@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>
<mi>j</mi>
<mi>s</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>
<mi>k</mi>
</mrow>
<mrow>
<mi>j</mi>
</mrow>
</msub>
<msub>
<mrow>
<mi>k</mi>
</mrow>
<mrow>
<mi>s</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
___________________________________________________________________________________

  reply	other threads:[~2013-06-08 14:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-08 10:53 Steffen Wolfrum
2013-06-08 14:18 ` Wolfgang Schuster
2013-06-08 14:51   ` Steffen Wolfrum [this message]
2013-06-08 15:37     ` Wolfgang Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=190F8CD2-D484-4447-81F0-FE189FE89686@st.estfiles.de \
    --to=context@st.estfiles.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).