diff --git a/src/resources/extension-subtrees/orange-book/.gitignore b/src/resources/extension-subtrees/orange-book/.gitignore
new file mode 100644
index 00000000000..ad293093b07
--- /dev/null
+++ b/src/resources/extension-subtrees/orange-book/.gitignore
@@ -0,0 +1,2 @@
+/.quarto/
+**/*.quarto_ipynb
diff --git a/src/resources/extension-subtrees/orange-book/LICENSE b/src/resources/extension-subtrees/orange-book/LICENSE
new file mode 100644
index 00000000000..a9be13fed66
--- /dev/null
+++ b/src/resources/extension-subtrees/orange-book/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Posit Software, PBC
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst-gather.toml b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst-gather.toml
deleted file mode 100644
index 8eca667b738..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst-gather.toml
+++ /dev/null
@@ -1,17 +0,0 @@
-# typst-gather configuration
-# Run: quarto call typst-gather
-
-destination = "typst/packages"
-
-discover = ["numbering.typ", "page.typ", "typst-show.typ"]
-
-# Preview packages are auto-discovered from imports.
-# Uncomment to pin specific versions:
-# [preview]
-# cetz = "0.4.1"
-
-# Local packages (@local namespace) must be configured manually.
-# Found @local imports:
-# @local/orange-book:0.7.1 (in typst-show.typ)
-[local]
-orange-book = "/Users/gordon/src/tb-work/templates/orange-book"
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst-show.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst-show.typ
index 2bc866e331e..337128f61ef 100644
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst-show.typ
+++ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst-show.typ
@@ -1,4 +1,4 @@
-#import "@local/orange-book:0.7.1": book, part, chapter, appendices
+#import "@preview/orange-book:0.7.1": book, part, chapter, appendices
#show: book.with(
$if(title)$
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraCode-Bold.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraCode-Bold.ttf
deleted file mode 100644
index c0aa0f51992..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraCode-Bold.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraCode-Regular.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraCode-Regular.ttf
deleted file mode 100644
index 82baafc33b7..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraCode-Regular.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraMath-Regular.otf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraMath-Regular.otf
deleted file mode 100644
index f1f9d40c2c8..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/FiraMath-Regular.otf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Black.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Black.ttf
deleted file mode 100644
index 33b0716b16f..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Black.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-BlackItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-BlackItalic.ttf
deleted file mode 100644
index b4f195cf9d2..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-BlackItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Bold.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Bold.ttf
deleted file mode 100644
index 70c4dd92b06..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Bold.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-BoldItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-BoldItalic.ttf
deleted file mode 100644
index c0e84bc7942..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-BoldItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Hairline.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Hairline.ttf
deleted file mode 100644
index 69ffe1a026f..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Hairline.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-HairlineItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-HairlineItalic.ttf
deleted file mode 100644
index 50d3e312c2c..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-HairlineItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Heavy.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Heavy.ttf
deleted file mode 100644
index a394d613777..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Heavy.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-HeavyItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-HeavyItalic.ttf
deleted file mode 100644
index 0d7fe6247c1..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-HeavyItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Italic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Italic.ttf
deleted file mode 100644
index e7a31ce36bd..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Italic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Light.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Light.ttf
deleted file mode 100644
index d63374c9b19..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Light.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-LightItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-LightItalic.ttf
deleted file mode 100644
index 6fff995a3f3..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-LightItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Medium.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Medium.ttf
deleted file mode 100644
index 34f1ff5dc1d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Medium.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-MediumItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-MediumItalic.ttf
deleted file mode 100644
index b2fa39636ae..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-MediumItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Regular.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Regular.ttf
deleted file mode 100644
index b536f95581f..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Regular.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Semibold.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Semibold.ttf
deleted file mode 100644
index d58edee7a3b..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Semibold.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-SemiboldItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-SemiboldItalic.ttf
deleted file mode 100644
index cc825312779..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-SemiboldItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Thin.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Thin.ttf
deleted file mode 100644
index 24aaaba8385..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-Thin.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-ThinItalic.ttf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-ThinItalic.ttf
deleted file mode 100644
index 140969daa7a..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/Lato-ThinItalic.ttf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/LatoMath.otf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/LatoMath.otf
deleted file mode 100644
index 8ee91ced77f..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/LatoMath.otf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/OPTIOriginal Script Regular.otf b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/OPTIOriginal Script Regular.otf
deleted file mode 100644
index f6e154c8b5f..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/fonts/OPTIOriginal Script Regular.otf and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/justfile b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/justfile
deleted file mode 100644
index 1bffdac8283..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/justfile
+++ /dev/null
@@ -1,13 +0,0 @@
-# Local Variables:
-# mode: makefile
-# End:
-test_dir := "./tests"
-
-build:
- ./scripts/build
-
-test:
- ./scripts/test test
-
-update-test:
- ./scripts/test update
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/link.bat b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/link.bat
deleted file mode 100644
index 3951b80908b..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/link.bat
+++ /dev/null
@@ -1,2 +0,0 @@
-mkdir %LocalAppData%\typst\packages\local\orange-book
-mklink /D %LocalAppData%\typst\packages\local\orange-book\0.7.0 %cd%
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/scripts/build b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/scripts/build
deleted file mode 100755
index 8437f6708b6..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/scripts/build
+++ /dev/null
@@ -1,63 +0,0 @@
-#!/bin/env bash
-set -eu
-set -o pipefail
-
-DIR="$(dirname "${BASH_SOURCE[0]}")"
-
-MODE="${1:-test}";
-if (( $# > 1)); then shift; fi
-
-FLAG_INSTALL=0
-
-while :; do
- case "${1:-}" in
- '--install') FLAG_INSTALL=1 ;;
- *) break
- esac
- shift
-done
-
-
-TYPST_VERSION="v0.7.0"
-TYPST_BASE_URL="https://github.com/typst/typst/releases/download"
-TYPST_ARCHIVE="typst-x86_64-unknown-linux-musl.tar.xz"
-
-TYPST_ROOT="$(realpath "$DIR/..")"
-
-
-function install_typst()
-{
- if [[ "$OSTYPE" != "linux"* ]]; then
- >&2 echo "Automatic installation of typst on a non linux system is currently unsupported."
- exit 1
- fi
-
- #TMP="$(mktemp -d)"
- TMP="${TMP:-/tmp}/typst-${TYPST_VERSION}"
- if mkdir -p "$TMP" 2> /dev/null ; then
- local PKG="${TMP}/typst.tar.xz"
-
- echo "Installing typst from $TYPST_BASE_URL/$TYPST_ARCHIVE"
- wget "${TYPST_BASE_URL}/${TYPST_VERSION}/${TYPST_ARCHIVE}" \
- --quiet \
- -O "$PKG"
- mkdir -p "${TMP}/typst"
- tar -xf "$PKG" -C "${TMP}/typst" --strip-components=1
- rm "$PKG"
- fi
-
- PATH="${TMP}/typst/:$PATH"
- export PATH
-}
-
-if [[ "$FLAG_INSTALL" == "1" ]]; then
- install_typst
-fi
-
-if ! hash typst; then
- >&2 echo "Could not find 'typst' binary. Run this script with the --install argument to temporarily install typst."
- exit 1
-fi
-
-typst compile example/main.typ --root "$TYPST_ROOT" --font-path "$TYPST_ROOT/fonts"
-echo "[ OK]"
\ No newline at end of file
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/scripts/test b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/scripts/test
deleted file mode 100755
index 414294e4718..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/scripts/test
+++ /dev/null
@@ -1,142 +0,0 @@
-#!/bin/env bash
-set -eu
-set -o pipefail
-
-DIR="$(dirname "${BASH_SOURCE[0]}")"
-
-MODE="${1:-test}";
-if (( $# > 1)); then shift; fi
-
-FLAG_INSTALL=0
-
-while :; do
- case "${1:-}" in
- '--install') FLAG_INSTALL=1 ;;
- *) break
- esac
- shift
-done
-
-
-TYPST_VERSION="v0.7.0"
-TYPST_BASE_URL="https://github.com/typst/typst/releases/download"
-TYPST_ARCHIVE="typst-x86_64-unknown-linux-musl.tar.xz"
-
-TYPST_ROOT="$(realpath "$DIR/..")"
-TEST_ROOT="$(realpath "$DIR/../tests")"
-
-if hash magick 2>/dev/null; then
- MAGICK_COMPARE="magick compare"
-elif hash compare 2>/dev/null; then
- MAGICK_COMPARE="compare"
-else
- >&2 echo "Could not find 'magick' nor 'compare' binary. Make sure you have image magick installed and in your PATH."
- exit 1
-fi
-
-
-function install_typst()
-{
- if [[ "$OSTYPE" != "linux"* ]]; then
- >&2 echo "Automatic installation of typst on a non linux system is currently unsupported."
- exit 1
- fi
-
- #TMP="$(mktemp -d)"
- TMP="${TMP:-/tmp}/typst-${TYPST_VERSION}"
- if mkdir -p "$TMP" 2> /dev/null ; then
- local PKG="${TMP}/typst.tar.xz"
-
- echo "Installing typst from $TYPST_BASE_URL/$TYPST_ARCHIVE"
- wget "${TYPST_BASE_URL}/${TYPST_VERSION}/${TYPST_ARCHIVE}" \
- --quiet \
- -O "$PKG"
- mkdir -p "${TMP}/typst"
- tar -xf "$PKG" -C "${TMP}/typst" --strip-components=1
- rm "$PKG"
- fi
-
- PATH="${TMP}/typst/:$PATH"
- export PATH
-}
-
-if [[ "$FLAG_INSTALL" == "1" ]]; then
- install_typst
-fi
-
-if ! hash typst; then
- >&2 echo "Could not find 'typst' binary. Run this script with the --install argument to temporarily install typst."
- exit 1
-fi
-
-function img_compare()
-{
- $MAGICK_COMPARE -metric AE -fuzz 1\% "$1" "$2" null: 2>&1 | cut -d\ -f1
-}
-
-function update_test_ref()
-{
- (
- cd "$1"
- local NAME
- NAME="$(basename "$1")"
-
- echo "[UPDATING] ${NAME}"
-
- typst compile test.typ "ref{n}.png" --root "$TYPST_ROOT" --font-path "$TYPST_ROOT/fonts"
- )
-}
-
-function run_test()
-{
- (
- cd "$1"
- local NAME
- NAME="$(basename "$1")"
-
- echo "[TEST] ${NAME} ..."
-
- if [[ ! -f test.typ ]]; then echo "Missing file 'test.typ'!"; exit 1; fi
-
- typst compile test.typ "res{n}.png" --root "$TYPST_ROOT" --font-path "$TYPST_ROOT/fonts"
-
-
- for res_file in res*.png; do
- if [[ $res_file =~ res([0-9]+)\.png ]]; then
- number="${BASH_REMATCH[1]}"
- ref_file="ref${number}.png"
- diff_file="diff${number}.png"
-
- if [ -f "$ref_file" ]; then
- echo "Comparing $res_file with $ref_file..."
- if [[ $(img_compare $res_file $ref_file) != 0 ]] ; then
- $MAGICK_COMPARE -compose src $res_file $ref_file $diff_file || true
- echo "[FAIL] see $(pwd)/$diff_file for differences"
- exit 1
- fi
- else
- echo "File $ref_file not found for $res_file."
- exit 1
- fi
- fi
- done
-
- echo "[ OK]"
- )
-}
-
-echo "Typst: $(typst --version)"
-
-find "$TEST_ROOT" -type d | \
- while read -r test
- do
- if [[ "$test" == "$TEST_ROOT" ]]; then continue; fi
-
- if [[ "$MODE" == "test" ]]; then
- run_test "$test"
- elif [[ "$MODE" == "update" ]]; then
- update_test_ref "$test"
- else
- echo "Unknown mode '$MODE'"; exit 1
- fi
- done
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/background.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/background.png
deleted file mode 100644
index 534247f0f9d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/background.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/creodocs_logo.svg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/creodocs_logo.svg
deleted file mode 100644
index 1adb81a4621..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/creodocs_logo.svg
+++ /dev/null
@@ -1,386 +0,0 @@
-
-
-
-
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange1.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange1.jpg
deleted file mode 100644
index 1d0c780c008..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange1.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange2.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange2.jpg
deleted file mode 100644
index 966653f41ea..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange2.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange3.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange3.jpg
deleted file mode 100644
index 4d556a51dc5..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/orange3.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/placeholder.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/placeholder.jpg
deleted file mode 100644
index d5c08e04788..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/placeholder.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref01.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref01.png
deleted file mode 100644
index 3181ee66738..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref01.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref02.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref02.png
deleted file mode 100644
index 366d4a0dcc0..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref02.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref03.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref03.png
deleted file mode 100644
index f88eb915863..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref03.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref04.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref04.png
deleted file mode 100644
index 2316cc76c2c..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref04.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref05.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref05.png
deleted file mode 100644
index b02aa5575c3..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref05.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref06.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref06.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref06.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref07.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref07.png
deleted file mode 100644
index 97b3b91e533..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref07.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref08.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref08.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref08.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref09.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref09.png
deleted file mode 100644
index 8704f472bed..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref09.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref10.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref10.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref10.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref11.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref11.png
deleted file mode 100644
index 41bbdfe000c..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref11.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref12.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref12.png
deleted file mode 100644
index e2774e8f1d8..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref12.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref13.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref13.png
deleted file mode 100644
index 0c52d4ea7e6..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref13.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref14.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref14.png
deleted file mode 100644
index 027f01825bd..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref14.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref15.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref15.png
deleted file mode 100644
index 2a6afaa1667..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref15.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref16.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref16.png
deleted file mode 100644
index 2d8dbdb9fbb..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref16.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref17.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref17.png
deleted file mode 100644
index 3baa0eb85a4..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref17.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref18.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref18.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref18.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref19.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref19.png
deleted file mode 100644
index b99de18719d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref19.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref20.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref20.png
deleted file mode 100644
index 9e9c8df0936..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref20.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref21.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref21.png
deleted file mode 100644
index 65a822c1729..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref21.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref22.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref22.png
deleted file mode 100644
index 08c20439a89..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref22.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref23.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref23.png
deleted file mode 100644
index caf0aa08238..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref23.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref24.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref24.png
deleted file mode 100644
index f3b5f54785a..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref24.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref25.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref25.png
deleted file mode 100644
index 1d9bf3891a7..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref25.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref26.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref26.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref26.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref27.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref27.png
deleted file mode 100644
index d0405925be9..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref27.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref28.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref28.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref28.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref29.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref29.png
deleted file mode 100644
index a73bcfdb239..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref29.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref30.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref30.png
deleted file mode 100644
index f5ea9782f5b..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref30.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref31.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref31.png
deleted file mode 100644
index d486a023665..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/ref31.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/sample.bib b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/sample.bib
deleted file mode 100644
index 216ffb0dd0b..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/sample.bib
+++ /dev/null
@@ -1,20 +0,0 @@
-@book{Smith:2021qr,
- title = {{B}ook {T}itle},
- publisher = {Publisher},
- author = {Smith, J.~M. and Jones, A.~B.},
- year = {2021},
- edition = {7th},
-}
-
-@article{Smith:2022jd,
- author = {Jones, A.~B. and Smith, J.~M.},
- title = {{A}rticle {T}itle},
- journal = {Journal title},
- year = {2022},
- volume = {13},
- pages = {123-456},
- number = {52},
- month = {3},
- publisher = {Publisher},
- doi = {10.1038/s41586-021-03616-x},
-}
\ No newline at end of file
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/test.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/test.typ
deleted file mode 100644
index 829f657dd83..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/heading-style/test.typ
+++ /dev/null
@@ -1,353 +0,0 @@
-#import "../../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal, update-heading-image
-
-//#set text(font: "Linux Libertine")
-//#set text(font: "TeX Gyre Pagella")
-#set text(font: "Lato")
-//#show math.equation: set text(font: "Fira Math")
-#show math.equation: set text(font: "Lato Math")
-#show raw: set text(font: "Fira Code")
-
-#show: book.with(
- title: "Exploring the Physical Manifestation of Humanity’s Subconscious Desires",
- subtitle: "A Practical Guide",
- date: "Anno scolastico 2023-2024",
- author: "Goro Akechi",
- main-color: rgb("#F36619"),
- lang: "en",
- cover: image("./background.png"),
- image-index: image("./orange1.jpg"),
- list-of-figure-title: "List of Figures",
- list-of-table-title: "List of Tables",
- supplement-chapter: "Chapter",
- supplement-part: "Part",
- part-style: 0,
- heading-style: 2,
- copyright: [
- Copyright © 2023 Flavio Barisi
-
- PUBLISHED BY PUBLISHER
-
- #link("https://github.com/flavio20002/typst-orange-template", "TEMPLATE-WEBSITE")
-
- Licensed under the Apache 2.0 License (the “License”).
- You may not use this file except in compliance with the License. You may obtain a copy of
- the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by
- applicable law or agreed to in writing, software distributed under the License is distributed on an
- “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and limitations under the License.
-
- _First printing, July 2023_
- ],
- lowercase-references: false
-)
-
-#part("Part One Title")
-
-#chapter("Sectioning Examples", image: image("./orange2.jpg"), l: "chap1")
-#index("Sectioning")
-
-== Section Title
-#index("Sectioning!Sections")
-
-#lorem(50)
-#footnote[Footnote example text...Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus,
-imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.]
-
-#lorem(50)
-
-=== Subsection Title
-#index("Sectioning!Subsections")
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-==== Subsubsection Title
-#index("Sectioning!Subsubsections")
-
-#lorem(100)
-
-===== Paragraph Title
-#index("Sectioning!Paragraphs")
-#lorem(50)
-#lorem(50)
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#heading(level:2, numbering: none, "Unnumbered Section", outlined: false)
-#heading(level:3, numbering: none, "Unnumbered Subsection", outlined: false)
-#heading(level:4, numbering: none, "Unnumbered Subsubsection", outlined: false)
-
-// Chapter can also be defined in this way
-#update-heading-image(image: image("./orange2.jpg"))
-= In-text Element Examples
-
-== Referencing Publications
-#index("Citation")
-This statement requires citation @Smith:2022jd; this one is more specific @Smith:2021qr[page.~162].
-== Link Examples
-#index("Links")
-This is a URL link: #link("https://www.latextemplates.com")[LaTeX Templates]. This is an email link: #link("mailto:example@example.com")[example\@example.com]. This is a
-monospaced URL link: https://www.LaTeXTemplates.com.
-== Lists
-#index("Lists")
-Lists are useful to present information in a concise and/or ordered way.
-=== Numbered List
-#index("Lists!Numbered List")
-+ First numbered item
- + First indented numbered item
- + Second indented numbered item
- + First second-level indented numbered item
- + Second second-level indented numbered item
-2. Second numbered item
-3. Third numbered item
-=== Bullet Point List
-#index("Lists!Bullet Points")
-- First bullet point item
- - First indented bullet point item
- - Second indented bullet point item
- - First second-level indented bullet point item
-- Second bullet point item
-- Third bullet point item
-=== Descriptions and Definitions
-#index("Lists!Descriptions and Definitions")
-/ Name: Definition
-/ Word: Definition
-/ Comment: Elaboration
-== International Support
-àáâäãåèéêëìíîïòóôöõøùúûüÿýñçˇcšž \
-ÀÁÂÄÃÅÈÉÊËÌÍÎÏÒÓÔÖÕØÙÚÛÜŸÝÑ \
-ßÇŒÆ ˇCŠŽ
-== Ligatures
-fi fj fl ffl ffi Ty
-
-== Referencing Chapters
-#index("Referencing")
-This statement references to another chapter @chap1. This statement references to another heading @heading1. This statement references to another heading @heading2.
-
-#part("Part Two Title")
-
-#chapter("Mathematics", image: image("./orange2.jpg"))
-
-== Theorems
-#index("Theorems")
-=== Several equations
-#index("Theorems!Several equations")
-This is a theorem consisting of several equations.
-#theorem(name: "Name of the theorem")[
- In $E=bb(R)^n$ all norms are equivalent. It has the properties:
- $ abs(norm(bold(x)) - norm(bold(y))) <= norm(bold(x-y)) $
- $ norm(sum_(i=1)^n bold(x)_i) <= sum_(i=1)^n norm(bold(x)_i) quad "where" n "is a finite integer" $
-]
-
-=== Single Line
-#index("Theorems!Single Line")
-This is a theorem consisting of just one line.
-#theorem()[
- A set $mathcal(D)(G)$ in dense in $L^2(G)$, $|dot|_0$.
-]
-== Definitions
-#index("Definitions")
-A definition can be mathematical or it could define a concept.
-#definition(name: "Definition name")[
- Given a vector space $E$, a norm on $E$ is an application, denoted $norm(dot)$, $E$ in $bb(R)^+ = [0,+∞[$ such that:
- $ norm(bold(x)) = 0 arrow.r.double bold(x) = bold(0) $
- $ norm(lambda bold(x)) = abs(lambda) dot norm(bold(x)) $
- $ norm(bold(x) + bold(y)) lt.eq norm(bold(x)) + norm(bold(y)) $
-]
-== Notations
-#index("Notations")
-
-#notation()[
- Given an open subset $G$ of $bold(R)^n$, the set of functions $phi$ are:
- #v(0.5em, weak: true)
- + Bounded support $G$;
- + Infinitely differentiable;
- #v(0.5em, weak: true)
- a vector space is denoted by $mathcal(D)(G)$.
-]
-== Remarks
-#index("Remarks")
-This is an example of a remark.
-
-#remark()[
- The concepts presented here are now in conventional employment in mathematics. Vector spaces are taken over the field $bb(K)=bb(R)$, however, established properties are easily extended to $bb(K)=bb(C)$.
-]
-
-== Corollaries
-#index("Corollaries")
-#corollary(name: "Corollary name")[
- The concepts presented here are now in conventional employment in mathematics. Vector spaces are taken over the field $bb(K)=bb(R)$, however, established properties are easily extended to $bb(K)=bb(C)$.
-]
-== Propositions
-#index("Propositions")
-=== Several equations
-#index("Propositions!Several equations")
-
-#proposition(name: "Proposition name")[
- It has the properties:
- $ abs(norm(bold(x)) - norm(bold(y))) <= norm(bold(x-y)) $
- $ norm(sum_(i=1)^n bold(x)_i) <= sum_(i=1)^n norm(bold(x)_i) quad "where" n "is a finite integer" $
-]
-=== Single Line
-#index("Propositions!Single Line")
-
-#proposition()[
- Let $f,g in L^2(G)$; if $forall phi in mathcal(D) (G)$, $(f,phi)_0=(g,phi)_0$ then $f = g$.
-]
-== Examples
-#index("Examples")
-=== Equation Example
-#index("Examples!Equation")
-#example()[
- Let $G=\(x in bb(R)^2:|x|<3\)$ and denoted by: $x^0=(1,1)$; consider the function:
-
- $ f(x) = cases(
- e^(abs(x)) quad & "si" |x-x^0| lt.eq 1 slash 2,
- 0 & "si" |x-x^0| gt 1 slash 2
- ) $
-
- The function $f$ has bounded support, we can take $A={x in bb(R)^2:|x-x^0| lt.eq 1 slash 2+ epsilon}$ for all $epsilon in lr(\] 0\;5 slash 2-sqrt(2) \[, size: #70%) $.
-]
-
-=== Text Example
-#index("Examples!Text")
-
-#example(name: "Example name")[
- Aliquam arcu turpis, ultrices sed luctus ac, vehicula id metus. Morbi eu feugiat velit, et tempus augue. Proin ac mattis tortor. Donec tincidunt, ante rhoncus luctus semper, arcu lorem lobortis justo, nec convallis ante quam quis lectus. Aenean tincidunt sodales massa, et hendrerit tellus mattis ac. Sed non pretium nibh. Donec cursus maximus luctus. Vivamus lobortis eros et massa porta porttitor.
-]
-
-== Exercises
-#index("Exercises")
-#exercise()[
- This is a good place to ask a question to test learning progress or further cement ideas into students' minds.
-]
-== Problems
-#index("Problems")
-
-#problem()[
- What is the average airspeed velocity of an unladen swallow?
-]
-
-== Vocabulary
-#index("Vocabulary")
-
-Define a word to improve a students' vocabulary.
-
-#vocabulary(name: "Word")[
- Definition of word.
-]
-
-#chapter("Presenting Information and Results with a Long Chapter Title", image: image("./orange3.jpg"))
-== Table
-#index("Table")
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet
-urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.
-Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl.
-Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus
-tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
-
-#figure(
- table(
- columns: (auto, auto, auto),
- inset: 10pt,
- align: horizon,
- [*Treatments*], [*Response 1*], [*Response 2*],
- [Treatment 1],
- [0.0003262],
- [0.562],
- [Treatment 2],
- [0.0015681],
- [0.910],
- [Treatment 3],
- [0.0009271],
- [0.296],
- ),
- caption: [Table caption.],
-)
-
-Referencing @table in-text using its label.
-
-== Figure
-#index("Figure")
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet
-urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.
-Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl.
-Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus
-tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
-
-#figure(
- image("creodocs_logo.svg", width: 50%),
- caption: [Figure caption.],
-)
-
-Referencing @figure in-text using its label and referencing @figure1 in-text using its label.
-
-#figure(
- placement: top,
- table(
- columns: (auto, auto, auto),
- inset: 10pt,
- align: horizon,
- [*Treatments*], [*Response 1*], [*Response 2*],
- [Treatment 1],
- [0.0003262],
- [0.562],
- [Treatment 2],
- [0.0015681],
- [0.910],
- [Treatment 3],
- [0.0009271],
- [0.296],
- ),
- caption: [Floating table.],
-)
-
-#figure(
- placement: bottom,
- image("creodocs_logo.svg", width: 100%),
- caption: [Floating figure.],
-)
-
-#my-bibliography( bibliography("sample.bib"))
-
-#make-index(title: "Index")
-
-#show: appendices.with("Appendices")
-
-#chapter("Appendix Chapter Title", image: image("./orange2.jpg"))
-
-== Appendix Section Title
-
-#lorem(50)
-#chapter("Appendix Chapter Title", image: image("./orange2.jpg"))
-
-== Appendix Section Title
-
-#lorem(50)
\ No newline at end of file
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/background.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/background.png
deleted file mode 100644
index 534247f0f9d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/background.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange1.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange1.jpg
deleted file mode 100644
index 1d0c780c008..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange1.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange2.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange2.jpg
deleted file mode 100644
index 966653f41ea..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange2.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange3.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange3.jpg
deleted file mode 100644
index 4d556a51dc5..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/orange3.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/placeholder.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/placeholder.jpg
deleted file mode 100644
index d5c08e04788..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/placeholder.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref01.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref01.png
deleted file mode 100644
index 3181ee66738..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref01.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref02.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref02.png
deleted file mode 100644
index 366d4a0dcc0..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref02.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref03.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref03.png
deleted file mode 100644
index 960e5f3d8dc..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref03.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref04.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref04.png
deleted file mode 100644
index 0ca6d34fed3..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref04.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref05.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref05.png
deleted file mode 100644
index dd1c68704c3..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref05.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref06.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref06.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref06.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref07.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref07.png
deleted file mode 100644
index bc3d8db8601..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref07.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref08.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref08.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref08.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref09.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref09.png
deleted file mode 100644
index 833161d2c23..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref09.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref10.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref10.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref10.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref11.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref11.png
deleted file mode 100644
index 79b435287c6..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref11.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref12.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref12.png
deleted file mode 100644
index 044ba55ea86..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref12.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref13.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref13.png
deleted file mode 100644
index 0e54ebaa645..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref13.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref14.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref14.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref14.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref15.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref15.png
deleted file mode 100644
index 728dd27edc2..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref15.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref16.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref16.png
deleted file mode 100644
index a2a9c3e7647..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref16.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref17.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref17.png
deleted file mode 100644
index f07c10ad42d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref17.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref18.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref18.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref18.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref19.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref19.png
deleted file mode 100644
index 753ffdff37e..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref19.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref20.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref20.png
deleted file mode 100644
index 0d6bfbe80ec..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref20.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref21.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref21.png
deleted file mode 100644
index 2b78dad6a9c..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref21.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref22.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref22.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref22.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref23.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref23.png
deleted file mode 100644
index 54556538a8b..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref23.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref24.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref24.png
deleted file mode 100644
index cbde1f53bad..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref24.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref25.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref25.png
deleted file mode 100644
index fb21e192306..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref25.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref26.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref26.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref26.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref27.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref27.png
deleted file mode 100644
index a3254dcc03a..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref27.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref28.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref28.png
deleted file mode 100644
index 6fc6a5db09f..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref28.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref29.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref29.png
deleted file mode 100644
index 61c44f2ff5d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref29.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref30.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref30.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref30.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref31.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref31.png
deleted file mode 100644
index ada17ce51de..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref31.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref32.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref32.png
deleted file mode 100644
index 2f3a2e151c2..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref32.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref33.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref33.png
deleted file mode 100644
index 30ab0210655..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/ref33.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/sample.bib b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/sample.bib
deleted file mode 100644
index 216ffb0dd0b..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/sample.bib
+++ /dev/null
@@ -1,20 +0,0 @@
-@book{Smith:2021qr,
- title = {{B}ook {T}itle},
- publisher = {Publisher},
- author = {Smith, J.~M. and Jones, A.~B.},
- year = {2021},
- edition = {7th},
-}
-
-@article{Smith:2022jd,
- author = {Jones, A.~B. and Smith, J.~M.},
- title = {{A}rticle {T}itle},
- journal = {Journal title},
- year = {2022},
- volume = {13},
- pages = {123-456},
- number = {52},
- month = {3},
- publisher = {Publisher},
- doi = {10.1038/s41586-021-03616-x},
-}
\ No newline at end of file
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/test.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/test.typ
deleted file mode 100644
index 92ca4b9defc..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/long-part-title/test.typ
+++ /dev/null
@@ -1,76 +0,0 @@
-#import "../../lib.typ": book, part, chapter, my-bibliography, appendices
-
-#let main-color = rgb("#F36619")
-
-#set text(font: "Lato")
-#show math.equation: set text(font: "Fira Math")
-#show raw: set text(font: "Fira Code")
-
-#show: book.with(
- title: "Exploring the Physical Manifestation of Humanity’s Subconscious Desires",
- subtitle: "A Practical Guide",
- date: "Anno scolastico 2023-2024",
- author: "Goro Akechi",
- main-color: main-color,
- lang: "en",
- cover: image("./background.png"),
- image-index: image("./orange1.jpg"),
- list-of-figure-title: "List of Figures",
- list-of-table-title: "List of Tables",
- supplement-chapter: "Chapter",
- part-style: 0,
- copyright: [
- Copyright © 2023 Flavio Barisi
-
- PUBLISHED BY PUBLISHER
-
- #link("https://github.com/flavio20002/typst-orange-template", "TEMPLATE-WEBSITE")
-
- Licensed under the Apache 2.0 License (the “License”).
- You may not use this file except in compliance with the License. You may obtain a copy of
- the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by
- applicable law or agreed to in writing, software distributed under the License is distributed on an
- “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and limitations under the License.
-
- _First printing, July 2023_
- ]
-)
-
-#part("This is a very long part title to test the layout")
-
-#chapter("This is a very long chapter title to test the layout", image: image("./orange2.jpg"))
-
-== This is a very very very very very very very very very long section title to test the layout
-
-=== This is a very very very very very very very very very long subsection title to test the layout
-
-#part("This is a very long part title to test the layout")
-
-#chapter("This is a very long chapter title to test the layout", image: image("./orange2.jpg"))
-
-== This is a very very very very very very very very very long section title to test the layout
-
-=== This is a very very very very very very very very very long subsection title to test the layout
-
-#part("This is a very long part title to test the layout")
-
-#chapter("This is a very long chapter title to test the layout", image: image("./orange2.jpg"))
-
-== This is a very very very very very very very very very long section title to test the layout
-
-=== This is a very very very very very very very very very long subsection title to test the layout
-
-#part("This is a very long part title to test the layout")
-
-#chapter("This is a very long chapter title to test the layout", image: image("./orange2.jpg"))
-
-#part("This is a very long part title to test the layout")
-
-#chapter("This is a very long chapter title to test the layout", image: image("./orange2.jpg"))
-
-#part("This is a very long part title to test the layout")
-
-#chapter("This is a very long chapter title to test the layout", image: image("./orange2.jpg"))
-
-#lorem(100)
\ No newline at end of file
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref01.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref01.png
deleted file mode 100644
index bdd59bfa9fa..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref01.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref02.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref02.png
deleted file mode 100644
index 366d4a0dcc0..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref02.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref03.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref03.png
deleted file mode 100644
index a312b449b85..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref03.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref04.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref04.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref04.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref05.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref05.png
deleted file mode 100644
index ea47c236262..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref05.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref06.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref06.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref06.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref07.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref07.png
deleted file mode 100644
index bdb06dcf3c9..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref07.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref08.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref08.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref08.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref09.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref09.png
deleted file mode 100644
index 494735bbeab..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref09.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref10.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref10.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref10.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref11.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref11.png
deleted file mode 100644
index 7889b87edfd..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref11.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref12.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref12.png
deleted file mode 100644
index e5f23da48bb..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/ref12.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/test.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/test.typ
deleted file mode 100644
index c0f6c04dda4..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/part-style-1/test.typ
+++ /dev/null
@@ -1,98 +0,0 @@
-#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")
-#show raw: set text(font: "Fira Code")
-
-#show: book.with(
- title: "Exploring the Physical Manifestation of Humanity’s Subconscious Desires",
- subtitle: "A Practical Guide",
- date: "Anno scolastico 2023-2024",
- author: "Goro Akechi",
- main-color: rgb("#F36619"),
- lang: "en",
- list-of-figure-title: "List of Figures",
- list-of-table-title: "List of Tables",
- supplement-chapter: "Chapter",
- supplement-part: "PART",
- part-style: 1,
- copyright: [
- Copyright © 2023 Flavio Barisi
-
- PUBLISHED BY PUBLISHER
-
- #link("https://github.com/flavio20002/typst-orange-template", "TEMPLATE-WEBSITE")
-
- Licensed under the Apache 2.0 License (the “License”).
- You may not use this file except in compliance with the License. You may obtain a copy of
- the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by
- applicable law or agreed to in writing, software distributed under the License is distributed on an
- “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and limitations under the License.
-
- _First printing, July 2023_
- ]
-)
-
-#part("Part One Title")
-
-#chapter("Sectioning Examples")
-#index("Sectioning")
-
-== Section Title
-#index("Sectioning!Sections")
-
-#lorem(50)
-#footnote[Footnote example text...Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus,
-imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.]
-
-#lorem(50)
-
-=== Subsection Title
-#index("Sectioning!Subsections")
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-==== Subsubsection Title
-#index("Sectioning!Subsubsections")
-
-#lorem(100)
-
-===== Paragraph Title
-#index("Sectioning!Paragraphs")
-#lorem(50)
-#lorem(50)
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#heading(level:2, numbering: none, "Unnumbered Section", outlined: false)
-#heading(level:3, numbering: none, "Unnumbered Subsection", outlined: false)
-#heading(level:4, numbering: none, "Unnumbered Subsubsection", outlined: false)
-
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/background.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/background.png
deleted file mode 100644
index 534247f0f9d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/background.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/creodocs_logo.svg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/creodocs_logo.svg
deleted file mode 100644
index 1adb81a4621..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/creodocs_logo.svg
+++ /dev/null
@@ -1,386 +0,0 @@
-
-
-
-
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange1.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange1.jpg
deleted file mode 100644
index 1d0c780c008..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange1.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange2.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange2.jpg
deleted file mode 100644
index 966653f41ea..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange2.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange3.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange3.jpg
deleted file mode 100644
index 4d556a51dc5..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/orange3.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/placeholder.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/placeholder.jpg
deleted file mode 100644
index d5c08e04788..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/placeholder.jpg and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref01.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref01.png
deleted file mode 100644
index 3181ee66738..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref01.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref02.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref02.png
deleted file mode 100644
index 366d4a0dcc0..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref02.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref03.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref03.png
deleted file mode 100644
index 40c97f4af93..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref03.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref04.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref04.png
deleted file mode 100644
index 8cc79339d49..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref04.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref05.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref05.png
deleted file mode 100644
index a9fdc174ff5..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref05.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref06.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref06.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref06.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref07.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref07.png
deleted file mode 100644
index 97847ad7c1e..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref07.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref08.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref08.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref08.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref09.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref09.png
deleted file mode 100644
index df568431fec..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref09.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref10.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref10.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref10.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref11.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref11.png
deleted file mode 100644
index 8867cfc0acb..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref11.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref12.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref12.png
deleted file mode 100644
index 4eb014a4bdb..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref12.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref13.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref13.png
deleted file mode 100644
index 21d82468afd..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref13.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref14.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref14.png
deleted file mode 100644
index 027f01825bd..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref14.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref15.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref15.png
deleted file mode 100644
index aa069a23990..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref15.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref16.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref16.png
deleted file mode 100644
index 0504c1838fa..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref16.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref17.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref17.png
deleted file mode 100644
index b7f8207b085..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref17.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref18.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref18.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref18.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref19.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref19.png
deleted file mode 100644
index ac7048fe79b..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref19.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref20.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref20.png
deleted file mode 100644
index 39193951b81..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref20.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref21.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref21.png
deleted file mode 100644
index d3a049a3376..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref21.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref22.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref22.png
deleted file mode 100644
index 08c20439a89..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref22.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref23.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref23.png
deleted file mode 100644
index 245d35f19bb..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref23.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref24.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref24.png
deleted file mode 100644
index bb958882c4f..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref24.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref25.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref25.png
deleted file mode 100644
index 5c6cef124f7..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref25.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref26.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref26.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref26.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref27.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref27.png
deleted file mode 100644
index ff57618547b..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref27.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref28.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref28.png
deleted file mode 100644
index ffd9e856b76..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref28.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref29.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref29.png
deleted file mode 100644
index f3706d76bbe..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref29.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref30.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref30.png
deleted file mode 100644
index f5ea9782f5b..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref30.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref31.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref31.png
deleted file mode 100644
index db480f22214..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/ref31.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/sample.bib b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/sample.bib
deleted file mode 100644
index 216ffb0dd0b..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/sample.bib
+++ /dev/null
@@ -1,20 +0,0 @@
-@book{Smith:2021qr,
- title = {{B}ook {T}itle},
- publisher = {Publisher},
- author = {Smith, J.~M. and Jones, A.~B.},
- year = {2021},
- edition = {7th},
-}
-
-@article{Smith:2022jd,
- author = {Jones, A.~B. and Smith, J.~M.},
- title = {{A}rticle {T}itle},
- journal = {Journal title},
- year = {2022},
- volume = {13},
- pages = {123-456},
- number = {52},
- month = {3},
- publisher = {Publisher},
- doi = {10.1038/s41586-021-03616-x},
-}
\ No newline at end of file
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/test.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/test.typ
deleted file mode 100644
index 0ca44520e79..00000000000
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/tests/sample-book/test.typ
+++ /dev/null
@@ -1,352 +0,0 @@
-#import "../../lib.typ": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, mathcal, update-heading-image
-
-//#set text(font: "Linux Libertine")
-//#set text(font: "TeX Gyre Pagella")
-#set text(font: "Lato")
-//#show math.equation: set text(font: "Fira Math")
-#show math.equation: set text(font: "Lato Math")
-#show raw: set text(font: "Fira Code")
-
-#show: book.with(
- title: "Exploring the Physical Manifestation of Humanity’s Subconscious Desires",
- subtitle: "A Practical Guide",
- date: "Anno scolastico 2023-2024",
- author: "Goro Akechi",
- main-color: rgb("#F36619"),
- lang: "en",
- cover: image("./background.png"),
- image-index: image("./orange1.jpg"),
- list-of-figure-title: "List of Figures",
- list-of-table-title: "List of Tables",
- supplement-chapter: "Chapter",
- supplement-part: "Part",
- part-style: 0,
- copyright: [
- Copyright © 2023 Flavio Barisi
-
- PUBLISHED BY PUBLISHER
-
- #link("https://github.com/flavio20002/typst-orange-template", "TEMPLATE-WEBSITE")
-
- Licensed under the Apache 2.0 License (the “License”).
- You may not use this file except in compliance with the License. You may obtain a copy of
- the License at https://www.apache.org/licenses/LICENSE-2.0. Unless required by
- applicable law or agreed to in writing, software distributed under the License is distributed on an
- “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and limitations under the License.
-
- _First printing, July 2023_
- ],
- lowercase-references: false
-)
-
-#part("Part One Title")
-
-#chapter("Sectioning Examples", image: image("./orange2.jpg"), l: "chap1")
-#index("Sectioning")
-
-== Section Title
-#index("Sectioning!Sections")
-
-#lorem(50)
-#footnote[Footnote example text...Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus,
-imperdiet urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.]
-
-#lorem(50)
-
-=== Subsection Title
-#index("Sectioning!Subsections")
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-==== Subsubsection Title
-#index("Sectioning!Subsubsections")
-
-#lorem(100)
-
-===== Paragraph Title
-#index("Sectioning!Paragraphs")
-#lorem(50)
-#lorem(50)
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#lorem(50)
-
-#heading(level:2, numbering: none, "Unnumbered Section", outlined: false)
-#heading(level:3, numbering: none, "Unnumbered Subsection", outlined: false)
-#heading(level:4, numbering: none, "Unnumbered Subsubsection", outlined: false)
-
-// Chapter can also be defined in this way
-#update-heading-image(image: image("./orange2.jpg"))
-= In-text Element Examples
-
-== Referencing Publications
-#index("Citation")
-This statement requires citation @Smith:2022jd; this one is more specific @Smith:2021qr[page.~162].
-== Link Examples
-#index("Links")
-This is a URL link: #link("https://www.latextemplates.com")[LaTeX Templates]. This is an email link: #link("mailto:example@example.com")[example\@example.com]. This is a
-monospaced URL link: https://www.LaTeXTemplates.com.
-== Lists
-#index("Lists")
-Lists are useful to present information in a concise and/or ordered way.
-=== Numbered List
-#index("Lists!Numbered List")
-+ First numbered item
- + First indented numbered item
- + Second indented numbered item
- + First second-level indented numbered item
- + Second second-level indented numbered item
-2. Second numbered item
-3. Third numbered item
-=== Bullet Point List
-#index("Lists!Bullet Points")
-- First bullet point item
- - First indented bullet point item
- - Second indented bullet point item
- - First second-level indented bullet point item
-- Second bullet point item
-- Third bullet point item
-=== Descriptions and Definitions
-#index("Lists!Descriptions and Definitions")
-/ Name: Definition
-/ Word: Definition
-/ Comment: Elaboration
-== International Support
-àáâäãåèéêëìíîïòóôöõøùúûüÿýñçˇcšž \
-ÀÁÂÄÃÅÈÉÊËÌÍÎÏÒÓÔÖÕØÙÚÛÜŸÝÑ \
-ßÇŒÆ ˇCŠŽ
-== Ligatures
-fi fj fl ffl ffi Ty
-
-== Referencing Chapters
-#index("Referencing")
-This statement references to another chapter @chap1. This statement references to another heading @heading1. This statement references to another heading @heading2.
-
-#part("Part Two Title")
-
-#chapter("Mathematics", image: image("./orange2.jpg"))
-
-== Theorems
-#index("Theorems")
-=== Several equations
-#index("Theorems!Several equations")
-This is a theorem consisting of several equations.
-#theorem(name: "Name of the theorem")[
- In $E=bb(R)^n$ all norms are equivalent. It has the properties:
- $ abs(norm(bold(x)) - norm(bold(y))) <= norm(bold(x-y)) $
- $ norm(sum_(i=1)^n bold(x)_i) <= sum_(i=1)^n norm(bold(x)_i) quad "where" n "is a finite integer" $
-]
-
-=== Single Line
-#index("Theorems!Single Line")
-This is a theorem consisting of just one line.
-#theorem()[
- A set $mathcal(D)(G)$ in dense in $L^2(G)$, $|dot|_0$.
-]
-== Definitions
-#index("Definitions")
-A definition can be mathematical or it could define a concept.
-#definition(name: "Definition name")[
- Given a vector space $E$, a norm on $E$ is an application, denoted $norm(dot)$, $E$ in $bb(R)^+ = [0,+∞[$ such that:
- $ norm(bold(x)) = 0 arrow.r.double bold(x) = bold(0) $
- $ norm(lambda bold(x)) = abs(lambda) dot norm(bold(x)) $
- $ norm(bold(x) + bold(y)) lt.eq norm(bold(x)) + norm(bold(y)) $
-]
-== Notations
-#index("Notations")
-
-#notation()[
- Given an open subset $G$ of $bold(R)^n$, the set of functions $phi$ are:
- #v(0.5em, weak: true)
- + Bounded support $G$;
- + Infinitely differentiable;
- #v(0.5em, weak: true)
- a vector space is denoted by $mathcal(D)(G)$.
-]
-== Remarks
-#index("Remarks")
-This is an example of a remark.
-
-#remark()[
- The concepts presented here are now in conventional employment in mathematics. Vector spaces are taken over the field $bb(K)=bb(R)$, however, established properties are easily extended to $bb(K)=bb(C)$.
-]
-
-== Corollaries
-#index("Corollaries")
-#corollary(name: "Corollary name")[
- The concepts presented here are now in conventional employment in mathematics. Vector spaces are taken over the field $bb(K)=bb(R)$, however, established properties are easily extended to $bb(K)=bb(C)$.
-]
-== Propositions
-#index("Propositions")
-=== Several equations
-#index("Propositions!Several equations")
-
-#proposition(name: "Proposition name")[
- It has the properties:
- $ abs(norm(bold(x)) - norm(bold(y))) <= norm(bold(x-y)) $
- $ norm(sum_(i=1)^n bold(x)_i) <= sum_(i=1)^n norm(bold(x)_i) quad "where" n "is a finite integer" $
-]
-=== Single Line
-#index("Propositions!Single Line")
-
-#proposition()[
- Let $f,g in L^2(G)$; if $forall phi in mathcal(D) (G)$, $(f,phi)_0=(g,phi)_0$ then $f = g$.
-]
-== Examples
-#index("Examples")
-=== Equation Example
-#index("Examples!Equation")
-#example()[
- Let $G=\(x in bb(R)^2:|x|<3\)$ and denoted by: $x^0=(1,1)$; consider the function:
-
- $ f(x) = cases(
- e^(abs(x)) quad & "si" |x-x^0| lt.eq 1 slash 2,
- 0 & "si" |x-x^0| gt 1 slash 2
- ) $
-
- The function $f$ has bounded support, we can take $A={x in bb(R)^2:|x-x^0| lt.eq 1 slash 2+ epsilon}$ for all $epsilon in lr(\] 0\;5 slash 2-sqrt(2) \[, size: #70%) $.
-]
-
-=== Text Example
-#index("Examples!Text")
-
-#example(name: "Example name")[
- Aliquam arcu turpis, ultrices sed luctus ac, vehicula id metus. Morbi eu feugiat velit, et tempus augue. Proin ac mattis tortor. Donec tincidunt, ante rhoncus luctus semper, arcu lorem lobortis justo, nec convallis ante quam quis lectus. Aenean tincidunt sodales massa, et hendrerit tellus mattis ac. Sed non pretium nibh. Donec cursus maximus luctus. Vivamus lobortis eros et massa porta porttitor.
-]
-
-== Exercises
-#index("Exercises")
-#exercise()[
- This is a good place to ask a question to test learning progress or further cement ideas into students' minds.
-]
-== Problems
-#index("Problems")
-
-#problem()[
- What is the average airspeed velocity of an unladen swallow?
-]
-
-== Vocabulary
-#index("Vocabulary")
-
-Define a word to improve a students' vocabulary.
-
-#vocabulary(name: "Word")[
- Definition of word.
-]
-
-#chapter("Presenting Information and Results with a Long Chapter Title", image: image("./orange3.jpg"))
-== Table
-#index("Table")
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet
-urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.
-Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl.
-Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus
-tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
-
-#figure(
- table(
- columns: (auto, auto, auto),
- inset: 10pt,
- align: horizon,
- [*Treatments*], [*Response 1*], [*Response 2*],
- [Treatment 1],
- [0.0003262],
- [0.562],
- [Treatment 2],
- [0.0015681],
- [0.910],
- [Treatment 3],
- [0.0009271],
- [0.296],
- ),
- caption: [Table caption.],
-)
-
-Referencing @table in-text using its label.
-
-== Figure
-#index("Figure")
-
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent porttitor arcu luctus, imperdiet
-urna iaculis, mattis eros. Pellentesque iaculis odio vel nisl ullamcorper, nec faucibus ipsum molestie.
-Sed dictum nisl non aliquet porttitor. Etiam vulputate arcu dignissim, finibus sem et, viverra nisl.
-Aenean luctus congue massa, ut laoreet metus ornare in. Nunc fermentum nisi imperdiet lectus
-tincidunt vestibulum at ac elit. Nulla mattis nisl eu malesuada suscipit.
-
-#figure(
- image("creodocs_logo.svg", width: 50%),
- caption: [Figure caption.],
-)
-
-Referencing @figure in-text using its label and referencing @figure1 in-text using its label.
-
-#figure(
- placement: top,
- table(
- columns: (auto, auto, auto),
- inset: 10pt,
- align: horizon,
- [*Treatments*], [*Response 1*], [*Response 2*],
- [Treatment 1],
- [0.0003262],
- [0.562],
- [Treatment 2],
- [0.0015681],
- [0.910],
- [Treatment 3],
- [0.0009271],
- [0.296],
- ),
- caption: [Floating table.],
-)
-
-#figure(
- placement: bottom,
- image("creodocs_logo.svg", width: 100%),
- caption: [Floating figure.],
-)
-
-#my-bibliography( bibliography("sample.bib"))
-
-#make-index(title: "Index")
-
-#show: appendices.with("Appendices")
-
-#chapter("Appendix Chapter Title", image: image("./orange2.jpg"))
-
-== Appendix Section Title
-
-#lorem(50)
-#chapter("Appendix Chapter Title", image: image("./orange2.jpg"))
-
-== Appendix Section Title
-
-#lorem(50)
\ No newline at end of file
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/thumbnail.png b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/thumbnail.png
deleted file mode 100644
index fb77c232b5d..00000000000
Binary files a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/thumbnail.png and /dev/null differ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/README.md b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/README.md
new file mode 100644
index 00000000000..c763c3dc83c
--- /dev/null
+++ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/README.md
@@ -0,0 +1,186 @@
+# Marginalia
+
+## Setup
+
+Put something akin to the following at the start of your `.typ` file:
+
+```typ
+#import "@preview/marginalia:0.3.1" as marginalia: note, notefigure, wideblock
+
+#show: marginalia.setup.with(
+ // inner: ( far: 5mm, width: 15mm, sep: 5mm ),
+ // outer: ( far: 5mm, width: 15mm, sep: 5mm ),
+ // top: 2.5cm,
+ // bottom: 2.5cm,
+ // book: false,
+ // clearance: 12pt,
+)
+```
+
+If `book` is `false`, `inner` and `outer` correspond to the left and right
+margins respectively. If book is true, the margins swap sides on even and odd
+pages. Notes are placed in the outside margin by default.
+
+Where you can then customize these options to your preferences. Shown here (as
+comments) are the default values taken if the corresponding keys are unset.
+[Please refer to the PDF documentation for more details on the configuration and the provided commands.](https://github.com/nleanba/typst-marginalia/blob/v0.3.1/Marginalia.pdf?raw=true)
+
+Additionally, I recommend using Typst's partial function application feature to
+customize other aspects of the notes consistently:
+
+```typ
+#let note = note.with(/* options here */)
+#let notefigure = notefigure.with(/* same options here */)
+```
+
+## Margin-Notes
+
+Provided via the `#note[...]` command.
+
+_New in version 0.3.0:_ Notes can be labeled and referenced: If you write
+`#note[]`, then `@xyz` just works!
+
+- `#note(side: "inner")[...]` to put it on the inside margin (left margin for
+ single-sided documents).
+
+ Also accepts: `auto`=`"outer"`, `"left"`, `"right"`.
+
+- `#note(counter: none)[...]` to remove the marker.
+
+ The display of the marker can be customized with the `numbering`,
+ `anchor-numbering`, and `flush-numbering` parameters. Refer to the docs for
+ details.
+
+- `#note(shift: false)[...]` to force exact position of the note.
+
+ Also accepts `auto` (behavior depends on whether it has a marker), `true`,
+ `"avoid"` and `"ignore"`.
+
+- And more options for fine control. All details are in the docs.
+
+## Wide Blocks
+
+Provided via the `#wideblock[...]` command.
+
+- `#wideblock(side: "inner")[...]` to extend into the inside margin instead.
+
+ Also accepts: `auto`=`"outer"`, `"left"`, `"right"`, or `"both"`.
+
+Note: Wideblocks do not handle pagebreaks well, especially in `book: true`
+documents. This is a limitation of Typst which does not (yet) provide a robust
+way of detecting and reacting to page breaks.
+
+## Figures
+
+You can use figures as normal, also within wideblocks. To get captions on the
+side, use
+
+1. If you want top-aligned captions:
+
+```typ
+#set figure(gap: 0pt) // neccessary in both cases
+#set figure.caption(position: top)
+#show figure.caption.where(position: top): note.with(
+ alignment: "top", counter: none, shift: "avoid", keep-order: true,
+ dy: -0.01pt, // this is so that the caption is placed above wide figures.
+)
+```
+
+2. If you want bottom-aligned captions:
+
+```typ
+#set figure(gap: 0pt) // neccessary in both cases
+#set figure.caption(position: bottom) // (this is the default)
+#show figure.caption.where(position: bottom): note.with(
+ alignment: "bottom", counter: none, shift: "avoid", keep-order: true)
+```
+
+### Figures in the Margin
+
+For small figures, the package also provides a `notefigure` command which places
+the figure in the margin.
+
+```typ
+#notefigure(
+ rect(width: 100%),
+ caption: [A notefigure.],
+)
+```
+
+It takes all the same options as `#note[]`, with some additions. In particular,
+
+- You can use `#notefigure(note-label: , ..)` to label the underlying note
+ (if you want to reference it like a note)
+
+- `#notefigure(show-caption: .., ..)` is how you change the caption rendering.
+ NB.: this function is expected to take two arguments, please consult the docs.
+
+## Utilities
+
+- `#marginalia.header()` for easy two/three-column headers
+- `#show: marginalia.show-frame` to show the page layout with background lines
+- `#marginalia.note-numbering()` to generate your own numberings from sequences
+ of symbols
+- `#marginalia.ref()` to reference notes by relative index, without using
+ labels.
+- `#marginalia.get-left()` and `#marginalia.get-right()` to get contextual
+ layout information.
+
+## Manual
+
+[Full Manual →](https://github.com/nleanba/typst-marginalia/blob/v0.3.1/Marginalia.pdf?raw=true)
+[](https://github.com/nleanba/typst-marginalia/blob/v0.3.1/Marginalia.pdf?raw=true)
+
+### Changelog
+
+- 0.3.1
+ - Text written right-to-left is now supported.
+- 0.3.0
+ - Notes and notefigures can now be labeled and referenced. The `label`
+ parameter on notefigures has been removed, a `note-label` parameter has been
+ added.
+ - Recommended way to disable numbering a note is using `counter: none`, this
+ now works uniformly for notes and notefigures. (Enable markers for a
+ notefigure simply by using `counter: marginalia.notecounter`)
+ - Note markers now link to the anchor (and vice versa). Controlled via new
+ `link-anchor` property.
+- 0.2.4
+ - Pages with `height: auto` work now.
+ - Added `ref` utility function.
+- 0.2.3: The counter used for notes can now be customized.
+- 0.2.2
+ - More flexible `alignment` parameter replaces `align-baseline`.
+ (`notefigure.dy` no longer takes a relative length, use `alignemnt`
+ instead.)
+ - Added `show-frame` and `header` utility functions.
+- 0.2.1: Allow customizing the anchor independently of the in-note number using
+ `anchor-numbering`.
+- 0.2.0
+ - `block-style` can now be a function, allowing to customize the style for
+ even and odd pages.
+ - `reverse` and `double` parameters have been replaced by a uniform `side`
+ parameter.
+ - Setup is now done using the `setup` show-rule. (`configure()` and
+ `page-setup()` have been removed)
+ - `numbering` and `flush-numbering` parameters are now per-note. (`numbered`
+ has been removed.)
+- 0.1.4: New styling parameter `block-style`.
+- 0.1.3
+ - New styling parameters `par-style`, and `text-style`.
+ - Added `shift` and `keep-order` options.
+- 0.1.1
+ - Notes will now avoid each other for any amount of notes.
+ - Added `notefigure`.
+ - Added `clearance` configuration option.
+
+(Not listing bugfixes, see the
+[release notes on GitHub](https://github.com/nleanba/typst-marginalia/releases)
+for the full details.)
+
+## Feedback
+
+Have you encountered a bug?
+[Please report it as an issue in my GitHub repository.](https://github.com/nleanba/typst-marginalia/issues)
+
+Has this package been useful to you?
+[I am always happy when someone gives me a ~~sticker~~ star⭐](https://github.com/nleanba/typst-marginalia)
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/UNLICENSE b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/UNLICENSE
new file mode 100644
index 00000000000..fdddb29aa44
--- /dev/null
+++ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/UNLICENSE
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/lib.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/lib.typ
new file mode 100644
index 00000000000..9810cd956ae
--- /dev/null
+++ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/lib.typ
@@ -0,0 +1,1294 @@
+
+/* Config Setup */
+
+/// The default counter used for the note icons.
+///
+/// If you use @note-numbering without @note-numbering.repeat, it is recommended you reset this occasionally, e.g. per heading or per page.
+/// #example(scale-preview: 100%, ```typc notecounter.update(1)```)
+/// -> counter
+#let notecounter = counter("marginalia-note")
+
+/// Icons to use for note markers.
+///
+/// ```typc ("◆", "●", "■", "▲", "♥", "◇", "○", "□", "△", "♡")```
+#let note-markers = ("◆", "●", "■", "▲", "♥", "◇", "○", "□", "△", "♡")
+/// Icons to use for note markers, alternating filled/outlined.
+///
+/// ```typc ("●", "○", "◆", "◇", "■", "□", "▲", "△", "♥", "♡")```
+#let note-markers-alternating = ("●", "○", "◆", "◇", "■", "□", "▲", "△", "♥", "♡")
+
+/// Format note marker.
+/// -> content
+#let note-numbering(
+ /// #example(```typ
+ /// #for i in array.range(1,15) {
+ /// note-numbering(markers: note-markers, i) }
+ ///
+ /// #for i in array.range(1,15) {
+ /// note-numbering(markers: note-markers-alternating, i) }
+ ///
+ /// #for i in array.range(1,15) {
+ /// note-numbering(markers: (), i) }
+ /// ```)
+ /// -> array
+ markers: note-markers-alternating,
+ /// Whether to (```typc true```) loop over the icons, or (```typc false```) continue with numbers after icons run out.
+ /// #example(```typ
+ /// #for i in array.range(1,15) {
+ /// note-numbering(repeat: true, i) }
+ ///
+ /// #for i in array.range(1,15) {
+ /// note-numbering(repeat: false, i) }
+ /// ```)
+ /// -> bool
+ repeat: true,
+ /// Wrap the symbol in a styled text function.
+ /// -> function
+ style: text.with(weight: 900, font: "Inter", size: 5pt, style: "normal", fill: rgb(54%, 72%, 95%)),
+ /// Whether to add a space of 2pt after the symbol.
+ /// If ```typc auto```, a space is only added if it is a number (the symbols have ran out).
+ /// -> auto | bool
+ space: auto,
+ ..,
+ /// -> int
+ i,
+) = {
+ let index = if repeat and markers.len() > 0 { calc.rem(i - 1, markers.len()) } else { i - 1 }
+ let symbol = if index < markers.len() {
+ markers.at(index)
+ if space == true { h(2pt) }
+ } else {
+ str(index + 1 - markers.len())
+ if space == true or space == auto { h(2pt) }
+ }
+ style(symbol)
+}
+
+///#internal()
+#let _fill_config(..config) = {
+ let config = config.named()
+ // default margins a4 are 2.5 cm
+ let inner = config.at("inner", default: (far: 5mm, width: 15mm, sep: 5mm))
+ let outer = config.at("outer", default: (far: 5mm, width: 15mm, sep: 5mm))
+ return (
+ inner: (
+ far: inner.at("far", default: 5mm),
+ width: inner.at("width", default: 15mm),
+ sep: inner.at("sep", default: 5mm),
+ ),
+ outer: (
+ far: outer.at("far", default: 5mm),
+ width: outer.at("width", default: 15mm),
+ sep: outer.at("sep", default: 5mm),
+ ),
+ top: config.at("top", default: 2.5cm),
+ bottom: config.at("bottom", default: 2.5cm),
+ book: config.at("book", default: false),
+ clearance: config.at("clearance", default: 12pt),
+ )
+}
+
+#let _config = state("_config", _fill_config())
+
+/// Page setup helper
+///
+/// This will generate a dictionary ```typc ( margin: .. )``` compatible with the passed config.
+/// This can then be spread into the page setup like so:
+///```typ
+/// #set page( ..page-setup(..config) )```
+///
+/// Takes the same options as @setup.
+/// -> dictionary
+#let _page-setup(
+ /// Missing entries are filled with package defaults. Note: missing entries are _not_ taken from the current marginalia config, as this would require context.
+ /// -> dictionary
+ ..config,
+) = {
+ let config = _fill_config(..config)
+ if config.book {
+ return (
+ binding: left,
+ margin: (
+ inside: config.inner.far + config.inner.width + config.inner.sep,
+ outside: config.outer.far + config.outer.width + config.outer.sep,
+ top: config.top,
+ bottom: config.bottom,
+ ),
+ )
+ } else {
+ return (
+ binding: left,
+ margin: (
+ left: config.inner.far + config.inner.width + config.inner.sep,
+ right: config.outer.far + config.outer.width + config.outer.sep,
+ top: config.top,
+ bottom: config.bottom,
+ ),
+ )
+ }
+}
+
+/// This will update the marginalia config and setup the page with the provided config options.
+/// (This means this will insert a pagebreak.)
+///
+/// Use as
+/// ```typ
+/// #show: marginalia.setup.with(/* options here */)
+/// ```
+///
+/// The default values for the margins have been chosen such that they match the default typst margins for a4. It is strongly recommended to change at least one of either `inner` or `outer` to be wide enough to actually contain text.
+///
+/// This function also sets up the neccesary show-rule to allow referencing labelled notes.
+/// If you also have a custom ```typ #show ref:``` rule, it may be relevant if setup is called before or after that show rule.
+///
+/// #compat((
+/// "0.1.5": (
+/// [`numbering` has been replaced with @note.numbering/@notefigure.numbering.
+/// #ergo[set \````typc numbering: /**/```\` directly on your notes instead of via @setup.\ Use ```typ #let note = note.with(numbering: /**/)``` for consistency.]],
+/// [`flush-numbers` has been replaced by @note.flush-numbering.
+/// #ergo[set \````typc flush-numbering: true```\` directly on your notes instead of via @setup.\ Use ```typ #let note = note.with(flush-numbering: /**/)``` for consistency.]],
+/// ),
+/// "0.2.0": (
+/// [This function does no longer apply the configuration partially, but will reset all unspecified options to the default.
+/// Additionally, it replaces the `page-setup()` function that was needed previously and is no longer called `configure()`],
+/// ),
+/// ))
+#let setup(
+ /// Inside/left margins.
+ /// - `far`: Distance between edge of page and margin (note) column.
+ /// - `width`: Width of the margin column.
+ /// - `sep`: Distance between margin column and main text column.
+ ///
+ /// The page inside/left margin should equal `far` + `width` + `sep`.
+ ///
+ /// If partial dictionary is given, it will be filled up with defaults.
+ /// -> dictionary
+ inner: (far: 5mm, width: 15mm, sep: 5mm),
+ /// Outside/right margins. Analogous to `inner`.
+ /// -> dictionary
+ outer: (far: 5mm, width: 15mm, sep: 5mm),
+ /// Top margin.
+ /// -> length
+ top: 2.5cm,
+ /// Bottom margin.
+ /// -> length
+ bottom: 2.5cm,
+ ///- If ```typc true```, will use inside/outside margins, alternating on each page.
+ ///- If ```typc false```, will use left/right margins with all pages the same.
+ /// -> bool
+ book: false,
+ /// Minimal vertical distance between notes and to wide blocks.
+ /// -> length
+ clearance: 12pt,
+ /// -> content
+ body,
+) = { }
+#let setup(..config, body) = {
+ _config.update(_fill_config(..config))
+ set page(.._page-setup(..config))
+ show ref: it => {
+ if (
+ it.has("element")
+ and it.element != none
+ and it.element.has("children")
+ and it.element.children.len() > 1
+ and it.element.children.first().func() == metadata
+ ) {
+ if it.element.children.first().value == "_marginalia_note" {
+ h(0pt, weak: true)
+ show link: it => {
+ show underline: i => i.body
+ it
+ }
+ let dest = query(selector(<_marginalia_note>).after(it.element.location()))
+ assert(dest.len() > 0, message: "Could not find referenced note")
+ link(dest.first().location(), dest.first().value.anchor)
+ } else if it.element.children.first().value == "_marginalia_notefigure" {
+ let dest = query(selector(<_marginalia_notefigure_meta>).after(it.element.location()))
+ assert(dest.len() > 0, message: "Could not find referenced notefigure")
+ if it.has("form") {
+ std.ref(dest.first().value.label, form: it.form, supplement: it.supplement)
+ } else {
+ std.ref(dest.first().value.label, supplement: it.supplement)
+ }
+ } else {
+ it
+ }
+ } else {
+ it
+ }
+ }
+ body
+}
+
+/// // #internal[(mostly for internal use)]
+/// Returns a dictionary with the keys `far`, `width`, `sep` containing the respective widths of the
+/// left margin on the current page. (On both even and odd pages.)
+///
+/// Requires context.
+/// -> dictionary
+#let get-left() = {
+ let config = _config.get()
+ if not (config.book) or calc.odd(here().page()) {
+ return config.inner
+ } else {
+ return config.outer
+ }
+}
+
+/// // #internal[(mostly for internal use)]
+/// Returns a dictionary with the keys `far`, `width`, `sep` containing the respective widths of the
+/// right margin on the current page. (On both even and odd pages.)
+///
+/// Requires context.
+/// -> dictionary
+#let get-right() = {
+ let config = _config.get()
+ if not (config.book) or calc.odd(here().page()) {
+ return config.outer
+ } else {
+ return config.inner
+ }
+}
+
+/// Adds lines to the page background showing the various vertical and horizontal boundaries used by marginalia.
+///
+/// To be used in a show-rule:
+/// ```typ
+/// #show: marginalia.show-frame
+/// ```
+/// -> content
+#let show-frame(
+ /// Stroke for the lines.
+ ///
+ /// ```typ
+ /// #show: marginalia.show-frame.with(stroke: 2pt + red)
+ /// ```
+ /// -> color
+ stroke: 0.5pt + luma(90%),
+ /// Set to false to hide the header line
+ /// -> bool
+ header: true,
+ /// Set to false to hide the footer line
+ /// -> bool
+ footer: true,
+ /// -> content
+ body,
+) = {
+ set page(
+ background: context {
+ let leftm = get-left()
+ let rightm = get-right()
+
+ let topm = _config.get().top
+ let ascent = page.header-ascent.ratio * topm + page.header-ascent.length
+ place(top, dy: topm, line(length: 100%, stroke: stroke))
+ if header {
+ place(top, dy: topm - ascent, line(length: 100%, stroke: stroke))
+ }
+
+ let bottomm = _config.get().bottom
+ let descent = page.footer-descent.ratio * bottomm + page.footer-descent.length
+ place(bottom, dy: -bottomm, line(length: 100%, stroke: stroke))
+ if footer {
+ place(bottom, dy: -bottomm + descent, line(length: 100%, stroke: stroke))
+ }
+
+ place(left, dx: leftm.far, rect(width: leftm.width, height: 100%, stroke: (x: stroke)))
+ place(left, dx: leftm.far + leftm.width + leftm.sep, line(length: 100%, stroke: stroke, angle: 90deg))
+
+ place(right, dx: -rightm.far, rect(width: rightm.width, height: 100%, stroke: (x: stroke)))
+ place(right, dx: -rightm.far - rightm.width - rightm.sep, line(length: 100%, stroke: stroke, angle: 90deg))
+ },
+ )
+
+ body
+}
+
+/// #internal[(mostly for internal use)]
+/// Calculates positions for notes.
+///
+/// Return type is of the form `(: offset)`
+/// -> dictionary
+#let _calculate-offsets(
+ /// Of the form
+ /// ```typc
+ /// (
+ /// height: length, // total page height
+ /// top: length, // top margin
+ /// bottom: length, // bottom margin
+ /// )
+ /// ```
+ /// -> dictionary
+ page,
+ /// Of the form `(: item)` where items have the form
+ /// ```typc
+ /// (
+ /// natural: length, // initial vertical position of item, relative to page
+ /// height: length, // vertical space needed for item
+ /// clearance: length, // vertical padding required.
+ /// // may be collapsed at top & bottom of page, and above separators
+ /// shift: bool | "ignore" | "avoid", // whether the item may be moved about. `auto` = move only if neccessary
+ /// keep-order: bool, // if false, may be reordered. if true, order relative to other `false` items is kept
+ /// )
+ /// ```
+ /// -> dictionary
+ items,
+ /// -> length
+ clearance,
+) = {
+ // sorting
+ let ignore = ()
+ let reoderable = ()
+ let nonreoderable = ()
+ for (key, item) in items.pairs() {
+ if item.shift == "ignore" {
+ ignore.push(key)
+ } else if item.keep-order == false {
+ reoderable.push((key, item.natural))
+ } else {
+ nonreoderable.push((key, item.natural))
+ }
+ }
+ reoderable = reoderable.sorted(key: ((_, pos)) => pos)
+
+ let positions = ()
+
+ let index_r = 0
+ let index_n = 0
+ while index_r < reoderable.len() and index_n < nonreoderable.len() {
+ if reoderable.at(index_r).at(1) <= nonreoderable.at(index_n).at(1) {
+ positions.push(reoderable.at(index_r))
+ index_r += 1
+ } else {
+ positions.push(nonreoderable.at(index_n))
+ index_n += 1
+ }
+ }
+ while index_n < nonreoderable.len() {
+ positions.push(nonreoderable.at(index_n))
+ index_n += 1
+ }
+ while index_r < reoderable.len() {
+ positions.push(reoderable.at(index_r))
+ index_r += 1
+ }
+
+ // shift down
+ let cur = page.top
+ let empty = 0pt
+ let prev-shift-avoid = false
+ let positions_d = ()
+ for (key, position) in positions {
+ let fault = cur - position
+ if cur <= position {
+ positions_d.push((key, position))
+ if items.at(key).shift == false {
+ empty = 0pt
+ } else {
+ empty += position - cur
+ }
+ cur = position + items.at(key).height + clearance
+ } else if items.at(key).shift == "avoid" {
+ if fault <= empty {
+ if prev-shift-avoid {
+ positions_d.push((key, cur))
+ cur = cur + items.at(key).height + clearance
+ } else {
+ // can stay
+ positions_d.push((key, position))
+ empty -= fault // ?
+ cur = position + items.at(key).height + clearance
+ }
+ } else {
+ if prev-shift-avoid {
+ positions_d.push((key, cur))
+ cur = cur + items.at(key).height + clearance
+ } else {
+ positions_d.push((key, position + fault - empty))
+ cur = position + fault - empty + items.at(key).height + clearance
+ empty = 0pt
+ }
+ }
+ } else if items.at(key).shift == false {
+ // check if we can swap with previous
+ if (
+ positions_d.len() > 0
+ and fault > empty
+ and items.at(positions_d.last().at(0)).shift != false
+ and ((not items.at(key).keep-order) or (not items.at(positions_d.last().at(0)).keep-order))
+ ) {
+ let (prev, _) = positions_d.pop()
+ cur -= items.at(prev).height
+ positions_d.push((key, position))
+ empty = 0pt
+ let new_x = calc.max(position + items.at(key).height + clearance, cur)
+ cur = new_x
+ positions_d.push((prev, cur))
+ cur = cur + items.at(prev).height + clearance
+ } else {
+ positions_d.push((key, position))
+ empty = 0pt
+ cur = calc.max(position + items.at(key).height + clearance, cur)
+ }
+ } else {
+ positions_d.push((key, cur))
+ empty += 0pt
+ // empty = 0pt
+ cur = cur + items.at(key).height + clearance
+ }
+ prev-shift-avoid = items.at(key).shift == "avoid"
+ }
+
+ let positions = ()
+
+ let max = if page.height == auto {
+ if positions_d.len() > 0 {
+ let (key, position) = positions_d.at(-1)
+ position + items.at(key).height
+ } else { 0pt }
+ } else {
+ page.height - page.bottom
+ }
+ for (key, position) in positions_d.rev() {
+ if max > position + items.at(key).height {
+ positions.push((key, position))
+ max = position - clearance
+ } else if items.at(key).shift == false {
+ positions.push((key, position))
+ max = calc.min(position - clearance, max)
+ } else {
+ positions.push((key, max - items.at(key).height))
+ max = max - items.at(key).height - clearance
+ }
+ }
+
+ let result = (:)
+ for (key, position) in positions {
+ result.insert(key, position - items.at(key).natural)
+ }
+ for key in ignore {
+ result.insert(key, 0pt)
+ }
+ result
+}
+
+// #let _parent-note = state("_marginalia_parent-note-natural", false)
+
+#let _note_extends_left = state("_note_extends_left", (:))
+// #let _note_offsets_left = state("_note_offsets_left", (:))
+
+#let _note_extends_right = state("_note_extends_right", (:))
+// #let _note_offsets_right = state("_note_offsets_right", (:))
+
+
+// Internal use.
+// Requires Context.
+// -> "left" | "right"
+#let _get-near-side() = {
+ let anchor = here().position()
+ let pagewidth = if page.flipped { page.height } else { page.width }
+ let left = get-left()
+ let right = get-right()
+ if (
+ anchor.x - left.far - left.width - left.sep
+ < (pagewidth - left.far - left.width - left.sep - right.far - right.width - right.sep) / 2
+ ) {
+ "left"
+ } else {
+ "right"
+ }
+}
+
+// Internal use.
+#let place-note(
+ /// -> "right" | "left" | "near"
+ side: "right",
+ dy: 0pt,
+ keep-order: false,
+ shift: true,
+ body,
+) = (
+ box(
+ width: 0pt,
+ context {
+ assert(side == "left" or side == "right" or side == "near", message: "side must be left or right.")
+
+ let dy = dy.to-absolute()
+ let anchor = here().position()
+ let pagewidth = if page.flipped { page.height } else { page.width }
+ let page_num = str(anchor.page)
+
+ let side = if side == "near" { _get-near-side() } else { side }
+
+ let width = if side == "left" { get-left().width } else { get-right().width }
+ let height = measure(body, width: width).height
+ let notebox = box(width: width, height: height, body)
+ let natural_position = anchor.y + dy
+
+ let extends = if side == "right" { _note_extends_right } else { _note_extends_left }
+ // let offsets = if side == "right" { _note_offsets_right } else { _note_offsets_left }
+
+ let current = extends.get().at(page_num, default: ())
+ let index = current.len()
+
+ extends.update(old => {
+ let oldpage = old.at(page_num, default: ())
+ oldpage.push((natural: natural_position, height: height, shift: shift, keep-order: keep-order))
+ old.insert(page_num, oldpage)
+ old
+ })
+
+ let offset_page = (
+ height: if page.flipped { page.width } else { page.height },
+ bottom: _config.get().bottom,
+ top: _config.get().top,
+ )
+ let offset_items = extends
+ .final()
+ .at(page_num, default: ())
+ .enumerate()
+ .map(((key, item)) => (str(key), item))
+ .to-dict()
+ let offset_clearance = _config.get().clearance
+ let dbg = _calculate-offsets(offset_page, offset_items, offset_clearance)
+ // TODO: trying to cache the results does not work.
+ // offsets.update(old => {
+ // // only do calculations if not yet in old
+ // if page_num in old {
+ // old
+ // } else {
+ // let new_offsets = _calculate-offsets(offset_page, offset_items, offset_clearance)
+ // assert(dbg == new_offsets)
+ // old.insert(page_num, new_offsets)
+ // old
+ // }
+ // })
+
+ // let vadjust = dy + offsets.final().at(page_num, default: (:)).at(str(index), default: 0pt)
+ let vadjust = dy + dbg.at(str(index), default: 0pt)
+
+ // box(width: 0pt, place(box(fill: yellow, width: 1cm, text(size: 5pt)[#anchor.y + #vadjust = #(anchor.y + vadjust)])))
+
+ let hadjust = if side == "left" { get-left().far - anchor.x } else {
+ pagewidth - anchor.x - get-right().far - get-right().width
+ }
+
+ place(left, dx: hadjust, dy: vadjust, notebox)
+ },
+ )
+)
+
+/// Create a marginnote.
+/// Will adjust it's position downwards to avoid previously placed notes, and upwards to avoid extending past the bottom margin.
+///
+/// Notes can be attached a label and are referenceable (if @setup was run).
+///
+/// #compat((
+/// "0.1.5": (
+/// [`reverse` has been replaced with @note.side.
+/// #ergo[use \````typc side: "inner"```\` instead of \````typc reverse: true```\`]],
+/// [`numbered` has been replaced with @note.numbering.
+/// #ergo[use \````typc numbering: "none"```\` instead of \````typc numbered: false```\`]],
+/// ),
+/// "0.2.2": (
+/// [`align-baseline` has been replaced with @note.alignment.
+/// #ergo[use \````typc alignment: "top"```\` instead of \````typc align-baseline: false```\`]],
+/// ),
+/// ))
+#let note(
+ /// Counter to use for this note.
+ /// Can be set to ```typc none``` do disable numbering this note.
+ ///
+ /// Will only be stepped if `numbering` is not ```typc none```.
+ /// -> counter | none
+ counter: notecounter,
+ /// Function or `numbering`-string to generate the note markers from the `notecounter`.
+ /// - If ```typc none```, will not step the `counter`.
+ /// - Will be ignored if `counter` is ```typc none```.
+ ///
+ /// Examples:
+ /// - ```typc (..i) => super(numbering("1", ..i))``` for superscript numbers
+ /// #note(numbering: (..i) => super(numbering("1", ..i)))[E.g.]
+ /// - ```typc (..i) => super(numbering("a", ..i))``` for superscript letters
+ /// #note(numbering: (..i) => super(numbering("a", ..i)))[E.g.]
+ /// - ```typc marginalia.note-numbering.with(repeat: false, markers: ())``` for small blue numbers
+ /// #note(numbering: marginalia.note-numbering.with(repeat: false, markers: ()))[E.g.]
+ /// -> none | function | string
+ numbering: note-numbering,
+ /// Used to generate the marker for the anchor (i.e. the one in the surrounding text)
+ ///
+ /// - If ```typc auto```, will use the given @note.numbering.
+ /// - Will be ignored if `counter` is ```typc none```.
+ /// -> none | auto | function | string
+ anchor-numbering: auto,
+ /// Whether to have the anchor link to the note, and vice-versa.
+ /// -> bool
+ link-anchor: true,
+ /// Disallow note markers hanging into the whitespace.
+ /// - If ```typc auto```, acts like ```typc false``` if @note.anchor-numbering is ```typc auto```.
+ /// -> auto | bool
+ flush-numbering: auto,
+ /// Which side to place the note.
+ /// ```typc auto``` defaults to ```typc "outer"```.
+ /// In non-book documents, ```typc "outer"```/```typc "inner"``` are equivalent to ```typc "right"```/```typc "left"``` respectively.
+ /// ```typc "near"``` will place the note in the left or right margin, depending which is nearer.
+ /// -> auto | "outer" | "inner" | "left" | "right" | "near"
+ side: auto,
+ /// Vertical alignment of the note.
+ /// #let note = note.with(block-style: (outset: (left: 5cm), fill: oklch(70%, 0.1, 120deg, 20%)), shift: "ignore")
+ /// - ```typc "bottom"``` aligns the bottom edge of the note with the main text baseline.#note(alignment: "bottom")[Bottom\ ...]
+ /// - ```typc "baseline"``` aligns the first baseline of the note with the main text baseline.#note(alignment: "baseline")[Baseline\ ...]
+ /// - ```typc "top"``` aligns the top edge of the note with the main text baseline.#note(alignment: "top")[Top\ ...]
+ ///
+ /// -> "baseline" | "top" | "bottom"
+ alignment: "baseline",
+ /// Inital vertical offset of the note, relative to the alignment point.
+ /// The note may get shifted still to avoid other notes depending on @note.shift.
+ /// -> length
+ dy: 0pt,
+ /// Notes with ```typc keep-order: true``` are not re-ordered relative to one another.
+ ///
+ /// // If ```typc auto```, defaults to false unless ```typc numbering``` is ```typc none``.
+ /// // -> bool | auto
+ /// -> bool
+ keep-order: false,
+ /// Whether the note may get shifted vertically to avoid other notes.
+ /// - ```typc true```: The note may shift to avoid other notes, wide-blocks and the top/bottom margins.
+ /// - ```typc false```: The note is placed exactly where it appears, and other notes may shift to avoid it.
+ /// - ```typc "avoid"```: The note is only shifted if shifting other notes is not sufficent to avoid a collision.
+ /// E.g. if it would collide with a wideblock or a note with ```typc shift: false```.
+ /// - ```typc "ignore"```: Like ```typc false```, but other notes do not try to avoid it.
+ /// - ```typc auto```: ```typc true``` if numbered, ```typc "avoid"``` otherwise.
+ /// -> bool | auto | "avoid" | "ignore"
+ shift: auto,
+ /// Will be used to ```typc set``` the text style.
+ /// -> dictionary
+ text-style: (size: 9.35pt, style: "normal", weight: "regular"),
+ /// Will be used to ```typc set``` the par style.
+ /// -> dictionary
+ par-style: (spacing: 1.2em, leading: 0.5em, hanging-indent: 0pt),
+ /// Will be passed to the `block` containing the note body.
+ /// If this is a function, it will be called with ```typc "left"``` or ```typc "right"``` as its argument, and the result is passed to the `block`.
+ /// -> dictionary | function
+ block-style: (width: 100%),
+ /// -> content
+ body,
+) = {
+ metadata("_marginalia_note")
+
+ let numbering = if counter == none { none } else { numbering }
+ if numbering != none { counter.step() }
+ let flush-numbering = if flush-numbering == auto { anchor-numbering != auto } else { flush-numbering }
+ let anchor-numbering = if anchor-numbering == auto { numbering } else { anchor-numbering }
+
+ // let keep-order = if keep-order == auto { not numbered } else { keep-orders }
+ let shift = if shift == auto { if numbering != none { true } else { "avoid" } } else { shift }
+
+ let text-style = (size: 9.35pt, style: "normal", weight: "regular", ..text-style)
+ let par-style = (spacing: 1.2em, leading: 0.5em, hanging-indent: 0pt, ..par-style)
+
+ context {
+ let side = if side == "outer" or side == auto {
+ if _config.get().book and calc.even(here().page()) { "left" } else { "right" }
+ } else if side == "inner" {
+ if _config.get().book and calc.even(here().page()) { "right" } else { "left" }
+ } else { side }
+
+ assert(
+ side == "left" or side == "right" or side == "near",
+ message: "side must be auto, left, right, near, outer, or inner.",
+ )
+ let body = if numbering != none {
+ let number = {
+ if link-anchor {
+ show link: it => {
+ show underline: i => i.body
+ it
+ }
+ link(here(), counter.display(numbering))
+ } else {
+ counter.display(numbering)
+ }
+ }
+ if flush-numbering {
+ box(number)
+ h(0pt, weak: true)
+ body
+ } else {
+ body
+ let width = measure({
+ set text(..text-style)
+ set par(..par-style)
+ number
+ }).width
+ if width < 8pt { width = 8pt }
+ place(
+ top + start,
+ {
+ h(-width) // HACK: uses `h` instad of `dx` so it works in ltr and rtl contexts
+ box(
+ width: width,
+ {
+ h(1fr)
+ sym.zws
+ number
+ h(1fr)
+ },
+ )
+ },
+ )
+ }
+ } else {
+ body
+ }
+
+ let block-style = if type(block-style) == function {
+ block-style(side)
+ } else {
+ block-style
+ }
+
+ let anchor = if anchor-numbering != none and counter != none {
+ counter.display(anchor-numbering)
+ } else []
+
+ let body = align(
+ top,
+ block(
+ width: 100%,
+ ..block-style,
+ align(
+ start,
+ {
+ // HACK: inner align ensures text-direction is unaffected by `place(left,..)`
+ set text(..text-style)
+ set par(..par-style)
+ [#metadata((note: true, anchor: anchor))<_marginalia_note>#body]
+ },
+ ),
+ ),
+ )
+
+ let dy-adjust = if alignment == "baseline" {
+ measure(text(..text-style, sym.zws)).height
+ } else if alignment == "top" {
+ 0pt
+ } else if alignment == "bottom" {
+ let width = if side == "left" {
+ get-left().width
+ } else {
+ get-right().width
+ }
+ measure(width: width, body).height
+ } else {
+ panic("Unknown value for alignment")
+ }
+ let dy = dy - dy-adjust
+
+ h(0pt, weak: true)
+ box({
+ if anchor-numbering != none {
+ if link-anchor {
+ show link: it => {
+ show underline: i => i.body
+ it
+ }
+ let dest = query(selector(<_marginalia_note>).after(here()))
+ if dest.len() > 0 {
+ link(dest.first().location(), anchor)
+ } else {
+ anchor
+ }
+ } else {
+ anchor
+ }
+ }
+ place-note(side: side, dy: dy, keep-order: keep-order, shift: shift, body)
+ })
+ }
+}
+
+/// Reference a nearby margin note. Will place the same anchor as that note had.
+///
+/// Be aware that notes without an anchor (including notefigures) still count for the offset, but the rendered link is empty.
+///
+/// #example(scale-preview: 100%, ```typ
+/// This is a note: #note[Blah Blah]
+///
+/// This is a link to that note:
+/// #marginalia.ref(-1)
+///
+/// This is an unnumbered note:
+/// #note(counter: none)[Blah Blah]
+///
+/// This is a useless link to that note:
+/// #marginalia.ref(-1)
+/// ```)
+#let ref(
+ /// How many notes away the target note is.
+ /// - ```typc -1```: The previous note.
+ /// - ```typc 0```: Disallowed
+ /// - ```typc 1```: The next note.
+ /// -> integer
+ offset,
+) = context {
+ h(0pt, weak: true)
+ show link: it => {
+ show underline: i => i.body
+ it
+ }
+ assert(offset != 0, message: "marginalia.ref offset must not be 0.")
+ if offset > 0 {
+ let dest = query(selector(<_marginalia_note>).after(here()))
+ assert(dest.len() > offset, message: "Not enough notes after this to reference")
+ link(dest.at(offset - 1).location(), dest.at(offset - 1).value.anchor)
+ } else {
+ let dest = query(selector(<_marginalia_note>).before(here()))
+ assert(dest.len() >= -offset, message: "Not enough notes before this to reference")
+ link(dest.at(offset).location(), dest.at(offset).value.anchor)
+ }
+}
+
+/// Creates a figure in the margin.
+///
+/// Parameters `numbering`, `anchor-numbering`, `flush-numbering`, `side`, `keep-order`, `shift`, `text-style`, `par-style`, and `block-style` work the same as for @note.
+///
+/// Notefigures can be attached a label and are referenceable (if @setup was run). Furthermore, the underlying @note can be given a label using the `note-label` parameter.
+///
+/// #compat((
+/// "0.1.5": (
+/// [`reverse` has been replaced with @notefigure.side.
+/// #ergo[use \````typc side: "inner"```\` instead of \````typc reverse: true```\`]],
+/// [`numbered` has been replaced with @notefigure.numbering.
+/// #ergo[use \````typc numbering: marginalia.note-numbering```\` instead of \````typc numbered: true```\`]],
+/// ),
+/// "0.2.2": (
+/// [@notefigure.dy no longer takes a relative length, instead @notefigure.alignment was added.],
+/// ),
+/// "0.3.0": (
+/// [The `label` argument has been removed.
+/// #ergo[Instead of ```typ #notefigure(label: , ..)```, use ```typ #notefigure(..)```.]],
+/// )
+/// ))
+/// -> content
+#let notefigure(
+ /// Same as @note.numbering, but with different default.
+ /// Set this to `marginalia.notecounter` (or another counter) to enable numbering this note.
+ ///
+ /// Will only be stepped if `numbering` is not ```typc none```.
+ ///
+ /// #example(scale-preview: 100%, dir: ttb, ```typ
+ /// Notefigure with marker:
+ /// #notefigure(rect(height: 10pt, width: 100%), caption: [...], counter: marginalia.notecounter)
+ /// ```)
+ /// #example(scale-preview: 100%, dir: ttb, ```typ
+ /// Using the figure counter for the numbering:
+ /// #notefigure(
+ /// rect(height: 10pt, width: 100%), caption: [...],
+ /// counter: counter(figure.where(kind: image)),
+ /// anchor-numbering: (.., i) => super[fig. #numbering("1", i+1)], numbering: none,
+ /// )
+ /// ```)
+ /// -> counter | none
+ counter: none,
+ /// Same as @note.numbering.
+ /// -> none | function | string
+ numbering: note-numbering,
+ /// Same as @note.anchor-numbering.
+ /// -> none | auto | function | string
+ anchor-numbering: auto,
+ /// Whether to have the anchor link to the note, and vice-versa.
+ /// -> bool
+ link-anchor: true,
+ /// Disallow note markers hanging into the whitespace.
+ /// - If ```typc auto```, acts like ```typc false``` if @notefigure.anchor-numbering is ```typc auto```.
+ /// -> auto | bool
+ flush-numbering: auto,
+ /// Which side to place the note.
+ /// ```typc auto``` defaults to ```typc "outer"```.
+ /// In non-book documents, ```typc "outer"```/```typc "inner"``` are equivalent to ```typc "right"```/```typc "left"``` respectively.
+ /// -> auto | "outer" | "inner" | "left" | "right" | "near"
+ side: auto,
+ /// Vertical alignment of the notefigure.
+ /// #let notefigure = notefigure.with(shift: "ignore", show-caption: (number, caption) => block(outset: (left: 5cm), width: 100%, fill: oklch(70%, 0.1, 120deg, 20%), {
+ /// number; caption.supplement; [ ]; caption.counter.display(caption.numbering); caption.separator; caption.body
+ /// }))
+ /// - ```typc "top"```, ```typc "bottom"``` work the same as @note.alignment.
+ /// - ```typc "baseline"``` aligns the first baseline of the _caption_ with the main text baseline.
+ /// #notefigure(rect(width: 100%, height: 2pt, stroke: 0.5pt + gray), alignment: "baseline", caption: [Baseline])
+ /// - ```typc "caption-top"``` aligns the top of the caption with the main text baseline.
+ /// #notefigure(rect(width: 100%, height: 2pt, stroke: 0.5pt + gray), alignment: "caption-top", caption: [Caption-top])
+ ///
+ /// -> "baseline" | "top" | "bottom" | "caption-top"
+ alignment: "baseline",
+ /// Inital vertical offset of the notefigure, relative to the alignment point.
+ ///
+ /// The notefigure may get shifted still to avoid other notes depending on ```typc notefigure.shift```.
+ /// -> length
+ dy: 0pt,
+ /// -> bool
+ keep-order: false,
+ /// -> bool | auto | "avoid" | "ignore"
+ shift: auto,
+ /// Will be used to ```typc set``` the text style.
+ /// -> dictionary
+ text-style: (size: 9.35pt, style: "normal", weight: "regular"),
+ /// Will be used to ```typc set``` the par style.
+ /// -> dictionary
+ par-style: (spacing: 1.2em, leading: 0.5em, hanging-indent: 0pt),
+ /// Will be passed to the `block` containing the note body (this contains the entire figure).
+ /// If this is a function, it will be called with ```typc "left"``` or ```typc "right"``` as its argument, and the result is passed to the `block`.
+ /// -> dictionary | function
+ block-style: (width: 100%),
+ /// A function with two arguments, the (note-)number and the caption.
+ /// Will be called as the caption show rule.
+ ///
+ /// If @notefigure.numbering is ```typc none```, `number` will be ```typc none```.
+ /// -> function
+ show-caption: (number, caption) => {
+ number
+ caption.supplement
+ [ ]
+ caption.counter.display(caption.numbering)
+ caption.separator
+ caption.body
+ },
+ /// Pass-through to ```typ #figure()```, but used to adjust the vertical position.
+ /// -> length
+ gap: 0.55em,
+ /// A label to attach to the note. Referencing this label will repeat the anchor,
+ /// so it is only really useful if @notefigure.anchor-numbering is not ```typc none```.
+ /// -> none | label
+ note-label: none,
+ /// The figure content, e.g.~an image. Pass-through to ```typ #figure()```, but used to adjust the vertical position.
+ /// -> content
+ content,
+ /// Pass-through to ```typ #figure()```.
+ ///
+ /// (E.g. `caption`)
+ /// -> arguments
+ ..figureargs,
+) = {
+ [#metadata("_marginalia_notefigure")<_marginalia_notefigure>]
+
+ let numbering = if counter == none { none } else { numbering }
+ if numbering != none { counter.step() }
+ let flush-numbering = if flush-numbering == auto { anchor-numbering != auto } else { flush-numbering }
+ let anchor-numbering = if anchor-numbering == auto { numbering } else { anchor-numbering }
+
+ let shift = if shift == auto { if numbering != none { true } else { "avoid" } } else { shift }
+
+ let text-style = (size: 9.35pt, style: "normal", weight: "regular", ..text-style)
+ let par-style = (spacing: 1.2em, leading: 0.5em, hanging-indent: 0pt, ..par-style)
+
+ context {
+ let number = if counter != none and numbering != none {
+ if link-anchor {
+ show link: it => {
+ show underline: i => i.body
+ it
+ }
+ link(here(), counter.display(numbering))
+ } else {
+ counter.display(numbering)
+ }
+ } else { none }
+ let number-width = if numbering != none and not flush-numbering {
+ let width = measure({
+ set text(..text-style)
+ set par(..par-style)
+ number
+ }).width
+ if width < 8pt { 8pt } else { width }
+ } else { 0pt }
+
+ set figure.caption(position: bottom)
+ show figure.caption: it => {
+ set align(left)
+ if numbering != none {
+ context if flush-numbering {
+ show-caption(
+ number,
+ it,
+ )
+ } else {
+ show-caption(
+ place(
+ // top + left,
+ left,
+ dx: -number-width,
+ box(
+ width: number-width,
+ {
+ h(1fr)
+ sym.zws
+ number
+ h(1fr)
+ },
+ ),
+ ),
+ it,
+ )
+ }
+ } else {
+ context show-caption(none, it)
+ }
+ }
+
+ let side = if side == "outer" or side == auto {
+ if _config.get().book and calc.even(here().page()) { "left" } else { "right" }
+ } else if side == "inner" {
+ if _config.get().book and calc.even(here().page()) { "right" } else { "left" }
+ } else if side == "near" {
+ _get-near-side()
+ } else {
+ side
+ }
+
+ let width = if side == "left" {
+ get-left().width
+ } else {
+ get-right().width
+ }
+ let height = (
+ measure(
+ width: width,
+ {
+ set text(..text-style)
+ set par(..par-style)
+ content
+ },
+ ).height
+ + measure(text(..text-style, v(gap))).height
+ )
+ let baseline-height = measure(text(..text-style, sym.zws)).height
+ let alignment = alignment
+ let dy = dy
+ if alignment == "baseline" {
+ alignment = "top"
+ dy = dy - height - baseline-height
+ } else if alignment == "caption-top" {
+ alignment = "top"
+ dy = dy - height
+ }
+
+ let index = query(selector(<_marginalia_notefigure>).before(here())).len()
+ let figure-label = std.label("_marginalia_notefigure__" + str(index))
+
+ [#note(
+ numbering: none,
+ anchor-numbering: anchor-numbering,
+ link-anchor: link-anchor,
+ counter: counter,
+ side: side,
+ dy: dy,
+ alignment: alignment,
+ keep-order: keep-order,
+ shift: shift,
+ text-style: text-style,
+ par-style: par-style,
+ block-style: block-style,
+ [#figure(
+ content,
+ gap: gap,
+ placement: none,
+ ..figureargs,
+ )#figure-label],
+ )#note-label]
+ // for unclear reasons, if this is placed before the note, it becomes part of the content referenced by note-label.
+ [#metadata((label: figure-label))<_marginalia_notefigure_meta>]
+ }
+}
+
+/// Creates a block that extends into the outside/right margin.
+///
+/// Note: This does not handle page-breaks sensibly.
+/// If ```typc config.book = false```, this is not a problem, as then the margins on all pages are the same.
+/// However, when using alternating page margins, a multi-page `wideblock` will not work properly.
+/// To be able to set this appendix in a many-page wideblock, this code was used:
+/// ```typ
+/// #show: marginalia.setup.with(..config, book: false)
+/// #wideblock(side: "inner")[...]
+/// ```
+///
+/// #compat((
+/// "0.1.5": (
+/// [`reverse` and `double` have been replaced with @wideblock.side.
+/// #ergo[use \````typc side: "inner"```\` instead of \````typc reverse: true```\`]
+/// #ergo[use \````typc side: "both"```\` instead of \````typc double: true```\`]],
+/// ),
+/// ))
+/// -> content
+#let wideblock(
+ /// Which side to extend into.
+ /// ```typc auto``` defaults to ```typc "outer"```.
+ /// In non-book documents, ```typc "outer"```/```typc "inner"``` are equivalent to ```typc "right"```/```typc "left"``` respectively.
+ /// -> auto | "outer" | "inner" | "left" | "right" | "both"
+ side: auto,
+ /// -> content
+ body,
+) = (
+ context {
+ let left-margin = get-left()
+ let right-margin = get-right()
+
+ let side = if side == "outer" or side == auto {
+ if _config.get().book and calc.even(here().page()) { "left" } else { "right" }
+ } else if side == "inner" {
+ if _config.get().book and calc.even(here().page()) { "right" } else { "left" }
+ } else { side }
+
+ assert(
+ side == "left" or side == "right" or side == "both",
+ message: "side must be auto, both, left, right, outer, or inner.",
+ )
+
+ let left = if side == "both" or side == "left" {
+ left-margin.width + left-margin.sep
+ } else {
+ 0pt
+ }
+ let right = if side == "both" or side == "right" {
+ right-margin.width + right-margin.sep
+ } else {
+ 0pt
+ }
+
+ let position = here().position().y
+ let page_num = str(here().page())
+ let pagewidth = if page.flipped { page.height } else { page.width }
+ let linewidth = (
+ pagewidth
+ - left-margin.far
+ - left-margin.width
+ - left-margin.sep
+ - right-margin.far
+ - right-margin.width
+ - right-margin.sep
+ )
+ let height = measure(width: linewidth + left + right, body).height
+
+ if left != 0pt {
+ let current = _note_extends_left.get().at(page_num, default: ())
+ let index = current.len()
+ _note_extends_left.update(old => {
+ let oldpage = old.at(page_num, default: ())
+ oldpage.push((natural: position, height: height, shift: false, keep-order: false))
+ old.insert(page_num, oldpage)
+ old
+ })
+ }
+
+ if right != 0pt {
+ let current = _note_extends_right.get().at(page_num, default: ())
+ let index = current.len()
+ _note_extends_right.update(old => {
+ let oldpage = old.at(page_num, default: ())
+ oldpage.push((natural: position, height: height, shift: false, keep-order: false))
+ old.insert(page_num, oldpage)
+ old
+ })
+ }
+
+ pad(left: -left, right: -right, body)
+ }
+)
+
+
+// #let header(
+// /// Will be used to ```typc set``` the text style.
+// /// -> dictionary
+// text-style: (:),
+// /// -> optional | (content, content, content)
+// even: (none, none, none),
+// /// -> optional | (content, content, content)
+// odd: (none, none, none),
+// /// -> optional | content
+// inner,
+// /// -> optional | content
+// center,
+// /// -> optional | content
+// outer,
+// ) = {}
+
+/// This generates a @wideblock and divides its arguments into three boxes sized to match the margin setup.
+/// -> content
+#let header(
+ /// Will be used to ```typc set``` the text style.
+ /// -> dictionary
+ text-style: (:),
+ /// Up to three positional arguments.
+ /// They are interpreted as `⟨outer⟩`, `⟨center⟩⟨outer⟩`, or `⟨inner⟩⟨center⟩⟨outer⟩`,
+ /// depending on how many there are.
+ ..args,
+ /// This is ignored if there are positional parameters or if @setup.book is ```typc false```.
+ ///
+ /// Otherwise, it is interpreted as `(⟨outer⟩, ⟨center⟩, ⟨inner⟩)` on even pages.
+ /// -> array
+ even: (),
+ /// This is ignored if there are positional parameters.
+ ///
+ /// Otherwise, it is interpreted as `(⟨inner⟩, ⟨center⟩, ⟨outer⟩)` on odd pages or, if @setup.book is ```typc false```, on all pages.
+ /// -> array
+ odd: (),
+) = context {
+ let leftm = get-left()
+ let rightm = get-right()
+ let is-odd = not _config.get().book or calc.odd(here().page())
+
+ set text(..text-style)
+
+ let pos = args.pos()
+ if pos.len() > 0 {
+ // if args.named().len() > 0 { panic("cannot have named and positional arguments") }
+ if pos.len() == 1 {
+ pos = (none, none, ..pos)
+ } else if pos.len() == 2 {
+ pos = (none, ..pos)
+ }
+ let (inner, center, outer) = pos
+ wideblock(
+ side: "both",
+ {
+ box(width: leftm.width, if is-odd { inner } else { outer })
+ h(leftm.sep)
+ box(width: 1fr, center)
+ h(rightm.sep)
+ box(width: rightm.width, if is-odd { outer } else { inner })
+ },
+ )
+ } else {
+ wideblock(
+ side: "both",
+ {
+ box(
+ width: leftm.width,
+ if is-odd {
+ odd.at(0, default: none)
+ } else {
+ even.at(0, default: none)
+ },
+ )
+ h(leftm.sep)
+ box(
+ width: 1fr,
+ if is-odd {
+ odd.at(1, default: none)
+ } else {
+ even.at(1, default: none)
+ },
+ )
+ h(rightm.sep)
+ box(
+ width: rightm.width,
+ if is-odd {
+ odd.at(2, default: none)
+ } else {
+ even.at(2, default: none)
+ },
+ )
+ },
+ )
+ }
+}
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/typst.toml b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/typst.toml
new file mode 100644
index 00000000000..08c514bc58a
--- /dev/null
+++ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/marginalia/0.3.1/typst.toml
@@ -0,0 +1,22 @@
+[package]
+name = "marginalia"
+version = "0.3.1"
+entrypoint = "lib.typ"
+authors = ["nleanba <@nleanba>"]
+license = "Unlicense"
+description = "Configurable margin-notes with smart positioning and matching wide-blocks."
+repository = "https://github.com/nleanba/typst-marginalia"
+keywords = [
+ "margins",
+ "notes",
+ "annotations",
+ "comments",
+ "marginnote",
+ "sidenote",
+ "tufte",
+ "positioning",
+ "layout",
+]
+categories = ["layout", "utility"]
+compiler = "0.12.0"
+exclude = ["main.typ", "Marginalia.pdf", "preview.svg"]
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/LICENSE b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/LICENSE
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/LICENSE
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/LICENSE
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/README.md b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/README.md
similarity index 98%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/README.md
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/README.md
index 6c165a34c5b..d4933599a6b 100644
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/README.md
+++ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/README.md
@@ -33,7 +33,7 @@ function in a show rule. If you, however, want to change an existing project to
use this template, you can add a show rule like this at the top of your file:
```typ
-#import "@preview/orange-book:0.7.0": book
+#import "@preview/orange-book:0.7.1": book
#show: book.with(
title: "Exploring the Physical Manifestation of Humanity’s Subconscious Desires",
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/lib.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/lib.typ
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/lib.typ
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/lib.typ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/my-index.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/my-index.typ
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/my-index.typ
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/my-index.typ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/my-outline.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/my-outline.typ
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/my-outline.typ
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/my-outline.typ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/background.svg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/background.svg
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/background.svg
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/background.svg
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/creodocs_logo.svg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/creodocs_logo.svg
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/creodocs_logo.svg
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/creodocs_logo.svg
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/main.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/main.typ
similarity index 97%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/main.typ
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/main.typ
index 09edbad808f..d3fd637118c 100644
--- a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/main.typ
+++ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/main.typ
@@ -1,4 +1,4 @@
-#import "../lib.typ": *
+#import "@preview/orange-book:0.7.1": book, part, chapter, my-bibliography, appendices, make-index, index, theorem, definition, notation,remark,corollary,proposition,example,exercise, problem, vocabulary, scr, update-heading-image
//#set text(font: "Linux Libertine")
//#set text(font: "TeX Gyre Pagella")
@@ -21,7 +21,6 @@
supplement-chapter: "Chapter",
supplement-part: "Part",
part-style: 0,
- heading-style: 0,
copyright: [
Copyright © 2023 Flavio Barisi
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/orange1.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/orange1.jpg
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/orange1.jpg
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/orange1.jpg
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/orange2.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/orange2.jpg
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/orange2.jpg
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/orange2.jpg
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/orange3.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/orange3.jpg
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/orange3.jpg
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/orange3.jpg
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/placeholder.jpg b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/placeholder.jpg
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/placeholder.jpg
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/placeholder.jpg
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/sample.bib b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/sample.bib
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/example/sample.bib
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/template/sample.bib
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/theorems.typ b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/theorems.typ
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/theorems.typ
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/theorems.typ
diff --git a/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/typst.toml b/src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/typst.toml
similarity index 100%
rename from src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/local/orange-book/0.7.1/typst.toml
rename to src/resources/extension-subtrees/orange-book/_extensions/orange-book/typst/packages/preview/orange-book/0.7.1/typst.toml