Added local typst packages
Some checks failed
CI / Typst formatting (pull_request) Successful in 11s
CI / Typos (pull_request) Successful in 21s
CI / Build (pull_request) Failing after 15m28s

This commit is contained in:
Mark 2025-01-22 21:33:19 -08:00
parent ed3339829d
commit 1b5826baf4
Signed by: Mark
GPG Key ID: C6D63995FE72FD80
9 changed files with 22 additions and 9 deletions

View File

@ -1,4 +1,5 @@
{
"latex-workshop.latex.recipe.default": "latexmk (xelatex)",
"tinymist.formatterPrintWidth": 80
"tinymist.formatterPrintWidth": 80,
"tinymist.typstExtraArgs": ["--package-path=./lib/typst"]
}

View File

@ -1,3 +1,5 @@
/// Typst handout library, used for all documents in this repository.
/// If false, hide instructor info.
///
@ -238,8 +240,8 @@
set page(
margin: 20mm,
width: 8.5in,
height: 11in,
width: 8in,
height: 11.5in,
footer: align(
center,
context counter(page).display(),

View File

@ -0,0 +1,6 @@
[package]
name = "handout"
version = "0.1.0"
entrypoint = "handout.typ"
authors = []
license = "GPL"

View File

@ -1,4 +1,4 @@
#import "./handout.typ": *
#import "@local/handout:0.1.0": *
#import "@preview/cetz:0.3.1"

View File

@ -1,4 +1,4 @@
#import "./handout.typ": *
#import "@local/handout:0.1.0": *
#show: doc => handout(
doc,

View File

@ -1,4 +1,4 @@
#import "../handout.typ": *
#import "@local/handout:0.1.0": *
#import "../macros.typ": *
= Tropical Arithmetic

View File

@ -1,4 +1,4 @@
#import "../handout.typ": *
#import "@local/handout:0.1.0": *
#import "../macros.typ": *
#import "@preview/cetz:0.3.1"

View File

@ -1,4 +1,4 @@
#import "../handout.typ": *
#import "@local/handout:0.1.0": *
#import "../macros.typ": *
#import "@preview/cetz:0.3.1"

View File

@ -143,10 +143,12 @@ def build_typst(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
[
TYPST_PATH,
"compile",
"--package-path",
f"{ROOT}/lib/typst",
"--ignore-system-fonts",
"main.typ",
"--input",
"show_solutions=false",
"main.typ",
f"{out}/{handout_file}",
],
cwd=source_dir,
@ -164,6 +166,8 @@ def build_typst(source_dir: Path, out_subdir: Path) -> IndexEntry | None:
[
TYPST_PATH,
"compile",
"--package-path",
f"{ROOT}/lib/typst",
"--ignore-system-fonts",
"main.typ",
f"{out}/{solutions_file}",