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)",
|
||||
"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.
|
||||
///
|
||||
@ -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(),
|
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"
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#import "./handout.typ": *
|
||||
#import "@local/handout:0.1.0": *
|
||||
|
||||
#show: doc => handout(
|
||||
doc,
|
||||
|
@ -1,4 +1,4 @@
|
||||
#import "../handout.typ": *
|
||||
#import "@local/handout:0.1.0": *
|
||||
#import "../macros.typ": *
|
||||
|
||||
= Tropical Arithmetic
|
||||
|
@ -1,4 +1,4 @@
|
||||
#import "../handout.typ": *
|
||||
#import "@local/handout:0.1.0": *
|
||||
#import "../macros.typ": *
|
||||
#import "@preview/cetz:0.3.1"
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#import "../handout.typ": *
|
||||
#import "@local/handout:0.1.0": *
|
||||
#import "../macros.typ": *
|
||||
#import "@preview/cetz:0.3.1"
|
||||
|
||||
|
@ -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}",
|
||||
|
Loading…
x
Reference in New Issue
Block a user