Improve the look of tables (#99)

In order tho make the tables look better in document:
    1) Remove the vertical separation
    2) Add different width for top/mid/bottom rules
    3) Center them in the page

Co-authored-by: Cédric Andrieu <cedric@cirrus.com>
This commit is contained in:
cedounet
2023-05-25 12:36:30 +01:00
committed by GitHub
parent ca92125df8
commit 77d3a9c75b
23 changed files with 226 additions and 159 deletions

View File

@@ -1,12 +1,12 @@
\input{./vars}
\begin{document}
\begin{tabular}{|l|r|r|}
\hline
\textbf{Ingredient} & \multicolumn{1}{l|}{\textbf{Percent}} & \multicolumn{1}{l|}{\textbf{Calculation}} \\ \hline
1000g flour & 100\% & 1000g of 1000g = 100\% \\ \hline
600g water & 60\% & 600g of 1000g = 60\% \\ \hline
100g sourdough starter & 10\% & 100g of 1000g = 10\% \\ \hline
20g salt & 2\% & 20g of 1000g = 2\% \\ \hline
\begin{tabular}{lrr}
\toprule
\textbf{Ingredient} & \multicolumn{1}{l}{\textbf{Percent}} & \multicolumn{1}{l}{\textbf{Calculation}} \\ \midrule
1000g flour & 100\% & 1000g of 1000g = 100\% \\ \midrule
600g water & 60\% & 600g of 1000g = 60\% \\ \midrule
100g sourdough starter & 10\% & 100g of 1000g = 10\% \\ \midrule
20g salt & 2\% & 20g of 1000g = 2\% \\ \bottomrule
\end{tabular}
\end{document}