Added local typst packages
This commit is contained in:
parent
ed3339829d
commit
1b5826baf4
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
"latex-workshop.latex.recipe.default": "latexmk (xelatex)",
|
"latex-workshop.latex.recipe.default": "latexmk (xelatex)",
|
||||||
"tinymist.formatterPrintWidth": 80
|
"tinymist.formatterPrintWidth": 80,
|
||||||
|
"tinymist.typstExtraArgs": ["--package-path=./lib/typst"]
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
/// Typst handout library, used for all documents in this repository.
|
||||||
|
|
||||||
|
|
||||||
/// If false, hide instructor info.
|
/// If false, hide instructor info.
|
||||||
///
|
///
|
||||||
@ -238,8 +240,8 @@
|
|||||||
|
|
||||||
set page(
|
set page(
|
||||||
margin: 20mm,
|
margin: 20mm,
|
||||||
width: 8.5in,
|
width: 8in,
|
||||||
height: 11in,
|
height: 11.5in,
|
||||||
footer: align(
|
footer: align(
|
||||||
center,
|
center,
|
||||||
context counter(page).display(),
|
context counter(page).display(),
|
6
lib/typst/local/handout/0.1.0/typst.toml
Normal file
6
lib/typst/local/handout/0.1.0/typst.toml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[package]
|
||||||
|
name = "handout"
|
||||||
|
version = "0.1.0"
|
||||||
|
entrypoint = "handout.typ"
|
||||||
|
authors = []
|
||||||
|
license = "GPL"
|
@ -1,4 +1,4 @@
|
|||||||
#import "./handout.typ": *
|
#import "@local/handout:0.1.0": *
|
||||||
#import "@preview/cetz:0.3.1"
|
#import "@preview/cetz:0.3.1"
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#import "./handout.typ": *
|
#import "@local/handout:0.1.0": *
|
||||||
|
|
||||||
#show: doc => handout(
|
#show: doc => handout(
|
||||||
doc,
|
doc,
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#import "../handout.typ": *
|
#import "@local/handout:0.1.0": *
|
||||||
#import "../macros.typ": *
|
#import "../macros.typ": *
|
||||||
|
|
||||||
= Tropical Arithmetic
|
= Tropical Arithmetic
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#import "../handout.typ": *
|
#import "@local/handout:0.1.0": *
|
||||||
#import "../macros.typ": *
|
#import "../macros.typ": *
|
||||||
#import "@preview/cetz:0.3.1"
|
#import "@preview/cetz:0.3.1"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#import "../handout.typ": *
|
#import "@local/handout:0.1.0": *
|
||||||
#import "../macros.typ": *
|
#import "../macros.typ": *
|
||||||
#import "@preview/cetz:0.3.1"
|
#import "@preview/cetz:0.3.1"
|
||||||
|
|
||||||
|
@ -143,10 +143,12 @@ def build_typst(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
|
|||||||
[
|
[
|
||||||
TYPST_PATH,
|
TYPST_PATH,
|
||||||
"compile",
|
"compile",
|
||||||
|
"--package-path",
|
||||||
|
f"{ROOT}/lib/typst",
|
||||||
"--ignore-system-fonts",
|
"--ignore-system-fonts",
|
||||||
"main.typ",
|
|
||||||
"--input",
|
"--input",
|
||||||
"show_solutions=false",
|
"show_solutions=false",
|
||||||
|
"main.typ",
|
||||||
f"{out}/{handout_file}",
|
f"{out}/{handout_file}",
|
||||||
],
|
],
|
||||||
cwd=source_dir,
|
cwd=source_dir,
|
||||||
@ -164,6 +166,8 @@ def build_typst(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
|
|||||||
[
|
[
|
||||||
TYPST_PATH,
|
TYPST_PATH,
|
||||||
"compile",
|
"compile",
|
||||||
|
"--package-path",
|
||||||
|
f"{ROOT}/lib/typst",
|
||||||
"--ignore-system-fonts",
|
"--ignore-system-fonts",
|
||||||
"main.typ",
|
"main.typ",
|
||||||
f"{out}/{solutions_file}",
|
f"{out}/{solutions_file}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user