mirror of
https://github.com/saymrwulf/CertTransparencySearch.git
synced 2026-05-14 20:37:52 +00:00
Simplify PDF footer and appendix page numbering
This commit is contained in:
parent
629f0ade57
commit
08ef4dbc2b
2 changed files with 6 additions and 12 deletions
|
|
@ -72,6 +72,7 @@ def render_appendix_inventory(args: argparse.Namespace, report: dict[str, object
|
|||
report["groups"],
|
||||
stats,
|
||||
report["issuer_trust"],
|
||||
show_page_numbers=False,
|
||||
)
|
||||
if not args.skip_pdf:
|
||||
ct_scan.compile_latex_to_pdf(args.appendix_latex_output, args.appendix_pdf_output, args.pdf_engine)
|
||||
|
|
@ -1698,7 +1699,6 @@ def render_latex(
|
|||
r"\usepackage{longtable}",
|
||||
r"\usepackage{needspace}",
|
||||
r"\usepackage{enumitem}",
|
||||
r"\usepackage{fancyhdr}",
|
||||
r"\usepackage{titlesec}",
|
||||
r"\usepackage[most]{tcolorbox}",
|
||||
r"\usepackage{pdfpages}",
|
||||
|
|
@ -1715,15 +1715,12 @@ def render_latex(
|
|||
r"\setlength{\parindent}{0pt}",
|
||||
r"\setlength{\parskip}{6pt}",
|
||||
r"\setlength{\emergencystretch}{4em}",
|
||||
r"\setlength{\headheight}{16pt}",
|
||||
r"\setlength{\footskip}{24pt}",
|
||||
r"\setlength{\tabcolsep}{4.2pt}",
|
||||
r"\renewcommand{\arraystretch}{1.12}",
|
||||
r"\raggedbottom",
|
||||
r"\setcounter{tocdepth}{2}",
|
||||
r"\pagestyle{fancy}",
|
||||
r"\fancyhf{}",
|
||||
r"\renewcommand{\headrulewidth}{0pt}",
|
||||
r"\fancyfoot[C]{\sffamily\footnotesize \thepage}",
|
||||
r"\pagestyle{plain}",
|
||||
r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}\raggedright}{\thesection}{0.8em}{}",
|
||||
r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}\raggedright}{\thesubsection}{0.8em}{}",
|
||||
r"\tcbset{panel/.style={enhanced,breakable,boxrule=0.55pt,arc=3pt,left=9pt,right=9pt,top=8pt,bottom=8pt,colback=white,colframe=Line}}",
|
||||
|
|
|
|||
|
|
@ -1007,6 +1007,7 @@ def render_latex_report(
|
|||
groups: list[CertificateGroup],
|
||||
stats: ScanStats,
|
||||
issuer_trust: dict[str, IssuerTrustInfo],
|
||||
show_page_numbers: bool = True,
|
||||
) -> None:
|
||||
path.parent.mkdir(parents=True, exist_ok=True)
|
||||
issuer_hits, ordered_issuers = group_hits_by_issuer(hits)
|
||||
|
|
@ -1027,7 +1028,6 @@ def render_latex_report(
|
|||
r"\usepackage{tabularx}",
|
||||
r"\usepackage{longtable}",
|
||||
r"\usepackage{enumitem}",
|
||||
r"\usepackage{fancyhdr}",
|
||||
r"\usepackage{titlesec}",
|
||||
r"\usepackage[most]{tcolorbox}",
|
||||
r"\usepackage{fancyvrb}",
|
||||
|
|
@ -1055,15 +1055,12 @@ def render_latex_report(
|
|||
r"\setlength{\parindent}{0pt}",
|
||||
r"\setlength{\parskip}{6pt}",
|
||||
r"\setlength{\emergencystretch}{3em}",
|
||||
r"\setlength{\headheight}{16pt}",
|
||||
r"\setlength{\footskip}{24pt}",
|
||||
r"\setlength{\tabcolsep}{4.2pt}",
|
||||
r"\renewcommand{\arraystretch}{1.12}",
|
||||
r"\raggedbottom",
|
||||
r"\setcounter{tocdepth}{2}",
|
||||
r"\pagestyle{fancy}",
|
||||
r"\fancyhf{}",
|
||||
r"\renewcommand{\headrulewidth}{0pt}",
|
||||
r"\fancyfoot[C]{\sffamily\footnotesize \thepage}",
|
||||
rf"\pagestyle{{{'plain' if show_page_numbers else 'empty'}}}",
|
||||
r"\titleformat{\section}{\sffamily\bfseries\LARGE\color{Ink}\raggedright}{\thesection}{0.8em}{}",
|
||||
r"\titleformat{\subsection}{\sffamily\bfseries\Large\color{Ink}\raggedright}{\thesubsection}{0.8em}{}",
|
||||
r"\titleformat{\subsubsection}{\sffamily\bfseries\normalsize\color{Ink}\raggedright}{\thesubsubsection}{0.8em}{}",
|
||||
|
|
|
|||
Loading…
Reference in a new issue