Open yzh119 opened 1 year ago
I believe it's a real issue. We would love to have your fix.
For Mogan Editor 1.2.x, LaTeX support will be maintained as a built-in plugin. In this way, it is community driven. We could release the LaTeX conversion plugin more often.
Sounds good to me.
documented in https://github.com/XmacsLabs/mogan/blob/branch-1.2/devel/43_6.tm now
For Mogan Editor 1.2.x, LaTeX support will be maintained as a built-in plugin.
Here is the latex plugin: https://github.com/XmacsLabs/latex
Problem
In TeXmacs, we can use "Join selected cells" to join several cells to form a large cell in a block(table), this is a common operation in scientific papers.
e.g. here is the original block:
after joining c/d and e/f together, the block looks like this:
if we look into the source
.tm
code before and after the join operation:before-join:
after-join:
The only difference exists in
cell-col-span
where the "after-join" block indicates the cell at (1,3) and (2,1) should have column width 2. Both blocks have the same content:<table|<row|<cell|a>|<cell|b>|<cell|c>|<cell|d>>|<row|<cell|e>|<cell|f>|<cell|g>|<cell|h>>>
thoughf
andd
didn't appear in "after-join" block when viewed in Texmacs.However, when exporting to LaTeX, the generated LaTeX file does not reflect the column width specified by
cwith
tags, here is the generated LaTeX tabular:Expected Behavior
LaTeX has
multicolumn
andmultirow
commands which could precisely describe the semantics of joined cells:p.s. I know the problem also exists in upstream TeXmacs but I'd love to contribute a fix to Mogan first if we can confirm it's a real issue.