W3C home > Mailing lists > Public > www-math@w3.org > February 2010

Re: How to translate \cases{...}. Online repository of examples

From: Deyan Ginev <d.ginev@jacobs-university.de>
Date: Tue, 23 Feb 2010 11:24:00 +0100
Message-ID: <4B83ACC0.1010309@jacobs-university.de>
To: "J.Fine" <j.fine@open.ac.uk>, 'David Carlisle' <davidc@nag.co.uk>, "'www-math@w3.org'" <www-math@w3.org>
Dear Jonathan,

LaTeXML <http://dlmf.nist.gov/LaTeXML/> already translates this example 
accurately, when used inside a {cases} environment:

            ...
            <m:mrow>
              <m:mtext>for&nbsp;</m:mtext>
              <m:mrow>
                <m:mi>x</m:mi>
                <m:mo>&lt;</m:mo>
                <m:mn>1</m:mn>
              </m:mrow>
              <m:mtext>&nbsp;or&nbsp;</m:mtext>
              <m:mrow>
                <m:mi>y</m:mi>
                <m:mo>=</m:mo>
                <m:mn>0</m:mn>
              </m:mrow>
            </m:mrow


Cheers,
-- 
Deyan Ginev, Jacobs Univ. Bremen, http://kwarc.info/people/dginev



J.Fine wrote:
> Thank you, David, for this URL
>
>   
>> http://www.openmath.org/cd/piece1.xhtml#otherwise
>>     
>
> This example shows that, for example,
>    \text{for $x < 1$ or $y=0$}
> must be translated into something like
>    mrow
>       mtext for
>       $x < 1$
>       mtext or
>       $y=0$
>
> Does anyone know if any of the TeX to MathML translators perform this translation?
>
> --
> Jonathan
>
>
> The Open University is incorporated by Royal Charter (RC 000391), an exempt charity in England & Wales and a charity registered in Scotland (SC 038302).
>
>
>
>   
Received on Tuesday, 23 February 2010 13:50:06 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 23 February 2010 13:50:07 GMT