metanorma / tex2mn

Write Metanorma documents in LaTeX
https://www.metanorma.com
MIT License
2 stars 0 forks source link

Support for multi-column table cells in AsciiDoc output #103

Open manuelfuenmayor opened 4 years ago

manuelfuenmayor commented 4 years ago

From https://github.com/metanorma/mn-samples-tex-iso/issues/5

The LaTeX command: \multicolumn{num_cols}{alignment}{contents} for multi-column cells, generates the wrong result in AsciiDoc output. For example,

This LaTeX code:

\begin{tabular}{ |l|l| }
    \multicolumn{2}{|c|}{Team sheet} \\
    GK & Paul Robinson \\
    LB & Lucas Radebe \\
    DC & Michael Duberry \\
    DC & Dominic Matteo \\
\end{tabular}

Results in,

[cols=2*]
| Team sheet
|===
| GK
| Paul Robinson

| LB
| Lucas Radebe

| DC
| Michael Duberry

| DC
| Dominic Matteo
|===

But the expected result should be:

[cols=2*]
|===
2+^| Team sheet

| GK
| Paul Robinson

| LB
| Lucas Radebe

| DC
| Michael Duberry

| DC
| Dominic Matteo
|===