Apply Jan's feedback

This commit is contained in:
Dominic Zimmer 2022-08-27 01:23:23 +02:00
parent 985f933859
commit 966d96f643
2 changed files with 8 additions and 6 deletions

View File

@ -22,9 +22,9 @@ print(f"[INFO] Found {len(sentences['hard'])} hard prompts")
""" Postprocess the content string to look nice in the latex tabular cell """ """ Postprocess the content string to look nice in the latex tabular cell """
def make_cell(content: str): def make_cell(content: str):
return fr"""\vspace{{0.5cm}} #new, oben mehr space, Strich länger und \small removed
\rule{{3cm}}{{0.15mm}} \, \vspace{{.3cm}} \newline \small {content} return fr"""\vspace{{1cm}} \rule{{4.5cm}}{{0.15mm}} \, \vspace{{.3cm}} \newline {content} \vspace{{0.5cm}}"""
\vspace{{0.5cm}}"""
def substitute_texts(text: str, substitutions: list[str]): def substitute_texts(text: str, substitutions: list[str]):
return reduce( \ return reduce( \
@ -50,5 +50,5 @@ def gen_board(num: int = 1):
with open(output_dir + filename,"w") as f: with open(output_dir + filename,"w") as f:
f.writelines(pick) f.writelines(pick)
gen_board(40) gen_board(8)
print("Done!") print("Done!")

View File

@ -12,7 +12,9 @@ latex_template=r"""
\hspace{0pt} \hspace{0pt}
\vfill \vfill
{\hfill\small Dein Name: \rule{2.5cm}{.15mm}} \large %added
{\hfill Dein Name: \rule{3.5cm}{.15mm}} % \small removed, Strich verlängert von 2.5 zu 3.5
\vspace{-.65cm} \vspace{-.65cm}
\begin{center} \begin{center}
{\Huge Hochzeits-Bingo} {\Huge Hochzeits-Bingo}
@ -23,7 +25,7 @@ Jede Person darf \\ höchstens einmal eingetragen werden.
Für jedes vollständig (9 Felder) ausgefüllte Bingo, das bei \\ Dominic oder Jan abgegeben wird, bekommt das Brautpaar 2 \euro. Für jedes vollständig (9 Felder) ausgefüllte Bingo, das bei \\ Dominic oder Jan abgegeben wird, bekommt das Brautpaar 2 \euro.
\vfill \vfill
\begin{tabular}{| >{\centering\arraybackslash}m{4.5cm} | >{\centering\arraybackslash}m{4.5cm} | >{\centering\arraybackslash}m{4.5cm} |} \begin{tabular}{| >{\centering\arraybackslash}m{5cm} | >{\centering\arraybackslash}m{5cm} | >{\centering\arraybackslash}m{5cm} |}
\hline \centering \hline \centering
[[text0]] [[text0]]
& \centering & \centering