Skip to content

Commit

Permalink
White and grey background for provisions and currency tables
Browse files Browse the repository at this point in the history
for better readability on top of a wallpaper
  • Loading branch information
davidfoerster authored and flyx committed Mar 26, 2024
1 parent 7809670 commit 6443cc5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/misc-macros.tex
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,15 @@
\setlength{\tabcolsep}{1pt}
\normalfont\fontsize{8}{12}\selectfont

\begin{tabular}{p{5.3cm}|x{0.8cm}|x{0.8cm}|x{0.8cm}|x{0.8cm}}
\begin{NiceTabular}{p{5.3cm}|x{0.8cm}|x{0.8cm}|x{0.8cm}|x{0.8cm}}
\CodeBefore
\rowcolors{2}{white}{gray!30}
\Body
\dsaTHeading{\Large Proviant / Tränke} & \multicolumn{4}{c}{\normalfont\bfseries\scriptsize Rationen / Ladungen} \\ \hline
\directlua{
common.inner_rows(data.Proviant, 5, common.current_page.Proviant)
}
\end{tabular}
\end{NiceTabular}
\end{dsaSheetBox}
}

Expand All @@ -55,12 +58,15 @@
\setlength{\tabcolsep}{1pt}
\normalfont\fontsize{8}{12}\selectfont

\begin{tabular}{p{2.6cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}}
\multicolumn{2}{l}{\dsaTHeading{\Large Vermögen}} & \multicolumn{7}{l}{\normalfont\tiny (1 Dukate = 10 Silbertaler = 100 Heller = 1000 Kreuzer)} \\ \hline
\begin{NiceTabular}{p{2.6cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}|x{0.7cm}}
\CodeBefore
\rowcolors{2}{white}{gray!30}
\Body
\multicolumn{2}{l}{\dsaTHeading{\Large Vermögen}} & \multicolumn{7}{l}{\normalfont\tiny (1 Dukate = 10 / Silbertaler = 100 / Heller = 1.000 Kreuzer)} \\ \hline
\directlua{
common.inner_rows(data.Vermoegen, 9, common.current_page.Vermoegen.Muenzen)
} \\ \hline%
\end{tabular}
\end{NiceTabular}
\begin{tabular}{p{\textwidth-1.33\tabcolsep}}
\directlua{
common.multiline_content({
Expand Down

0 comments on commit 6443cc5

Please sign in to comment.