Fixes several bugs in the Quarto branded templates found while rendering a real PDF report.
LaTeX (inst/quarto/latex/)
\thesubtitle undefined (#13): the title partial referenced \thesubtitle, which Quarto never defines, so any subtitled PDF failed to compile. civilytics.tex now captures pandoc's \subtitle into \thesubtitle (it loads before pandoc's provider, so its definition wins).
Double title (#13): Quarto emits its default \maketitle + abstract before the include-before-body title page. civilytics.tex now neutralises the default \maketitle/abstract at \begin{document} so only the branded title page renders. (The branded title page does not display the abstract — documented inline.)
tikz dependency (#13): dropped an empty tikzpicture from the title partial that required tikz (never loaded).
SemiBold font (#14): the preamble required a Source Serif 4 SemiBold face that the package never installs and standard installs don't ship. Now uses the family's native Bold weight.
Typst (inst/quarto/typst/)
Keyword crash (#12):title/subtitle/date were injected as bare Typst, so any of them containing a keyword word (for, in, ...) broke compilation. Now wrapped in [ ] content brackets.
Footer civilytics.consulting → civilytics.com in the LaTeX preamble, the Typst template, and the slides example.
Version bumped 0.2.0 → 0.3.0.
Verification
Rendered a subtitled + abstract .qmd through the LaTeX template with xelatex: compiles, single branded title page, subtitle shown, native Bold, footer correct.
Rendered a subtitled .qmd through the Typst template: compiles, footer correct.
Test plan
quarto render a report .qmd (with subtitle) → pdf using include-in-header: civilytics.tex + include-before-body: civilytics-title.tex
Fixes several bugs in the Quarto branded templates found while rendering a real PDF report.
## LaTeX (`inst/quarto/latex/`)
- **`\thesubtitle` undefined (#13):** the title partial referenced `\thesubtitle`, which Quarto never defines, so any subtitled PDF failed to compile. `civilytics.tex` now captures pandoc's `\subtitle` into `\thesubtitle` (it loads before pandoc's provider, so its definition wins).
- **Double title (#13):** Quarto emits its default `\maketitle` + abstract *before* the include-before-body title page. `civilytics.tex` now neutralises the default `\maketitle`/`abstract` at `\begin{document}` so only the branded title page renders. *(The branded title page does not display the abstract — documented inline.)*
- **tikz dependency (#13):** dropped an empty `tikzpicture` from the title partial that required `tikz` (never loaded).
- **SemiBold font (#14):** the preamble required a `Source Serif 4 SemiBold` face that the package never installs and standard installs don't ship. Now uses the family's native Bold weight.
## Typst (`inst/quarto/typst/`)
- **Keyword crash (#12):** `title`/`subtitle`/`date` were injected as bare Typst, so any of them containing a keyword word (`for`, `in`, ...) broke compilation. Now wrapped in `[ ]` content brackets.
## URL (#11)
- Footer `civilytics.consulting` → `civilytics.com` in the LaTeX preamble, the Typst template, and the slides example.
Version bumped 0.2.0 → 0.3.0.
## Verification
- Rendered a subtitled + abstract `.qmd` through the LaTeX template with `xelatex`: compiles, single branded title page, subtitle shown, native Bold, footer correct.
- Rendered a subtitled `.qmd` through the Typst template: compiles, footer correct.
## Test plan
- [ ] `quarto render` a report `.qmd` (with subtitle) → `pdf` using `include-in-header: civilytics.tex` + `include-before-body: civilytics-title.tex`
- [ ] Same content → `typst`
- [ ] Confirm footers read `civilytics.com`
Closes #11, #12, #13, #14
- LaTeX: capture pandoc's \subtitle into \thesubtitle so subtitled PDFs
compile; suppress the default \maketitle/abstract so only the branded
title page renders (no double title); drop the unused tikz dependency
from the title partial (#13)
- LaTeX: stop requiring a "Source Serif 4 SemiBold" face that the setup
never installs; use the family's native Bold weight (#14)
- Typst: wrap title/subtitle/date in [ ] so text containing Typst keywords
("for"/"in") no longer breaks compilation (#12)
- Fix footer URL civilytics.consulting -> civilytics.com in the LaTeX and
Typst templates and the slides example (#11)
- Bump version to 0.3.0
The single-file `template: civilytics-typst.typ` discarded Quarto's
auto-generated `definitions` partial, so any Typst document containing a
code block failed with `unknown variable: Skylighting`.
Ship the template as Quarto template-partials instead, so Quarto keeps its
definitions (Skylighting + token functions) and syntax-highlighted code
blocks render while the Civilytics branding still applies:
- split civilytics-typst.typ into typst-template.typ (the styling function)
and typst-show.typ (the show/entry point, keyword-safe [ ] wrapping kept);
remove the single-file template
- use_civilytics_theme() now copies both partials and prints the
template-partials usage
- example report.qmd uses template-partials
Verified: a report with an R code block renders with working syntax
highlighting and full branding.
Added a follow-up commit (b9d427e) that fully resolves#12: the Typst template now ships as Quarto template-partials ( + ) instead of a single-file , so code blocks keep Quarto Skylighting definitions and render with syntax highlighting + branding. Verified against a report with an R code block.
Added a follow-up commit (b9d427e) that fully resolves #12: the Typst template now ships as Quarto **template-partials** ( + ) instead of a single-file , so code blocks keep Quarto Skylighting definitions and render with syntax highlighting + branding. Verified against a report with an R code block.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Fixes several bugs in the Quarto branded templates found while rendering a real PDF report.
LaTeX (
inst/quarto/latex/)\thesubtitleundefined (#13): the title partial referenced\thesubtitle, which Quarto never defines, so any subtitled PDF failed to compile.civilytics.texnow captures pandoc's\subtitleinto\thesubtitle(it loads before pandoc's provider, so its definition wins).\maketitle+ abstract before the include-before-body title page.civilytics.texnow neutralises the default\maketitle/abstractat\begin{document}so only the branded title page renders. (The branded title page does not display the abstract — documented inline.)tikzpicturefrom the title partial that requiredtikz(never loaded).Source Serif 4 SemiBoldface that the package never installs and standard installs don't ship. Now uses the family's native Bold weight.Typst (
inst/quarto/typst/)title/subtitle/datewere injected as bare Typst, so any of them containing a keyword word (for,in, ...) broke compilation. Now wrapped in[ ]content brackets.URL (#11)
civilytics.consulting→civilytics.comin the LaTeX preamble, the Typst template, and the slides example.Version bumped 0.2.0 → 0.3.0.
Verification
.qmdthrough the LaTeX template withxelatex: compiles, single branded title page, subtitle shown, native Bold, footer correct..qmdthrough the Typst template: compiles, footer correct.Test plan
quarto rendera report.qmd(with subtitle) →pdfusinginclude-in-header: civilytics.tex+include-before-body: civilytics-title.textypstcivilytics.comCloses #11, #12, #13, #14
Added a follow-up commit (
b9d427e) that fully resolves #12: the Typst template now ships as Quarto template-partials ( + ) instead of a single-file , so code blocks keep Quarto Skylighting definitions and render with syntax highlighting + branding. Verified against a report with an R code block.