From b22f1f74a8690a52c2c4810a99163c05f49c87e7 Mon Sep 17 00:00:00 2001 From: Peter Adam Date: Tue, 5 May 2026 14:32:43 +0200 Subject: [PATCH] Increase card height to 9.5cm, add printer margins, and fix second card placement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Extend card bottom from y=-7.2 to y=-8.2 (8.5cm → 9.5cm per card) so the second card naturally lands in the lower half of the page - Increase all margins from 0.4cm to 0.6cm for printer compatibility; scale front tikzpicture x-axis to 0.990cm to compensate for narrower printable width - Increase back side row height from 2.833cm to 3.167cm (matching new card height) and reduce column width from 7.0cm to 6.9cm to fit within new margins - Reduce inter-card vspace from 0.8cm to 0.6cm to prevent second card page break Co-Authored-By: Claude Sonnet 4.6 --- brevetkarte-rueckseite-template.tex | 58 ++++++++++++++--------------- brevetkarte-template.tex | 16 ++++---- generate_cards.py | 4 +- 3 files changed, 39 insertions(+), 39 deletions(-) diff --git a/brevetkarte-rueckseite-template.tex b/brevetkarte-rueckseite-template.tex index b0ced48..ae5e206 100644 --- a/brevetkarte-rueckseite-template.tex +++ b/brevetkarte-rueckseite-template.tex @@ -1,7 +1,7 @@ \documentclass[a4paper,10pt,landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} -\usepackage[landscape,top=0.4cm,bottom=0.4cm,left=0.4cm,right=0.4cm]{geometry} +\usepackage[landscape,top=0.6cm,bottom=0.6cm,left=0.6cm,right=0.6cm]{geometry} \usepackage{array} \usepackage{helvet} @@ -12,107 +12,107 @@ \setlength{\tabcolsep}{3pt} \pagestyle{empty} -\newcommand{\rowheight}{2.833cm} +\newcommand{\rowheight}{3.167cm} \begin{document} % Upper card table (rows 1-3) \noindent -\begin{tabular}{|p{7.0cm}|p{7.0cm}|p{7.0cm}|p{7.0cm}|} +\begin{tabular}{|p{6.9cm}|p{6.9cm}|p{6.9cm}|p{6.9cm}|} \hline % Row 1 -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_1}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_2}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_3}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_4}}} \\ \hline % Row 2 -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_1}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_2}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_3}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_4}}} \\ \hline % Row 3 -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_1}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_2}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_3}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_4}}} \\ \hline \end{tabular} -\vspace{1.8cm} +\vspace{0.6cm} % Lower card table (rows 1-3, identical) \noindent -\begin{tabular}{|p{7.0cm}|p{7.0cm}|p{7.0cm}|p{7.0cm}|} +\begin{tabular}{|p{6.9cm}|p{6.9cm}|p{6.9cm}|p{6.9cm}|} \hline % Row 1 -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_1}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_2}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_3}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_1_4}}} \\ \hline % Row 2 -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_1}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_2}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_3}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_2_4}}} \\ \hline % Row 3 -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_1}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_2}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_3}}} & -\parbox[c][\rowheight][t]{6.9cm}{% +\parbox[c][\rowheight][t]{6.8cm}{% {{CELL_3_4}}} \\ \hline diff --git a/brevetkarte-template.tex b/brevetkarte-template.tex index 462a3b6..889c0ac 100644 --- a/brevetkarte-template.tex +++ b/brevetkarte-template.tex @@ -1,7 +1,7 @@ \documentclass[a4paper,10pt,landscape]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} -\usepackage[landscape,top=0.4cm,bottom=0.4cm,left=0.4cm,right=0.4cm]{geometry} +\usepackage[landscape,top=0.6cm,bottom=0.6cm,left=0.6cm,right=0.6cm]{geometry} \usepackage{graphicx} \usepackage{xcolor} \usepackage{tikz} @@ -29,12 +29,12 @@ % Brevet card for {{NAME}} (Start #{{STARTNR}}) \noindent -\begin{tikzpicture}[x=1cm,y=1cm] +\begin{tikzpicture}[x=0.990cm,y=1cm] % Black vertical separator lines (drawn first, extend through headers) -\draw[black,line width=0.5pt] (7.2,-7.2) -- (7.2,1.3); -\draw[black,line width=0.5pt] (14.4,-7.2) -- (14.4,1.3); -\draw[black,line width=0.5pt] (21.6,-7.2) -- (21.6,1.3); +\draw[black,line width=0.5pt] (7.2,-8.2) -- (7.2,1.3); +\draw[black,line width=0.5pt] (14.4,-8.2) -- (14.4,1.3); +\draw[black,line width=0.5pt] (21.6,-8.2) -- (21.6,1.3); % Black header boxes (drawn on top) \fill[headerblack] (0,0) rectangle (7.2,1.3); @@ -73,7 +73,7 @@ \hspace{0.3cm}$\Rightarrow$ \textbf{\underline{Bei Verstoß keine Wertung!}}\\[0.3cm] }; -\node[anchor=south west,text width=6.9cm,font=\small,align=left] at (0.2,-7.0) { +\node[anchor=south west,text width=6.9cm,font=\small,align=left] at (0.2,-8.0) { \textbf{AUDAX RANDONNEURS ALLEMAGNE E.V.}\\ \href{http://www.audax-randonneure.de}{www.audax-randonneure.de}\\ - gegründet 1992 in Hamburg - @@ -89,7 +89,7 @@ HOMOLOGATION }; -\node[anchor=south,text width=6.9cm,font=\small,align=center] at (10.8,-6.8) { +\node[anchor=south,text width=6.9cm,font=\small,align=center] at (10.8,-7.8) { Brevet N° \makebox[5cm]{\dotfill} }; @@ -117,7 +117,7 @@ N° ACP du Club \textbf{{{EVENT_CLUB_NR}}} }; -\node[anchor=south,text width=6.9cm,font=\scriptsize,align=center] at (25.2,-7.0) { +\node[anchor=south,text width=6.9cm,font=\scriptsize,align=center] at (25.2,-8.0) { CONTRÔLÉE ET HOMOLOGUÉE EXCLUSIVEMENT PAR\\ \href{http://www.audax-club-parisien.com}{www.audax-club-parisien.com}\\ - Société fondée en 1904 - diff --git a/generate_cards.py b/generate_cards.py index 2c7934e..47c1c5d 100755 --- a/generate_cards.py +++ b/generate_cards.py @@ -138,7 +138,7 @@ def main(): if args.blanko: blanko_output_file = Path("brevetkarte-blanko.tex") blanko_body = generate_blanko_card(body) - blanko_output = preamble + blanko_body + "\n\\vspace{0.8cm}\n\n" + blanko_body + "\n\\end{document}\n" + blanko_output = preamble + blanko_body + "\n\\vspace{0.6cm}\n\n" + blanko_body + "\n\\end{document}\n" blanko_output_file.write_text(blanko_output, encoding='utf-8') print(f"Generated {blanko_output_file}") backside_template = backside_template_file.read_text(encoding='utf-8') @@ -171,7 +171,7 @@ def main(): for i, card in enumerate(cards): document_parts.append(card) if i % 2 == 0 and i < len(cards) - 1: - document_parts.append("\n\\vspace{0.8cm}\n\n") + document_parts.append("\n\\vspace{0.6cm}\n\n") if i % 2 == 1 and i < len(cards) - 1: document_parts.append("\n\\newpage\n\n")