Increase card height to 9.5cm, add printer margins, and fix second card placement

- 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 <noreply@anthropic.com>
This commit is contained in:
Peter Adam
2026-05-05 14:32:43 +02:00
parent f2eda5bf43
commit b22f1f74a8
3 changed files with 39 additions and 39 deletions
+29 -29
View File
@@ -1,7 +1,7 @@
\documentclass[a4paper,10pt,landscape]{article} \documentclass[a4paper,10pt,landscape]{article}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} \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{array}
\usepackage{helvet} \usepackage{helvet}
@@ -12,107 +12,107 @@
\setlength{\tabcolsep}{3pt} \setlength{\tabcolsep}{3pt}
\pagestyle{empty} \pagestyle{empty}
\newcommand{\rowheight}{2.833cm} \newcommand{\rowheight}{3.167cm}
\begin{document} \begin{document}
% Upper card table (rows 1-3) % Upper card table (rows 1-3)
\noindent \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 \hline
% Row 1 % Row 1
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_1}}} {{CELL_1_1}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_2}}} {{CELL_1_2}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_3}}} {{CELL_1_3}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_4}}} {{CELL_1_4}}}
\\ \\
\hline \hline
% Row 2 % Row 2
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_1}}} {{CELL_2_1}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_2}}} {{CELL_2_2}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_3}}} {{CELL_2_3}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_4}}} {{CELL_2_4}}}
\\ \\
\hline \hline
% Row 3 % Row 3
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_1}}} {{CELL_3_1}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_2}}} {{CELL_3_2}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_3}}} {{CELL_3_3}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_4}}} {{CELL_3_4}}}
\\ \\
\hline \hline
\end{tabular} \end{tabular}
\vspace{1.8cm} \vspace{0.6cm}
% Lower card table (rows 1-3, identical) % Lower card table (rows 1-3, identical)
\noindent \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 \hline
% Row 1 % Row 1
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_1}}} {{CELL_1_1}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_2}}} {{CELL_1_2}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_3}}} {{CELL_1_3}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_1_4}}} {{CELL_1_4}}}
\\ \\
\hline \hline
% Row 2 % Row 2
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_1}}} {{CELL_2_1}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_2}}} {{CELL_2_2}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_3}}} {{CELL_2_3}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_2_4}}} {{CELL_2_4}}}
\\ \\
\hline \hline
% Row 3 % Row 3
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_1}}} {{CELL_3_1}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_2}}} {{CELL_3_2}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_3}}} {{CELL_3_3}}}
& &
\parbox[c][\rowheight][t]{6.9cm}{% \parbox[c][\rowheight][t]{6.8cm}{%
{{CELL_3_4}}} {{CELL_3_4}}}
\\ \\
\hline \hline
+8 -8
View File
@@ -1,7 +1,7 @@
\documentclass[a4paper,10pt,landscape]{article} \documentclass[a4paper,10pt,landscape]{article}
\usepackage[utf8]{inputenc} \usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc} \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{graphicx}
\usepackage{xcolor} \usepackage{xcolor}
\usepackage{tikz} \usepackage{tikz}
@@ -29,12 +29,12 @@
% Brevet card for {{NAME}} (Start #{{STARTNR}}) % Brevet card for {{NAME}} (Start #{{STARTNR}})
\noindent \noindent
\begin{tikzpicture}[x=1cm,y=1cm] \begin{tikzpicture}[x=0.990cm,y=1cm]
% Black vertical separator lines (drawn first, extend through headers) % 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] (7.2,-8.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] (14.4,-8.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] (21.6,-8.2) -- (21.6,1.3);
% Black header boxes (drawn on top) % Black header boxes (drawn on top)
\fill[headerblack] (0,0) rectangle (7.2,1.3); \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] \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.}\\ \textbf{AUDAX RANDONNEURS ALLEMAGNE E.V.}\\
\href{http://www.audax-randonneure.de}{www.audax-randonneure.de}\\ \href{http://www.audax-randonneure.de}{www.audax-randonneure.de}\\
- gegründet 1992 in Hamburg - - gegründet 1992 in Hamburg -
@@ -89,7 +89,7 @@
HOMOLOGATION 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} Brevet N° \makebox[5cm]{\dotfill}
}; };
@@ -117,7 +117,7 @@
N° ACP du Club \textbf{{{EVENT_CLUB_NR}}} 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\\ CONTRÔLÉE ET HOMOLOGUÉE EXCLUSIVEMENT PAR\\
\href{http://www.audax-club-parisien.com}{www.audax-club-parisien.com}\\ \href{http://www.audax-club-parisien.com}{www.audax-club-parisien.com}\\
- Société fondée en 1904 - - Société fondée en 1904 -
+2 -2
View File
@@ -138,7 +138,7 @@ def main():
if args.blanko: if args.blanko:
blanko_output_file = Path("brevetkarte-blanko.tex") blanko_output_file = Path("brevetkarte-blanko.tex")
blanko_body = generate_blanko_card(body) 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') blanko_output_file.write_text(blanko_output, encoding='utf-8')
print(f"Generated {blanko_output_file}") print(f"Generated {blanko_output_file}")
backside_template = backside_template_file.read_text(encoding='utf-8') backside_template = backside_template_file.read_text(encoding='utf-8')
@@ -171,7 +171,7 @@ def main():
for i, card in enumerate(cards): for i, card in enumerate(cards):
document_parts.append(card) document_parts.append(card)
if i % 2 == 0 and i < len(cards) - 1: 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: if i % 2 == 1 and i < len(cards) - 1:
document_parts.append("\n\\newpage\n\n") document_parts.append("\n\\newpage\n\n")