Forgot password?
 Create new account
View 129|Reply 0

LaTeXML 表格 \cline 和 \multicolumn 测试

[Copy link]

3148

Threads

8498

Posts

610K

Credits

Credits
66193
QQ

Show all posts

hbghlyj Posted at 2022-6-6 03:23:55 |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:

手机版Mobile version|Leisure Math Forum

2025-4-21 01:40 GMT+8

Powered by Discuz!

× Quick Reply To Top Return to the list