Skip to content

Templates & Page Fitting

All three templates compile through Tectonic using fontspec’s default Latin Modern typeface, clickable mailto: and https:// links, and strict LaTeX escaping (# $ % & _ { } ~ ^ \) so model text can never execute LaTeX commands.

Available templates

Template Default length Base size Visual & writing style
corporate (default) 2 pages 11 pt Centered header, black ink, ruled uppercase headings. Formal tone emphasizing scale, reliability, compliance, and cross-team delivery.
engineering 2 pages 10.5 pt Left-aligned #111827 ink, #334155 slate rules, denser .68in margins. Direct high-signal tone emphasizing architecture, latency/reliability numbers, and shipped projects.
academic 2 pages 11 pt Centered small-caps header, #7A1F2B burgundy rules, generous 1in margins, page numbers enabled. Sober tone emphasizing education, research, publications, and teaching.

List available templates anytime with:

Terminal window
make templates

Override target page count with PAGES=1 or PAGES=2, and output language with LANGUAGE=Spanish (or any language).

Automatic page fitting

Cvelio avoids awkward overflow pages and near-empty trailing pages through a two-stage pipeline:

1. Typographic fit (no content cut)

If the first compiled PDF exceeds the target page count — or if the final page holds fewer than 15% of the average words on preceding pages — render.build_pdf() tries progressively tighter typography in order:

  1. -0.5 pt font size
  2. -1.0 pt font size
  3. -1.0 pt font size + tighter .65in × .55in margins

Compilation happens in a temporary directory and scratch .fit file, so failed attempts never corrupt an existing PDF.

2. Model-assisted trimming (only when still over target)

If typography alone cannot fit the page target (built.fits == False), Cvelio runs up to two targeted shortening passes (92% then 80% of the measured word room), keeping every role and must-have bullet while dropping lower-signal detail. Personal identity remains stripped during shortening and is restored locally before each render.