From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75139 Path: news.gmane.org!not-for-mail From: "Meer, H. van der" Newsgroups: gmane.comp.tex.context Subject: mathml question Date: Sat, 17 Mar 2012 13:51:41 +0000 Message-ID: <07F300E3-16AD-4EC1-8ED2-547A02F294C8@uva.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0978947520==" X-Trace: dough.gmane.org 1331992314 7492 80.91.229.3 (17 Mar 2012 13:51:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Mar 2012 13:51:54 +0000 (UTC) To: ConTeXt NTG Original-X-From: ntg-context-bounces@ntg.nl Sat Mar 17 14:51:54 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S8u2t-000542-WC for gctc-ntg-context-518@m.gmane.org; Sat, 17 Mar 2012 14:51:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9F9BB10210; Sat, 17 Mar 2012 14:51:46 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2q++yUEupONe; Sat, 17 Mar 2012 14:51:44 +0100 (CET) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A6276101E1; Sat, 17 Mar 2012 14:51:44 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4D518101E1 for ; Sat, 17 Mar 2012 14:51:44 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id xaJZc6WMOq0N for ; Sat, 17 Mar 2012 14:51:43 +0100 (CET) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 19F4210194 for ; Sat, 17 Mar 2012 14:51:43 +0100 (CET) Original-Received: from jansen.uva.nl (jansen.uva.nl [146.50.108.229]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q2HDpgi7019124 for ; Sat, 17 Mar 2012 14:51:42 +0100 Original-Received: from ketelaar.uva.nl ([fe80::cc61:4c73:c438:df97]) by jansen.uva.nl ([146.50.108.229]) with mapi id 14.01.0355.002; Sat, 17 Mar 2012 14:51:42 +0100 Thread-Topic: mathml question Thread-Index: AQHNBEUVhSmMG2gEN0y8AJYuUIfOtw== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [82.95.102.36] X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=146.50.108.229; country=NL; region=07; city=Amsterdam; latitude=52.3500; longitude=4.9167; http://maps.google.com/maps?q=52.3500,4.9167&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NGKBPGBH - 47bb83420323 - 20120317 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:75139 Archived-At: --===============0978947520== Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_07F300E316AD4EC18ED2547A02F294C8uvanl_" --_000_07F300E316AD4EC18ED2547A02F294C8uvanl_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable There is something in the processing of mathml I do not understand. I keep the xml-node in a \startxmlsetups my:setup \def\mynode{#1} \stopxmlsetups Doing \xmlflush{\mynode} does typeset the contents of mynode, but not when = mynode contains a mathml tree! Then the error is: Undefined control sequence ... \MMLhack ->\let \MMLpar \par \let \par \relax \everyvbox {\let \par \MMLpar= } \12>:mml:math ...}} {\automathematics }}{\MMLhack \xmlflush {#1}}\endgroup Tested it with a simple: x The strange thing is, when putting the mathlml tree insize mathml-co= ntent where: \startxmlsetups xam:text \xmltrim{#1}\par \stopxmlsetups then typesetting goes without an error! Can someone explain this behaviour? Hans van der Meer --_000_07F300E316AD4EC18ED2547A02F294C8uvanl_ Content-Type: text/html; charset="us-ascii" Content-ID: <2CE3C1F72B21AB4292C25F0DD1E669A9@uva.nl> Content-Transfer-Encoding: quoted-printable
There is something in the processing of mathml I do not understand.
I keep the xml-node in a 
  \startxmlsetups my:setup 
  \def\mynode{#1} 
  \stopxmlsetups

Doing \xmlflush{\mynode} does typeset the contents of mynode, but not = when mynode contains a mathml tree! Then the error is:

Undefined control sequence ...<= /font>
\MMLhack ->\let \MMLpar = ;
        &nb= sp;               \par \let \par \relax = \everyvbox {\let \par \MMLpar }
\12>:mml:math ...}} {\automa= thematics }}{\MMLhack 
        &nb= sp;                     &= nbsp;                   \xmlfl= ush {#1}}\endgroup 

Tested it with a simple:
  <math xmlns=3D'http:/= /www.w3c.org/mathml' version=3D'2.0'>
  <apply><root/> <ci> x </ci> </apply&= gt;
  </math>

The strange thing is, when putting the mathlml tree insize <text>= ; mathml-content </text> where:
  \startxmlsetups xam:text
  \xmltrim{#1}\par
  \stopxmlsetups
then typesetting goes without an error!

Can someone explain this behaviour?

Hans van der Meer



--_000_07F300E316AD4EC18ED2547A02F294C8uvanl_-- --===============0978947520== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0978947520==--