找回密码
 快速注册
搜索
查看: 35|回复: 0

LaTeXML 表格 \cline 和 \multicolumn 测试

[复制链接]

3149

主题

8387

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65396
QQ

显示全部楼层

hbghlyj 发表于 2022-6-6 03:23 |阅读模式
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. \]
复制代码

可以转换为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:

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 16:04

Powered by Discuz!

× 快速回复 返回顶部 返回列表