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

[html] Issues with \begin{tabular} #36

Open
udovin opened this issue Jun 9, 2023 · 3 comments
Open

[html] Issues with \begin{tabular} #36

udovin opened this issue Jun 9, 2023 · 3 comments

Comments

@udovin
Copy link
Contributor

udovin commented Jun 9, 2023

I noticed that there are some problems with \begin{tabular}. For example, \hline are not recognized correctly.

Some examples from Overleaf that incorrectly rendered:

\begin{center}
\begin{tabular}{ |c|c|c| } 
 \hline
 cell1 & cell2 & cell3 \\ 
 cell4 & cell5 & cell6 \\ 
 cell7 & cell8 & cell9 \\ 
 \hline
\end{tabular}
\end{center}

In this case no horizontal lines was rendered.

Also seems like tabular does not support double solid borders:

\begin{center}
\begin{tabular}{||c c c c||} 
 \hline
 Col1 & Col2 & Col2 & Col3 \\ [0.5ex] 
 \hline\hline
 1 & 6 & 87837 & 787 \\ 
 \hline
 2 & 7 & 78 & 5415 \\
 \hline
 3 & 545 & 778 & 7507 \\
 \hline
 4 & 545 & 18744 & 7560 \\
 \hline
 5 & 88 & 788 & 6344 \\ [1ex] 
 \hline
\end{tabular}
\end{center}
@siefkenj
Copy link
Owner

What do you mean they are not recognized correctly? The pretty printer at https://siefkenj.github.io/latex-parser-playground/ seems to format both of those examples correctly.

@udovin
Copy link
Contributor Author

udovin commented Jun 10, 2023

I mean the problem with rendering to html. Only left and right borders are added.

First example:
CB6B88E5-E293-4ACA-B25B-C613E9E322D0

How it was rendered in playground:
54C00FEE-EDE7-4D89-AFAB-65CA18314E51

@siefkenj siefkenj changed the title Issues with \begin{tabular} [html] Issues with \begin{tabular} Jun 10, 2023
@siefkenj
Copy link
Owner

Thanks, I understand now! I am not sure when I'll have a chance to look at this, but if you want to investigate, the relevant code should be near

function createTableFromTabular(env: Ast.Environment) {

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

No branches or pull requests

2 participants