Clean PDF page style headers

This commit is contained in:
saymrwulf 2026-03-29 15:22:35 +02:00
parent d77730390a
commit 4729082938
4 changed files with 8 additions and 8 deletions

View file

@ -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"\hypersetup{colorlinks=true,linkcolor=Accent,urlcolor=Accent,pdfauthor={CertTransparencySearch},pdftitle={Historical Certificate Lineage Analysis}}",
r"\setlength{\parindent}{0pt}", r"\setlength{\parindent}{0pt}",
r"\setlength{\parskip}{6pt}", r"\setlength{\parskip}{6pt}",
r"\setlength{\headheight}{16pt}",
r"\setcounter{tocdepth}{2}", r"\setcounter{tocdepth}{2}",
r"\pagestyle{fancy}", r"\pagestyle{fancy}",
r"\fancyhf{}", r"\fancyhf{}",
r"\fancyhead[L]{\sffamily\footnotesize Historical Certificate Lineage Analysis}", r"\renewcommand{\headrulewidth}{0pt}",
r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}",
r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}",
r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}",
r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}",

View file

@ -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"\hypersetup{colorlinks=true,linkcolor=Accent,urlcolor=Accent,pdfauthor={CertTransparencySearch},pdftitle={Consolidated CT, Certificate, and DNS Report}}",
r"\setlength{\parindent}{0pt}", r"\setlength{\parindent}{0pt}",
r"\setlength{\parskip}{6pt}", r"\setlength{\parskip}{6pt}",
r"\setlength{\headheight}{16pt}",
r"\setcounter{tocdepth}{2}", r"\setcounter{tocdepth}{2}",
r"\pagestyle{fancy}", r"\pagestyle{fancy}",
r"\fancyhf{}", r"\fancyhf{}",
r"\fancyhead[L]{\sffamily\footnotesize Consolidated CT Report}", r"\renewcommand{\headrulewidth}{0pt}",
r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}",
r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}",
r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}",
r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}",

View file

@ -945,11 +945,11 @@ def render_latex(
r"\hypersetup{colorlinks=true,linkcolor=Accent,urlcolor=Accent,pdfauthor={CertTransparencySearch},pdftitle={CT and DNS Monograph}}", r"\hypersetup{colorlinks=true,linkcolor=Accent,urlcolor=Accent,pdfauthor={CertTransparencySearch},pdftitle={CT and DNS Monograph}}",
r"\setlength{\parindent}{0pt}", r"\setlength{\parindent}{0pt}",
r"\setlength{\parskip}{6pt}", r"\setlength{\parskip}{6pt}",
r"\setlength{\headheight}{16pt}",
r"\setcounter{tocdepth}{2}", r"\setcounter{tocdepth}{2}",
r"\pagestyle{fancy}", r"\pagestyle{fancy}",
r"\fancyhf{}", r"\fancyhf{}",
r"\fancyhead[L]{\sffamily\footnotesize CT and DNS Monograph}", r"\renewcommand{\headrulewidth}{0pt}",
r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}",
r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}",
r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}",
r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}",

View file

@ -1055,11 +1055,11 @@ def render_latex_report(
r"\setlength{\parindent}{0pt}", r"\setlength{\parindent}{0pt}",
r"\setlength{\parskip}{6pt}", r"\setlength{\parskip}{6pt}",
r"\setlength{\emergencystretch}{3em}", r"\setlength{\emergencystretch}{3em}",
r"\setlength{\headheight}{16pt}",
r"\setcounter{tocdepth}{2}", r"\setcounter{tocdepth}{2}",
r"\pagestyle{fancy}", r"\pagestyle{fancy}",
r"\fancyhf{}", r"\fancyhf{}",
r"\fancyhead[L]{\sffamily\footnotesize Certificate Transparency Endpoint Atlas}", r"\renewcommand{\headrulewidth}{0pt}",
r"\fancyhead[R]{\sffamily\footnotesize \nouppercase{\leftmark}}",
r"\fancyfoot[C]{\sffamily\footnotesize \thepage}", r"\fancyfoot[C]{\sffamily\footnotesize \thepage}",
r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}", r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}}{\thesection}{0.8em}{}",
r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}", r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}}{\thesubsection}{0.8em}{}",