ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* mathml linebreak?
@ 2013-06-09 10:22 Steffen Wolfrum
  2013-06-09 14:49 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Steffen Wolfrum @ 2013-06-09 10:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

usually it is possible to break long formulas.

But is there a way to do so, when formula is coded in mathml (see example below)?

Thanks, Steffen

-------

\placeformula\startformula[9pt]
\setbuffer <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML">
<msub xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>C</mi>
<mi>E</mi>
</mrow>
<mrow>
<mi>A</mi>
</mrow>
</msub>
<mo xmlns="http://www.w3.org/1998/Math/MathML">=</mo>
<mi xmlns="http://www.w3.org/1998/Math/MathML">F</mi>
<mo xmlns="http://www.w3.org/1998/Math/MathML">+</mo>
<msup xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi mathvariant="bold">v</mi>
</mrow>
<mrow>
<mi mathvariant="bold">T</mi>
</mrow>
</msup>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold">a</mi>
<mo xmlns="http://www.w3.org/1998/Math/MathML">+</mo>
<msup xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi mathvariant="bold">i</mi>
</mrow>
<mrow>
<mi mathvariant="bold">T</mi>
</mrow>
</msup>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold">a</mi>
<mo xmlns="http://www.w3.org/1998/Math/MathML">-</mo>
<mfrac xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mn>1</mn>
</mrow>
<mrow>
<mn>2</mn>
</mrow>
</mfrac>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold"> </mi>
<msup xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi mathvariant="bold">a</mi>
</mrow>
<mrow>
<mi mathvariant="bold">T</mi>
</mrow>
</msup>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold">K</mi>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold"> </mi>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold">a</mi>
<mo xmlns="http://www.w3.org/1998/Math/MathML">-</mo>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="normal">m</mi>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="normal">a</mi>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="normal">x</mi>
<mfenced xmlns="http://www.w3.org/1998/Math/MathML" separators=".">
<mrow>
<msub>
<mrow>
<mi>λ</mi>
</mrow>
<mrow>
<mn>1</mn>
</mrow>
</msub>
<mo>,</mo>
<msub>
<mrow>
<mi>λ</mi>
</mrow>
<mrow>
<mn>2</mn>
</mrow>
</msub>
<mo>,</mo>
<mo>…</mo>
<mo>,</mo>
<msub>
<mrow>
<mi>λ</mi>
</mrow>
<mrow>
<mi>n</mi>
</mrow>
</msub>
</mrow>
</mfenced>
<mo xmlns="http://www.w3.org/1998/Math/MathML">·</mo>
<mfenced xmlns="http://www.w3.org/1998/Math/MathML" open="[" close="]" separators=".">
<mrow>
<mi>c</mi>
<mo>-</mo>
<msup>
<mrow>
<mi mathvariant="bold">f</mi>
</mrow>
<mrow>
<mi mathvariant="bold">T</mi>
</mrow>
</msup>
<mi mathvariant="bold">a</mi>
<mo>+</mo>
<mi>l</mi>
<mfenced separators=".">
<mrow>
<msup>
<mrow>
<mi mathvariant="bold">v</mi>
</mrow>
<mrow>
<mi mathvariant="bold">T</mi>
</mrow>
</msup>
<mi mathvariant="bold">a</mi>
</mrow>
</mfenced>
</mrow>
</mfenced>
<mo xmlns="http://www.w3.org/1998/Math/MathML">-</mo>
<mfrac xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>r</mi>
</mrow>
<mrow>
<mn>2</mn>
</mrow>
</mfrac>
<msup xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mfenced open="{" close="}" separators=".">
<mrow>
<mi mathvariant="bold">λ</mi>
<mi mathvariant="bold"> </mi>
<mo>⊙</mo>
<mfenced open="[" close="]" separators=".">
<mrow>
<mfenced separators=".">
<mrow>
<mn>1</mn>
<mo>-</mo>
<mi>l</mi>
</mrow>
</mfenced>
<mi mathvariant="bold">v</mi>
<mo>+</mo>
<mi mathvariant="bold">f</mi>
</mrow>
</mfenced>
</mrow>
</mfenced>
</mrow>
<mrow>
<mi mathvariant="bold">T</mi>
</mrow>
</msup>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold"> </mi>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="bold">Σ</mi>
<mi xmlns="http://www.w3.org/1998/Math/MathML" mathvariant="normal"> </mi>
<mfenced xmlns="http://www.w3.org/1998/Math/MathML" open="{" close="}" separators=".">
<mrow>
<mi mathvariant="bold">λ</mi>
<mi mathvariant="bold"> </mi>
<mo>⊙</mo>
<mfenced open="[" close="]" separators=".">
<mrow>
<mfenced separators=".">
<mrow>
<mn>1</mn>
<mo>-</mo>
<mi>l</mi>
</mrow>
</mfenced>
<mi mathvariant="bold">v</mi>
<mo>+</mo>
<mi mathvariant="bold">f</mi>
</mrow>
</mfenced>
</mrow>
</mfenced>
</mml:math>\endbuffer{\processxmlbuffer}
\stopformula
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-09 14:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-09 10:22 mathml linebreak? Steffen Wolfrum
2013-06-09 14:49 ` Aditya Mahajan

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).