nvim: make typst snippets import libs
This commit is contained in:
parent
eab94f3433
commit
4d0123e3bc
@ -1,5 +1,6 @@
|
||||
snippet problem "template for problem notes" bi
|
||||
#import "/templates/problems.typ": template, source_code, status, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
problem_url: "$1",
|
||||
title: "$2",
|
||||
@ -10,6 +11,7 @@ endsnippet
|
||||
|
||||
snippet index "template for index documents" bi
|
||||
#import "/templates/index.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -18,6 +20,7 @@ endsnippet
|
||||
|
||||
snippet sfd "template for lecture notes" bi
|
||||
#import "/templates/sfd.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
lecture_url: "$1",
|
||||
title: "$2",
|
||||
@ -27,6 +30,8 @@ endsnippet
|
||||
|
||||
snippet chem "template for chemistry notes" bi
|
||||
#import "/templates/chem.typ": template, lref, chem, gaz, liq, sol, aq
|
||||
#import "/templates/libs.typ": *
|
||||
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -42,6 +47,7 @@ endsnippet
|
||||
|
||||
snippet contest "template for contest problems" bi
|
||||
#import "/templates/contest.typ": template, source_code, status, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
stat: "${2:incomplete}",
|
||||
@ -51,6 +57,7 @@ endsnippet
|
||||
|
||||
snippet algs "template for compsci notes" bi
|
||||
#import "/templates/algs.typ": template, source_code, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -59,6 +66,7 @@ endsnippet
|
||||
|
||||
snippet general "general template" bi
|
||||
#import "/templates/general.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -67,6 +75,7 @@ endsnippet
|
||||
|
||||
snippet math_prob "template for math problems" bi
|
||||
#import "/templates/math_prob.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -75,6 +84,7 @@ endsnippet
|
||||
|
||||
snippet math_notes "template for math notes" bi
|
||||
#import "/templates/math_notes.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -83,6 +93,7 @@ endsnippet
|
||||
|
||||
snippet proj "template for project documents" bi
|
||||
#import "/templates/proj.typ": template, lref
|
||||
#import "/templates/libs.typ": *
|
||||
#show: template.with(
|
||||
title: "$1",
|
||||
)
|
||||
@ -114,3 +125,13 @@ snippet figp "create new image figure" bi
|
||||
caption: [$2],
|
||||
) <$1>
|
||||
endsnippet
|
||||
|
||||
snippet tabl "create new tablex table" bi
|
||||
#figure(
|
||||
tablef(columns: $1,
|
||||
$0
|
||||
),
|
||||
caption: [$2],
|
||||
kind: table,
|
||||
) <$3>
|
||||
endsnippet
|
||||
|
Loading…
Reference in New Issue
Block a user