// Civilytics — Typst show/entry partial for Quarto (typst-show.typ). // Pairs with typst-template.typ. Quarto appends the rendered document body // after this partial, so this file intentionally ends with the show rule and // no trailing body token. (Do not write that token in a comment here: Quarto // interpolates its template variables even inside comments.) // Title/subtitle/date are wrapped in [ ] so arbitrary text (including words // that are Typst keywords like "for"/"in") is treated as content, not code. // See civilyticsR issue #12. #show: doc => civilytics( title: [$title$], $if(subtitle)$subtitle: [$subtitle$],$endif$ $if(by-author)$authors: ($for(by-author)$"$it.name.literal$",$endfor$),$endif$ $if(date)$date: [$date$],$endif$ $if(abstract)$abstract: [$abstract$],$endif$ toc: $if(toc)$true$else$false$endif$, doc )