Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LaTeX reader - support new table features #6311

Open
jgm opened this issue Apr 24, 2020 · 4 comments · Fixed by #6470
Open

LaTeX reader - support new table features #6311

jgm opened this issue Apr 24, 2020 · 4 comments · Fixed by #6470

Comments

@jgm
Copy link
Owner

jgm commented Apr 24, 2020

Adjust LaTeX reader to support new table features introduced in
jgm/pandoc-types#66
including table attributes (including identifier), rowspan, colspan, table head and foot, multiple header lines, row headers, captions that allow block-level content and include an optional short caption.

@jgm jgm changed the title LaTeX tables - support new table features LaTeX reader - support new table features Apr 24, 2020
@jgm jgm mentioned this issue Apr 24, 2020
9 tasks
@LaurentRDC
Copy link
Contributor

I'm interested in creating a patch for this. I'll play around today and create a work-in-progress PR soon.

@jgm jgm closed this as completed in #6470 Jul 23, 2020
jgm pushed a commit that referenced this issue Jul 23, 2020
Add multirow and multicolumn support in LaTex reader.
Partially addresses #6311.
@jgm jgm reopened this Jul 23, 2020
@kysko
Copy link

kysko commented Aug 6, 2020

from an example in the code:

\begin{tabular}{ |l|l|l| }
\multicolumn{2}{c}{One} & Two \\
\end{tabular}

does give the desired effect.
However, this one doesn't span and loses the text in the multicol:

\begin{tabular}{ |l|l|l| }
Two & \multicolumn{2}{c}{One} \\
\end{tabular}

Similarly,

\begin{tabular}{ |l|l| }
\multirow{2}{c}{One} & Two \\
a
\end{tabular}

gives the desired result, but not the following one (no row span, text lost):

\begin{tabular}{ |l|l| }
Two & \multirow{2}{c}{One} \\
a
\end{tabular}

(pandoc 2.10.1 on win10x64, but verifiable on the demo page)

I noticed this when I tried to successive multicols and failed, but it appears from the above there is a problem for a right-most multicolumn/multirow (at least that)

@LaurentRDC
Copy link
Contributor

Hi @kysko,

Can you create a new issue for this? I'll take a look at what's going on.

@kysko
Copy link

kysko commented Aug 6, 2020

ok, thought this was kept open for these reports, sorry

see #6596 for separate issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants