0

I'm using JEuclid library for rendering MathML script. I want to display data tables using MathML.

I googled it but all the results describe mtable with examples showing describing matrices.

So, I'm puzzled whether it is possible. In our current framework, it's not possible to use any other resources except graphics object of JPanel or MathML script.

So, please point me in the right direction. Any links to examples would be highly appreciated.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
pinkpanther
  • 4,770
  • 2
  • 38
  • 62
  • what do you mean - data tables - just grids of numbers? – Randy May 18 '13 at 12:48
  • @Randy like statistics tables....like html tables (no hifi formatting needed) – pinkpanther May 18 '13 at 12:50
  • I doubt if this question really fits in stackoverflow, is there any stackexchange site to which this question fits more perfectly...? – pinkpanther May 18 '13 at 14:03
  • My impression from a quick glance through the MathML spec is that the only `table` construction (in presentation MathML, at least) is `mtable`, so I suspect that what you want to acheive would better be done using the HTML `` element. Something like `
    3.20
    .2345.12
    `.
    – Bruno Le Floch May 19 '13 at 10:36
  • @BrunoLeFloch but can JEuclid render that html script? – pinkpanther May 19 '13 at 11:01
  • @pinkpanther I don't know, and haven't got time to install JEuclid. Have you tried with the HTML `` element? Have you tried with ``, and if so, what is the output, and what is wrong with it?
    – Bruno Le Floch May 19 '13 at 11:26
  • @BrunoLeFloch there is no table element in mathml. Possibly mtable is the way for both matrices and tables, that's what i'm trying to do now. – pinkpanther May 19 '13 at 13:04

1 Answers1

1

mtable is not specifically for matrices (in particular it does not add parenthesis around the data) It is used for all vertical alignment layouts such as tables and aligned equations.

David Carlisle
  • 5,582
  • 1
  • 19
  • 23
  • thanks, I would be delighted if you could give me an example sort of thing or at least the links to the page, where is such an example is made :) – pinkpanther Jun 11 '13 at 12:43
  • @pinkpanther not sure what example you want, you just surround each number with `` surround each row with `` and surround the whole table with `` – David Carlisle Jun 11 '13 at 13:58
  • I mean the example which shows how to write script which seem like a table, with cols and rows in between borders.... is it possible? does it give flexibility as such? – pinkpanther Jun 11 '13 at 14:07
  • @pinkpanther http://www.w3.org/Math/testsuite/build/main/Presentation/TablesAndMatrices/mtable/mtableAlines2-simple.xhtml – David Carlisle Jun 11 '13 at 14:13
  • thank you very much... :) these things don't come up in google much... and not cared in SO either.... I posted in `tex.stackexchange.com` and was offtopic there.. finally you have solved my problem.... :) thanks .... – pinkpanther Jun 11 '13 at 14:19