diff --git a/bingo/generate_bingo.py b/bingo/generate_bingo.py index 2390b0f..682f6d5 100644 --- a/bingo/generate_bingo.py +++ b/bingo/generate_bingo.py @@ -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 """ def make_cell(content: str): - return fr"""\vspace{{0.5cm}} - \rule{{3cm}}{{0.15mm}} \, \vspace{{.3cm}} \newline \small {content} - \vspace{{0.5cm}}""" + #new, oben mehr space, Strich länger und \small removed + return fr"""\vspace{{1cm}} \rule{{4.5cm}}{{0.15mm}} \, \vspace{{.3cm}} \newline {content} \vspace{{0.5cm}}""" + def substitute_texts(text: str, substitutions: list[str]): return reduce( \ @@ -50,5 +50,5 @@ def gen_board(num: int = 1): with open(output_dir + filename,"w") as f: f.writelines(pick) -gen_board(40) +gen_board(8) print("Done!") diff --git a/bingo/tex_template.py b/bingo/tex_template.py index 180314f..8846d8e 100644 --- a/bingo/tex_template.py +++ b/bingo/tex_template.py @@ -12,7 +12,9 @@ latex_template=r""" \hspace{0pt} \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} \begin{center} {\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. \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 [[text0]] & \centering