Add Quarto HTML+Typst business report templates.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
61
templates/typst/typst-show.typ
Normal file
61
templates/typst/typst-show.typ
Normal file
@@ -0,0 +1,61 @@
|
||||
#show: doc => article(
|
||||
$if(title)$
|
||||
title: [$title$],
|
||||
$endif$
|
||||
$if(subtitle)$
|
||||
subtitle: [$subtitle$],
|
||||
$endif$
|
||||
$if(company)$
|
||||
company: [$company$],
|
||||
$endif$
|
||||
$if(destinations)$
|
||||
destinations: (
|
||||
$for(destinations)$
|
||||
[$destinations$],
|
||||
$endfor$
|
||||
),
|
||||
$endif$
|
||||
$if(purpose)$
|
||||
purpose: [$purpose$],
|
||||
$endif$
|
||||
$if(logofile)$
|
||||
logo: "$logofile$",
|
||||
$endif$
|
||||
$if(by-author)$
|
||||
authors: (
|
||||
$for(by-author)$
|
||||
$if(it.name.literal)$
|
||||
( name: [$it.name.literal$],
|
||||
affiliation: [$for(it.affiliations)$$it.name$$sep$, $endfor$],
|
||||
email: [$it.email$] ),
|
||||
$endif$
|
||||
$endfor$
|
||||
),
|
||||
$endif$
|
||||
$if(report-date)$
|
||||
date: [$report-date$],
|
||||
$endif$
|
||||
$if(lang)$
|
||||
lang: "$lang$",
|
||||
$endif$
|
||||
$if(region)$
|
||||
region: "$region$",
|
||||
$endif$
|
||||
$if(mainfont)$
|
||||
font: ("$mainfont$",),
|
||||
$endif$
|
||||
$if(fontsize)$
|
||||
fontsize: $fontsize$,
|
||||
$endif$
|
||||
$if(section-numbering)$
|
||||
sectionnumbering: "$section-numbering$",
|
||||
$endif$
|
||||
$if(toc)$
|
||||
toc: $toc$,
|
||||
$endif$
|
||||
$if(toc-title)$
|
||||
toc_title: [$toc-title$],
|
||||
$endif$
|
||||
toc_depth: $toc-depth$,
|
||||
doc,
|
||||
)
|
||||
Reference in New Issue
Block a user