From 4729082938d54a125848187b7ca16d361bad2c96 Mon Sep 17 00:00:00 2001 From: saymrwulf Date: Sun, 29 Mar 2026 15:22:35 +0200 Subject: [PATCH] Clean PDF page style headers --- ct_lineage_report.py | 4 ++-- ct_master_report.py | 4 ++-- ct_monograph_report.py | 4 ++-- ct_scan.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ct_lineage_report.py b/ct_lineage_report.py index 2270365..c35fec7 100644 --- a/ct_lineage_report.py +++ b/ct_lineage_report.py @@ -1319,11 +1319,11 @@ def render_latex(args: argparse.Namespace, assessment: HistoricalAssessment) -> r"\hypersetup{colorlinks=true,linkcolor=Accent,urlcolor=Accent,pdfauthor={CertTransparencySearch},pdftitle={Historical Certificate Lineage Analysis}}", r"\setlength{\parindent}{0pt}", r"\setlength{\parskip}{6pt}", + r"\setlength{\headheight}{16pt}", r"\setcounter{tocdepth}{2}", r"\pagestyle{fancy}", r"\fancyhf{}", - r"\fancyhead[L]{\sffamily\footnotesize Historical Certificate Lineage Analysis}", - r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}", + r"\renewcommand{\headrulewidth}{0pt}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}", diff --git a/ct_master_report.py b/ct_master_report.py index 1ffec70..a58cf54 100644 --- a/ct_master_report.py +++ b/ct_master_report.py @@ -614,11 +614,11 @@ def render_latex(path: Path, report: dict[str, object]) -> None: r"\hypersetup{colorlinks=true,linkcolor=Accent,urlcolor=Accent,pdfauthor={CertTransparencySearch},pdftitle={Consolidated CT, Certificate, and DNS Report}}", r"\setlength{\parindent}{0pt}", r"\setlength{\parskip}{6pt}", + r"\setlength{\headheight}{16pt}", r"\setcounter{tocdepth}{2}", r"\pagestyle{fancy}", r"\fancyhf{}", - r"\fancyhead[L]{\sffamily\footnotesize Consolidated CT Report}", - r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}", + r"\renewcommand{\headrulewidth}{0pt}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}", diff --git a/ct_monograph_report.py b/ct_monograph_report.py index 8609550..f411d8a 100644 --- a/ct_monograph_report.py +++ b/ct_monograph_report.py @@ -945,11 +945,11 @@ def render_latex( r"\hypersetup{colorlinks=true,linkcolor=Accent,urlcolor=Accent,pdfauthor={CertTransparencySearch},pdftitle={CT and DNS Monograph}}", r"\setlength{\parindent}{0pt}", r"\setlength{\parskip}{6pt}", + r"\setlength{\headheight}{16pt}", r"\setcounter{tocdepth}{2}", r"\pagestyle{fancy}", r"\fancyhf{}", - r"\fancyhead[L]{\sffamily\footnotesize CT and DNS Monograph}", - r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}", + r"\renewcommand{\headrulewidth}{0pt}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}", diff --git a/ct_scan.py b/ct_scan.py index f34e1f1..d6d602b 100644 --- a/ct_scan.py +++ b/ct_scan.py @@ -1055,11 +1055,11 @@ def render_latex_report( r"\setlength{\parindent}{0pt}", r"\setlength{\parskip}{6pt}", r"\setlength{\emergencystretch}{3em}", + r"\setlength{\headheight}{16pt}", r"\setcounter{tocdepth}{2}", r"\pagestyle{fancy}", r"\fancyhf{}", - r"\fancyhead[L]{\sffamily\footnotesize Certificate Transparency Endpoint Atlas}", - r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}", + r"\renewcommand{\headrulewidth}{0pt}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}",