Nicer/Simpler tables (#107)

* Make headrow in tables bold

* Simplify tables markup

- Markup is definitely simpler.
- Will not be built separately in a pdf anymore.
- Fixed some typo as well
- Relatively coherent look
- Can be better, some sizes are relatively arbitrary

* Remove horizontal separation inside tables

Not very nice if you ask me..
This commit is contained in:
cedounet
2023-06-01 14:38:37 +02:00
committed by GitHub
parent f0a3deaac3
commit 037ae6d7fd
25 changed files with 209 additions and 257 deletions

View File

@@ -1,14 +1,12 @@
\input{./vars}
\begin{document}
\begin{tabular}{lll}
%TODO: last line is not great
\begin{tabular}{@{}>{\bfseries} p{0.15\textwidth}rlrl@{}}
\toprule
& \textbf{Flat breads} & \textbf{Pancakes} \\ \midrule
\textbf{Flour} & 100g & 100g \\ \midrule
\textbf{Water} & 100g (100\%) & 300g (300\%) \\ \midrule
\textbf{Sourdough starter} & 5-20g (5-20\%) & 5-20g (5-20\%) \\ \midrule
\textbf{Salt} & 2g (2\%) & 2g (2\%) \\ \midrule
\textbf{When bake?} & Dough increased 50 percent in size & Bubbles
visible on surface \\ \bottomrule
& \multicolumn{2}{c}{\thead{Flat breads}} & \multicolumn{2}{c}{\thead{Pancakes}} \\ \midrule
Flour & 100g & & 100g & \\
Water & 100g & (100\%) & 300g & (300\%) \\
Sourdough starter & 5--20g & (5--20\%) & 5--20g & (5--20\%) \\
Salt & 2g & (2\%) & 2g & (2\%) \\
Bake when? & \multicolumn{2}{c}{Dough increased by 50\% in size.}
& \multicolumn{2}{c}{Bubbles visible on surface.}\\
\bottomrule
\end{tabular}
\end{document}