Comments (2)
This isn't really a MathJax issue, it's an itex
issue.
In MathML, the functionality you want is controlled by the columnlines
and rowlines
attributes on the mtable
element. Thus the following MathML output produces the table you want:
<math class='maruku-mathml' display='block' xmlns='http://www.w3.org/1998/Math/MathML'>
<mtable columnalign='right right right right right' columnlines='solid none none none' rowlines='solid none none none' displaystyle='false' rowspacing='0.5ex'>
<mtr><mtd>*</mtd> <mtd><mi>A</mi></mtd> <mtd><mi>B</mi></mtd> <mtd><mi>C</mi></mtd> <mtd><mi>D</mi></mtd></mtr>
<mtr><mtd><mi>A</mi></mtd> <mtd><mi>A</mi></mtd> <mtd><mi>B</mi></mtd> <mtd><mi>C</mi></mtd> <mtd><mi>D</mi></mtd></mtr>
<mtr><mtd><mi>B</mi></mtd> <mtd><mi>B</mi></mtd> <mtd><mn>2</mn><mi>B</mi></mtd> <mtd><mi>D</mi></mtd> <mtd><mn>2</mn><mi>D</mi></mtd></mtr>
<mtr><mtd><mi>C</mi></mtd> <mtd><mi>C</mi></mtd> <mtd><mi>D</mi></mtd> <mtd><mi>C</mi><mo>+</mo><mi>D</mi></mtd> <mtd><mn>3</mn><mi>D</mi></mtd></mtr>
<mtr><mtd><mi>D</mi></mtd> <mtd><mi>D</mi></mtd> <mtd><mn>2</mn><mi>D</mi></mtd> <mtd><mn>3</mn><mi>D</mi></mtd> <mtd><mn>6</mn><mi>D</mi></mtd></mtr>
</mtable>
</math>
Unfortunately, itex
doesn't currently support the columnlines
and rowlines
attributes (neither using the "standard" LaTeX syntax you were using, nor via some alternative syntax).
This is an unfortunate omission, which I hope to rectify in the next version of itex2MML.
from instiki.
So I've been thinking some more about this, but I am a bit stymied. The semantics of columnlines
, rowlines
(and, as I'll explain, frame
) are completely different from what's allowed in the LaTeX array environment.
columnlines
androwlines
control the lines between rows/columns. LaTeX allows you to put a vertical line before the first column or after the last one, merely by inserting a "|
" (and similarly for an "hline
" before the first row or after the last row). In MathML, the only option (controlled by theframe
attribute) is whether to put a box around the entire array.- In LaTeX, you can insert a double (or triple or whatever) line with a "
||
" (or "\hline\hline
"). In MathML, the only options are "none", "solid" or "dashed".
Setting aside the intricacies of how to implement something like this, these incompatibilities are going to create serious headaches ...
from instiki.
Related Issues (20)
- Ruby and Rails versions HOT 20
- View Original Page Source when Editing Page HOT 7
- Search result page broken (not valid xml) HOT 1
- Emojis in wiki pages not working when editing page HOT 5
- MySQL UTF8 not working after DB restore HOT 3
- Redirection to localhost HOT 3
- Unable to Install of Mac 10.14.6 HOT 7
- Heroku Install Error HOT 18
- Interweb links not working with [[!include web:pagename]] HOT 2
- Re: Interweb links not working with [[!include web:pagename]] HOT 5
- Minor tweaks to improve page creation workflow HOT 3
- Simple way to disable MathJax? HOT 2
- Edit on Heroku deploy results in "undefinedundefined" on sub pages HOT 2
- SVG creation does not work, Instiki 0.30.2(MML+), Heroku, HOT 6
- Running Instiki with Ruby 3.0 HOT 5
- Cache expiration race conditions HOT 15
- Missing index for wiki_references causes high loading times HOT 3
- Broken page cache expiration logic HOT 9
- Instiki Gemfile broken after release of Rack 3 HOT 2
- Dockerfile fails to build HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instiki.