diff --git a/README.md b/README.md index eedc6de..5f1899a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ See the example pdf in the Release section of this project To compile the example: - typst watch ./example/example.typ --root . --font-path fonts + typst watch ./example/main.typ --root . --font-path fonts This template was realized with the help of: diff --git a/example/example.typ b/example/main.typ similarity index 98% rename from example/example.typ rename to example/main.typ index a2060d9..12e445f 100644 --- a/example/example.typ +++ b/example/main.typ @@ -1,4 +1,4 @@ -#import "../typst-orange.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal +#import "../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal //#set text(font: "Linux Libertine") //#set text(font: "TeX Gyre Pagella") diff --git a/typst-orange.typ b/lib.typ similarity index 100% rename from typst-orange.typ rename to lib.typ diff --git a/scripts/build b/scripts/build index 6de35bc..4d3fdac 100755 --- a/scripts/build +++ b/scripts/build @@ -68,5 +68,5 @@ if ! hash typst; then exit 1 fi -typst compile example/example.typ --root "$TYPST_ROOT" --font-path "$TYPST_ROOT/fonts" +typst compile example/main.typ --root "$TYPST_ROOT" --font-path "$TYPST_ROOT/fonts" echo "[ OK]" \ No newline at end of file diff --git a/tests/long-part-title/test.typ b/tests/long-part-title/test.typ index 23f41fd..92ca4b9 100644 --- a/tests/long-part-title/test.typ +++ b/tests/long-part-title/test.typ @@ -1,4 +1,4 @@ -#import "../../typst-orange.typ": book, part, chapter, my-bibliography, appendices +#import "../../lib.typ": book, part, chapter, my-bibliography, appendices #let main-color = rgb("#F36619") diff --git a/tests/part-style-1/test.typ b/tests/part-style-1/test.typ index fb51ace..c0f6c04 100644 --- a/tests/part-style-1/test.typ +++ b/tests/part-style-1/test.typ @@ -1,4 +1,4 @@ -#import "../../typst-orange.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, mathcal +#import "../../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, mathcal #set text(font: "Lato") #show math.equation: set text(font: "Lato Math") diff --git a/tests/sample-book/test.typ b/tests/sample-book/test.typ index d7702e5..c0aef1c 100644 --- a/tests/sample-book/test.typ +++ b/tests/sample-book/test.typ @@ -1,4 +1,4 @@ -#import "../../typst-orange.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal +#import "../../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal //#set text(font: "Linux Libertine") //#set text(font: "TeX Gyre Pagella")