-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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 fails parse nested tables #4746
Comments
Should be around |
Thanks, I created this fix: e91b74c Right now there are two problems I'm facing with this. Firstly, I don't know how to add the column prefixes and suffixes to each cell (as in e91b74c#diff-1c5206ea07dccd86de1ea3be10ff30d9L2632). I'm not sure how to get the tokens from an already parsed table cell. Alternatively one could somehow insert the prefix and suffix tokens into the token stream. I don't see how this is possible currently. Secondly, we would need to settle on which characters to treat as LaTeX control characters (and not parse as strings in inline - see |
I guess @jgm is more familiar with the LaTeX reader... |
I'm facing the same issue right now using My table has a header that is a \begin{table}[ht]
\begin{tabular}{@{}lr@{}}
\toprule
\textbf{Simple header} & \textbf{\begin{tabular}[c]{@{}r@{}}Multiline\\ header \\ right aligned\end{tabular}} \\
\midrule
Foo & 123 \\
Bar & 456 \\
\bottomrule
\end{tabular}
\end{table} Are there plans to fix this? Or is there perhaps an extension that can circumvent or solve this problem in the meantime? |
You might not need to have a nested tabular to achieve what you want, here's an example of side by side tables: |
I agree! However in my specific case I use pandoc for parsing third party LaTeX source in a text analysis pipeline (to extract document data for research purposes). |
Just ran into this as well! |
This should be valid latex, however it fails to parse with pandoc compiled from today's master branch. I'm looking into the latex reader, maybe someone can give me pointers where this can be fixed
input: tables.tex
Executing
pandoc tables.tex
gives me this error:pandoc 2.2.1
Compiled with pandoc-types 1.17.5, texmath 0.11, skylighting 0.7.2
The text was updated successfully, but these errors were encountered: