vincentdoerig / latex-css

LaTeX.css is a CSS library that makes your website look like a LaTeX document
https://latex.vercel.app
MIT License
2.74k stars 125 forks source link

Improve table styles #24

Closed vincentdoerig closed 4 years ago

vincentdoerig commented 4 years ago

This is an attempt to make the tables in this library to look more like tables we see in LaTeX.

Before

image

After

image

Same table in actual LaTeX

image
Add two new example tables image

Detailed Changes

TODO

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more). To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/vincentdoerig/latex-css/bugrywxm2 ✅ Preview: https://latex-css-git-better-tables.vincentdoerig.now.sh

tiagofilipesilva commented 4 years ago

How were the \LaTeX tables typset? With a default tabular environment?

vincentdoerig commented 4 years ago

Correct:

\begin{tabular}{@{}lll@{}} \toprule
    Header 1        & Header 2        & Header 3      \\ \midrule
    Description 1 & Description 2 & Description 3 \\
    Description 1 & Description 2 & Description 3 \\
    Description 1 & Description 2 & Description 3 \\ \midrule
    Footer 1      & Footer 2      & Footer 3      \\ \bottomrule 
\end{tabular}