Forgot password?
 Register account
View 241|Reply 0

LaTeXML 表格 \cline 和 \multicolumn 测试

[Copy link]

3158

Threads

7933

Posts

45

Reputation

Show all posts

hbghlyj posted 2022-6-6 03:23 |Read mode
latexml.mathweb.org/editor
  1. \[
  2. \begin{array}{rr|rrrrr}
  3. &\multicolumn{1}{c}{}&\multicolumn{5}{c}{\mbox{Demands}}\\
  4. &\multicolumn{1}{c}{}&100&100&100&100&100\\
  5. \cline{3-7}
  6. &100&100&100&100&100&100\\
  7. \mbox{Supplies}&100&100&100&100&100&100\\
  8. &100&100&100&100&100&100
  9. \end{array}
  10. \]
Copy the Code
可以转换为MathML+css:
main-modified.png

main-modified.png

MathJax暂时不支持 \cline 和 \multicolumn :
groups.google.com/g/mathjax-users/c/zjsFEPtcXMs
github.com/mathjax/MathJax/issues/2448
The \multicolumn macro would require support for the MathML colspan attribute for the mtable element. That is certainly on the desired feature list, but is not currently being worked on, and likely won't be for a while, I'm sorry to say.
Pandoc: pandoc.org/MANUAL.html
Extension: multiline_tables

Multiline tables allow header and table rows to span multiple lines of text (but cells that span multiple columns or rows of the table are not supported). Here is an example:

Quick Reply

Advanced Mode
B Color Image Link Quote Code Smilies
You have to log in before you can reply Login | 快速注册

$\LaTeX$ formula tutorial

Mobile version

2025-6-8 07:05 GMT+8

Powered by Discuz!

Processed in 0.017384 second(s), 24 queries

× Quick Reply To Top Edit