Files
business-report-templates/templates/typst/typst-show.typ

62 lines
999 B
Typst

#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,
)