From: Hans Hagen <pragma@wxs.nl>
Subject: Re: <?context-mathml-directive times symbol yes?> not working
Date: Sat, 15 Apr 2006 00:46:45 +0200 [thread overview]
Message-ID: <44402655.8060505@wxs.nl> (raw)
In-Reply-To: <42069A4D-8624-4DC2-99B2-7C58FF2C7FA2@louspringer.com>
Louis Springer wrote:
> I have a simple formula where I would like to use the times symbol
> and the directive does not appear to be working. Am I doing something
> wrong here?
>
> \usemodule[MathML]
> \useXMLfilter[mml,mmp,mmc] % basic mathml/presentational/content
>
> \starttext
>
> \startXMLdata
> <?context-mathml-directive times symbol yes?>
> <formula>
> <math>
> <apply><eq/>
> <ci> c </ci>
> <apply> <times/>
> <ci> s </ci>
> <ci> f </ci>
> </apply>
> </apply>
> </math>
> </formula>
> \stopXMLdata
>
> \stoptext
>
>
> Using a setup also appears to be ineffective, e.g.
>
> \setupMMLappearance[times][symbol=yes]
>
change this in xtag-mmc:
\def\MMLcTIMES#1#2#3\empty
{\setMMLcreset{\MMLcfunctionlist,\MMLcconstructlist}%
\doifelse\@@MMLtimesauto\v!no
{\let\@@MMLtimes@@symbol\@@MMLtimessymbol}
{\doifelseXMLRneighbors{cn}{#3}
{\let\@@MMLtimes@@symbol\v!yes}
{\let\@@MMLtimes@@symbol\@@MMLtimessymbol}}%
\doifelse\@@MMLtimes@@symbol\v!yes
{\encapsulateXMLR{}{\times}{}{#3\empty}}
{\doifelse\@@MMLtimes@@symbol{dot}
{\encapsulateXMLR{}{\cdot}{}{#3\empty}}
{#3\empty}}}
however, better si to use
\usemodule[newmml] % soon thsi will be the default
\usemodule[MathML]
^^^^^^ mathml
\useXMLfilter[mml,mmp,mmc] % basic mathml/presentational/content
this is then not needed! (the mathml module does this)
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
prev parent reply other threads:[~2006-04-14 22:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-14 19:40 Louis Springer
2006-04-14 22:46 ` Hans Hagen [this message]
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=44402655.8060505@wxs.nl \
--to=pragma@wxs.nl \
--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).