@alisio/plugin-thesis 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/agents/thesis-architect.md +38 -0
- package/.agents/agents/thesis-coordinator.md +39 -0
- package/.agents/agents/thesis-editor.md +35 -0
- package/.agents/agents/thesis-evidence-auditor.md +37 -0
- package/.agents/agents/thesis-librarian.md +38 -0
- package/.agents/agents/thesis-methodologist.md +39 -0
- package/.agents/agents/thesis-reviewer.md +36 -0
- package/.agents/agents/thesis-writer.md +38 -0
- package/.agents/skills/thesis-build/SKILL.md +48 -0
- package/.agents/skills/thesis-citations/SKILL.md +49 -0
- package/.agents/skills/thesis-csl-authoring/SKILL.md +48 -0
- package/.agents/skills/thesis-editing/SKILL.md +49 -0
- package/.agents/skills/thesis-evidence/SKILL.md +48 -0
- package/.agents/skills/thesis-figures/SKILL.md +50 -0
- package/.agents/skills/thesis-institution-norms/SKILL.md +50 -0
- package/.agents/skills/thesis-intake/SKILL.md +48 -0
- package/.agents/skills/thesis-math/SKILL.md +48 -0
- package/.agents/skills/thesis-methodology/SKILL.md +49 -0
- package/.agents/skills/thesis-outline/SKILL.md +48 -0
- package/.agents/skills/thesis-policy/SKILL.md +48 -0
- package/.agents/skills/thesis-review/SKILL.md +49 -0
- package/.agents/skills/thesis-search/SKILL.md +47 -0
- package/.agents/skills/thesis-writing/SKILL.md +52 -0
- package/LICENSE +21 -0
- package/README.es.md +242 -0
- package/README.md +235 -0
- package/THIRD_PARTY_NOTICES.md +94 -0
- package/assets/architecture.svg +1 -0
- package/assets/evidence-pipeline.svg +1 -0
- package/assets/lifecycle.svg +1 -0
- package/assets/policy-resolution.svg +1 -0
- package/cover.webp +0 -0
- package/dist/authoring.d.ts +30 -0
- package/dist/authoring.d.ts.map +1 -0
- package/dist/authoring.js +681 -0
- package/dist/authoring.js.map +1 -0
- package/dist/brief.d.ts +40 -0
- package/dist/brief.d.ts.map +1 -0
- package/dist/brief.js +566 -0
- package/dist/brief.js.map +1 -0
- package/dist/cache.d.ts +8 -0
- package/dist/cache.d.ts.map +1 -0
- package/dist/cache.js +20 -0
- package/dist/cache.js.map +1 -0
- package/dist/checks/brief.d.ts +5 -0
- package/dist/checks/brief.d.ts.map +1 -0
- package/dist/checks/brief.js +38 -0
- package/dist/checks/brief.js.map +1 -0
- package/dist/checks/citations.d.ts +14 -0
- package/dist/checks/citations.d.ts.map +1 -0
- package/dist/checks/citations.js +87 -0
- package/dist/checks/citations.js.map +1 -0
- package/dist/checks/claims.d.ts +16 -0
- package/dist/checks/claims.d.ts.map +1 -0
- package/dist/checks/claims.js +147 -0
- package/dist/checks/claims.js.map +1 -0
- package/dist/checks/closing.d.ts +20 -0
- package/dist/checks/closing.d.ts.map +1 -0
- package/dist/checks/closing.js +168 -0
- package/dist/checks/closing.js.map +1 -0
- package/dist/checks/design.d.ts +5 -0
- package/dist/checks/design.d.ts.map +1 -0
- package/dist/checks/design.js +107 -0
- package/dist/checks/design.js.map +1 -0
- package/dist/checks/document.d.ts +17 -0
- package/dist/checks/document.d.ts.map +1 -0
- package/dist/checks/document.js +213 -0
- package/dist/checks/document.js.map +1 -0
- package/dist/checks/evidence.d.ts +7 -0
- package/dist/checks/evidence.d.ts.map +1 -0
- package/dist/checks/evidence.js +133 -0
- package/dist/checks/evidence.js.map +1 -0
- package/dist/checks/hygiene.d.ts +5 -0
- package/dist/checks/hygiene.d.ts.map +1 -0
- package/dist/checks/hygiene.js +37 -0
- package/dist/checks/hygiene.js.map +1 -0
- package/dist/checks/index.d.ts +21 -0
- package/dist/checks/index.d.ts.map +1 -0
- package/dist/checks/index.js +98 -0
- package/dist/checks/index.js.map +1 -0
- package/dist/checks/language.d.ts +14 -0
- package/dist/checks/language.d.ts.map +1 -0
- package/dist/checks/language.js +73 -0
- package/dist/checks/language.js.map +1 -0
- package/dist/checks/outline.d.ts +25 -0
- package/dist/checks/outline.d.ts.map +1 -0
- package/dist/checks/outline.js +214 -0
- package/dist/checks/outline.js.map +1 -0
- package/dist/checks/policy.d.ts +5 -0
- package/dist/checks/policy.d.ts.map +1 -0
- package/dist/checks/policy.js +129 -0
- package/dist/checks/policy.js.map +1 -0
- package/dist/checks/project.d.ts +65 -0
- package/dist/checks/project.d.ts.map +1 -0
- package/dist/checks/project.js +203 -0
- package/dist/checks/project.js.map +1 -0
- package/dist/checks/styles.d.ts +12 -0
- package/dist/checks/styles.d.ts.map +1 -0
- package/dist/checks/styles.js +67 -0
- package/dist/checks/styles.js.map +1 -0
- package/dist/checks/writing.d.ts +6 -0
- package/dist/checks/writing.d.ts.map +1 -0
- package/dist/checks/writing.js +115 -0
- package/dist/checks/writing.js.map +1 -0
- package/dist/chrome/detect.d.ts +19 -0
- package/dist/chrome/detect.d.ts.map +1 -0
- package/dist/chrome/detect.js +116 -0
- package/dist/chrome/detect.js.map +1 -0
- package/dist/claims.d.ts +19 -0
- package/dist/claims.d.ts.map +1 -0
- package/dist/claims.js +99 -0
- package/dist/claims.js.map +1 -0
- package/dist/cli.d.ts +11 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +262 -0
- package/dist/cli.js.map +1 -0
- package/dist/context.d.ts +55 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +62 -0
- package/dist/context.js.map +1 -0
- package/dist/coordinator.d.ts +139 -0
- package/dist/coordinator.d.ts.map +1 -0
- package/dist/coordinator.js +710 -0
- package/dist/coordinator.js.map +1 -0
- package/dist/delegate.d.ts +34 -0
- package/dist/delegate.d.ts.map +1 -0
- package/dist/delegate.js +105 -0
- package/dist/delegate.js.map +1 -0
- package/dist/diffguard.d.ts +24 -0
- package/dist/diffguard.d.ts.map +1 -0
- package/dist/diffguard.js +92 -0
- package/dist/diffguard.js.map +1 -0
- package/dist/doctor.d.ts +34 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/doctor.js +155 -0
- package/dist/doctor.js.map +1 -0
- package/dist/draft.d.ts +64 -0
- package/dist/draft.d.ts.map +1 -0
- package/dist/draft.js +801 -0
- package/dist/draft.js.map +1 -0
- package/dist/figure.d.ts +13 -0
- package/dist/figure.d.ts.map +1 -0
- package/dist/figure.js +143 -0
- package/dist/figure.js.map +1 -0
- package/dist/finalize.d.ts +29 -0
- package/dist/finalize.d.ts.map +1 -0
- package/dist/finalize.js +230 -0
- package/dist/finalize.js.map +1 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +206 -0
- package/dist/index.js.map +1 -0
- package/dist/intake.d.ts +57 -0
- package/dist/intake.d.ts.map +1 -0
- package/dist/intake.js +772 -0
- package/dist/intake.js.map +1 -0
- package/dist/labels.d.ts +50 -0
- package/dist/labels.d.ts.map +1 -0
- package/dist/labels.js +98 -0
- package/dist/labels.js.map +1 -0
- package/dist/outline.d.ts +45 -0
- package/dist/outline.d.ts.map +1 -0
- package/dist/outline.js +148 -0
- package/dist/outline.js.map +1 -0
- package/dist/pack-commands.d.ts +18 -0
- package/dist/pack-commands.d.ts.map +1 -0
- package/dist/pack-commands.js +397 -0
- package/dist/pack-commands.js.map +1 -0
- package/dist/package-paths.d.ts +8 -0
- package/dist/package-paths.d.ts.map +1 -0
- package/dist/package-paths.js +13 -0
- package/dist/package-paths.js.map +1 -0
- package/dist/policy/context.d.ts +19 -0
- package/dist/policy/context.d.ts.map +1 -0
- package/dist/policy/context.js +62 -0
- package/dist/policy/context.js.map +1 -0
- package/dist/policy/ethics.d.ts +59 -0
- package/dist/policy/ethics.d.ts.map +1 -0
- package/dist/policy/ethics.js +106 -0
- package/dist/policy/ethics.js.map +1 -0
- package/dist/policy/kinds.d.ts +9 -0
- package/dist/policy/kinds.d.ts.map +1 -0
- package/dist/policy/kinds.js +68 -0
- package/dist/policy/kinds.js.map +1 -0
- package/dist/policy/packs.d.ts +53 -0
- package/dist/policy/packs.d.ts.map +1 -0
- package/dist/policy/packs.js +336 -0
- package/dist/policy/packs.js.map +1 -0
- package/dist/policy/resolver.d.ts +87 -0
- package/dist/policy/resolver.d.ts.map +1 -0
- package/dist/policy/resolver.js +337 -0
- package/dist/policy/resolver.js.map +1 -0
- package/dist/policy/rules.d.ts +65 -0
- package/dist/policy/rules.d.ts.map +1 -0
- package/dist/policy/rules.js +194 -0
- package/dist/policy/rules.js.map +1 -0
- package/dist/protocol.d.ts +46 -0
- package/dist/protocol.d.ts.map +1 -0
- package/dist/protocol.js +86 -0
- package/dist/protocol.js.map +1 -0
- package/dist/render/adapters/chrome-pdf/cdp.d.ts +36 -0
- package/dist/render/adapters/chrome-pdf/cdp.d.ts.map +1 -0
- package/dist/render/adapters/chrome-pdf/cdp.js +291 -0
- package/dist/render/adapters/chrome-pdf/cdp.js.map +1 -0
- package/dist/render/adapters/chrome-pdf/index.d.ts +10 -0
- package/dist/render/adapters/chrome-pdf/index.d.ts.map +1 -0
- package/dist/render/adapters/chrome-pdf/index.js +139 -0
- package/dist/render/adapters/chrome-pdf/index.js.map +1 -0
- package/dist/render/adapters/chrome-pdf/network.d.ts +7 -0
- package/dist/render/adapters/chrome-pdf/network.d.ts.map +1 -0
- package/dist/render/adapters/chrome-pdf/network.js +33 -0
- package/dist/render/adapters/chrome-pdf/network.js.map +1 -0
- package/dist/render/adapters/html-preview/index.d.ts +8 -0
- package/dist/render/adapters/html-preview/index.d.ts.map +1 -0
- package/dist/render/adapters/html-preview/index.js +62 -0
- package/dist/render/adapters/html-preview/index.js.map +1 -0
- package/dist/render/adapters/test-json/index.d.ts +8 -0
- package/dist/render/adapters/test-json/index.d.ts.map +1 -0
- package/dist/render/adapters/test-json/index.js +62 -0
- package/dist/render/adapters/test-json/index.js.map +1 -0
- package/dist/render/adapters/typst-pdf/emitter.d.ts +21 -0
- package/dist/render/adapters/typst-pdf/emitter.d.ts.map +1 -0
- package/dist/render/adapters/typst-pdf/emitter.js +259 -0
- package/dist/render/adapters/typst-pdf/emitter.js.map +1 -0
- package/dist/render/adapters/typst-pdf/escape.d.ts +14 -0
- package/dist/render/adapters/typst-pdf/escape.d.ts.map +1 -0
- package/dist/render/adapters/typst-pdf/escape.js +56 -0
- package/dist/render/adapters/typst-pdf/escape.js.map +1 -0
- package/dist/render/adapters/typst-pdf/index.d.ts +9 -0
- package/dist/render/adapters/typst-pdf/index.d.ts.map +1 -0
- package/dist/render/adapters/typst-pdf/index.js +154 -0
- package/dist/render/adapters/typst-pdf/index.js.map +1 -0
- package/dist/render/adapters/typst-pdf/profile.d.ts +3 -0
- package/dist/render/adapters/typst-pdf/profile.d.ts.map +1 -0
- package/dist/render/adapters/typst-pdf/profile.js +55 -0
- package/dist/render/adapters/typst-pdf/profile.js.map +1 -0
- package/dist/render/adapters/typst-pdf/runner.d.ts +52 -0
- package/dist/render/adapters/typst-pdf/runner.d.ts.map +1 -0
- package/dist/render/adapters/typst-pdf/runner.js +209 -0
- package/dist/render/adapters/typst-pdf/runner.js.map +1 -0
- package/dist/render/adapters/typst-pdf/setup.d.ts +30 -0
- package/dist/render/adapters/typst-pdf/setup.d.ts.map +1 -0
- package/dist/render/adapters/typst-pdf/setup.js +183 -0
- package/dist/render/adapters/typst-pdf/setup.js.map +1 -0
- package/dist/render/adapters/typst-pdf/version.d.ts +8 -0
- package/dist/render/adapters/typst-pdf/version.d.ts.map +1 -0
- package/dist/render/adapters/typst-pdf/version.js +14 -0
- package/dist/render/adapters/typst-pdf/version.js.map +1 -0
- package/dist/render/assemble.d.ts +28 -0
- package/dist/render/assemble.d.ts.map +1 -0
- package/dist/render/assemble.js +309 -0
- package/dist/render/assemble.js.map +1 -0
- package/dist/render/assets.d.ts +27 -0
- package/dist/render/assets.d.ts.map +1 -0
- package/dist/render/assets.js +232 -0
- package/dist/render/assets.js.map +1 -0
- package/dist/render/build.d.ts +43 -0
- package/dist/render/build.d.ts.map +1 -0
- package/dist/render/build.js +187 -0
- package/dist/render/build.js.map +1 -0
- package/dist/render/charts.d.ts +83 -0
- package/dist/render/charts.d.ts.map +1 -0
- package/dist/render/charts.js +633 -0
- package/dist/render/charts.js.map +1 -0
- package/dist/render/default-registry.d.ts +7 -0
- package/dist/render/default-registry.d.ts.map +1 -0
- package/dist/render/default-registry.js +15 -0
- package/dist/render/default-registry.js.map +1 -0
- package/dist/render/diagram-theme.d.ts +7 -0
- package/dist/render/diagram-theme.d.ts.map +1 -0
- package/dist/render/diagram-theme.js +50 -0
- package/dist/render/diagram-theme.js.map +1 -0
- package/dist/render/dialect.d.ts +23 -0
- package/dist/render/dialect.d.ts.map +1 -0
- package/dist/render/dialect.js +188 -0
- package/dist/render/dialect.js.map +1 -0
- package/dist/render/html/citations.d.ts +70 -0
- package/dist/render/html/citations.d.ts.map +1 -0
- package/dist/render/html/citations.js +371 -0
- package/dist/render/html/citations.js.map +1 -0
- package/dist/render/html/css.d.ts +14 -0
- package/dist/render/html/css.d.ts.map +1 -0
- package/dist/render/html/css.js +113 -0
- package/dist/render/html/css.js.map +1 -0
- package/dist/render/html/emitter.d.ts +20 -0
- package/dist/render/html/emitter.d.ts.map +1 -0
- package/dist/render/html/emitter.js +652 -0
- package/dist/render/html/emitter.js.map +1 -0
- package/dist/render/html/escape.d.ts +11 -0
- package/dist/render/html/escape.d.ts.map +1 -0
- package/dist/render/html/escape.js +32 -0
- package/dist/render/html/escape.js.map +1 -0
- package/dist/render/html/katex.d.ts +9 -0
- package/dist/render/html/katex.d.ts.map +1 -0
- package/dist/render/html/katex.js +39 -0
- package/dist/render/html/katex.js.map +1 -0
- package/dist/render/html/stage.d.ts +12 -0
- package/dist/render/html/stage.d.ts.map +1 -0
- package/dist/render/html/stage.js +30 -0
- package/dist/render/html/stage.js.map +1 -0
- package/dist/render/index.d.ts +5 -0
- package/dist/render/index.d.ts.map +1 -0
- package/dist/render/index.js +5 -0
- package/dist/render/index.js.map +1 -0
- package/dist/render/math.d.ts +9 -0
- package/dist/render/math.d.ts.map +1 -0
- package/dist/render/math.js +60 -0
- package/dist/render/math.js.map +1 -0
- package/dist/render/model.d.ts +233 -0
- package/dist/render/model.d.ts.map +1 -0
- package/dist/render/model.js +2 -0
- package/dist/render/model.js.map +1 -0
- package/dist/render/numbering.d.ts +51 -0
- package/dist/render/numbering.d.ts.map +1 -0
- package/dist/render/numbering.js +155 -0
- package/dist/render/numbering.js.map +1 -0
- package/dist/render/output-name.d.ts +4 -0
- package/dist/render/output-name.d.ts.map +1 -0
- package/dist/render/output-name.js +11 -0
- package/dist/render/output-name.js.map +1 -0
- package/dist/render/palettes.d.ts +22 -0
- package/dist/render/palettes.d.ts.map +1 -0
- package/dist/render/palettes.js +46 -0
- package/dist/render/palettes.js.map +1 -0
- package/dist/render/parse.d.ts +15 -0
- package/dist/render/parse.d.ts.map +1 -0
- package/dist/render/parse.js +637 -0
- package/dist/render/parse.js.map +1 -0
- package/dist/render/port.d.ts +79 -0
- package/dist/render/port.d.ts.map +1 -0
- package/dist/render/port.js +2 -0
- package/dist/render/port.js.map +1 -0
- package/dist/render/registry.d.ts +11 -0
- package/dist/render/registry.d.ts.map +1 -0
- package/dist/render/registry.js +21 -0
- package/dist/render/registry.js.map +1 -0
- package/dist/render/text.d.ts +13 -0
- package/dist/render/text.d.ts.map +1 -0
- package/dist/render/text.js +65 -0
- package/dist/render/text.js.map +1 -0
- package/dist/render/walk.d.ts +13 -0
- package/dist/render/walk.d.ts.map +1 -0
- package/dist/render/walk.js +69 -0
- package/dist/render/walk.js.map +1 -0
- package/dist/research/bibtex.d.ts +12 -0
- package/dist/research/bibtex.d.ts.map +1 -0
- package/dist/research/bibtex.js +99 -0
- package/dist/research/bibtex.js.map +1 -0
- package/dist/research/client.d.ts +112 -0
- package/dist/research/client.d.ts.map +1 -0
- package/dist/research/client.js +661 -0
- package/dist/research/client.js.map +1 -0
- package/dist/research/dossier.d.ts +31 -0
- package/dist/research/dossier.d.ts.map +1 -0
- package/dist/research/dossier.js +54 -0
- package/dist/research/dossier.js.map +1 -0
- package/dist/research/flow.d.ts +31 -0
- package/dist/research/flow.d.ts.map +1 -0
- package/dist/research/flow.js +635 -0
- package/dist/research/flow.js.map +1 -0
- package/dist/research/library.d.ts +79 -0
- package/dist/research/library.d.ts.map +1 -0
- package/dist/research/library.js +319 -0
- package/dist/research/library.js.map +1 -0
- package/dist/research/verify.d.ts +80 -0
- package/dist/research/verify.d.ts.map +1 -0
- package/dist/research/verify.js +307 -0
- package/dist/research/verify.js.map +1 -0
- package/dist/resources.d.ts +15 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +148 -0
- package/dist/resources.js.map +1 -0
- package/dist/review.d.ts +22 -0
- package/dist/review.d.ts.map +1 -0
- package/dist/review.js +355 -0
- package/dist/review.js.map +1 -0
- package/dist/schemas.d.ts +252 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +1020 -0
- package/dist/schemas.js.map +1 -0
- package/dist/sections.d.ts +30 -0
- package/dist/sections.d.ts.map +1 -0
- package/dist/sections.js +62 -0
- package/dist/sections.js.map +1 -0
- package/dist/storage.d.ts +21 -0
- package/dist/storage.d.ts.map +1 -0
- package/dist/storage.js +296 -0
- package/dist/storage.js.map +1 -0
- package/dist/style-commands.d.ts +15 -0
- package/dist/style-commands.d.ts.map +1 -0
- package/dist/style-commands.js +54 -0
- package/dist/style-commands.js.map +1 -0
- package/dist/styles/csl.d.ts +58 -0
- package/dist/styles/csl.d.ts.map +1 -0
- package/dist/styles/csl.js +112 -0
- package/dist/styles/csl.js.map +1 -0
- package/dist/styles/discovery.d.ts +45 -0
- package/dist/styles/discovery.d.ts.map +1 -0
- package/dist/styles/discovery.js +99 -0
- package/dist/styles/discovery.js.map +1 -0
- package/dist/styles/golden.d.ts +52 -0
- package/dist/styles/golden.d.ts.map +1 -0
- package/dist/styles/golden.js +216 -0
- package/dist/styles/golden.js.map +1 -0
- package/dist/styles/profile.d.ts +126 -0
- package/dist/styles/profile.d.ts.map +1 -0
- package/dist/styles/profile.js +582 -0
- package/dist/styles/profile.js.map +1 -0
- package/dist/styles/xml.d.ts +22 -0
- package/dist/styles/xml.d.ts.map +1 -0
- package/dist/styles/xml.js +179 -0
- package/dist/styles/xml.js.map +1 -0
- package/dist/types.d.ts +285 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +155 -0
- package/dist/types.js.map +1 -0
- package/dist/typst-pins.d.ts +16 -0
- package/dist/typst-pins.d.ts.map +1 -0
- package/dist/typst-pins.js +39 -0
- package/dist/typst-pins.js.map +1 -0
- package/dist/version.d.ts +2 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +3 -0
- package/dist/version.js.map +1 -0
- package/dist/workflow.d.ts +49 -0
- package/dist/workflow.d.ts.map +1 -0
- package/dist/workflow.js +722 -0
- package/dist/workflow.js.map +1 -0
- package/dist/workspace.d.ts +12 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +71 -0
- package/dist/workspace.js.map +1 -0
- package/package.json +70 -0
- package/policy-packs/countries/CO/academic-standards/ntc-1486-2022.yaml +188 -0
- package/policy-packs/countries/CO/copyright/decision-andina-351.yaml +61 -0
- package/policy-packs/countries/CO/copyright/ley-1915-2018.yaml +25 -0
- package/policy-packs/countries/CO/copyright/ley-23-1982.yaml +64 -0
- package/policy-packs/countries/CO/domains/health/resolucion-8430-1993.yaml +219 -0
- package/policy-packs/countries/CO/higher-education/ley-30-1992.yaml +61 -0
- package/policy-packs/countries/CO/manifest.yaml +42 -0
- package/policy-packs/countries/CO/official-domains.yaml +90 -0
- package/policy-packs/countries/CO/privacy/ley-1581-2012.yaml +197 -0
- package/policy-packs/countries/CO/research-integrity/minciencias-res-0314-2018.yaml +64 -0
- package/policy-packs/global/academic-integrity.yaml +45 -0
- package/policy-packs/global/academic-writing.yaml +70 -0
- package/policy-packs/global/evidence-quality.yaml +81 -0
- package/policy-packs/global/manifest.yaml +54 -0
- package/policy-packs/global/objective-verbs.yaml +245 -0
- package/policy-packs/global/reporting-guidelines.yaml +392 -0
- package/policy-packs/global/work-types.yaml +195 -0
- package/styles/LICENSE-CSL +375 -0
- package/styles/apa.csl +2283 -0
- package/styles/catalog.json +43 -0
- package/styles/fixtures/apa-7.expected.json +25 -0
- package/styles/fixtures/icontec-ntc1486-2022.expected.json +25 -0
- package/styles/fixtures/ieee.expected.json +25 -0
- package/styles/fixtures/references.jsonl +8 -0
- package/styles/icontec-ntc1486-2022.csl +388 -0
- package/styles/ieee.csl +519 -0
- package/templates/html/runtime.js +159 -0
- package/templates/html/thesis.css +98 -0
- package/templates/html/vendor/katex/LICENSE +21 -0
- package/templates/html/vendor/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- package/templates/html/vendor/katex/katex.min.css +1 -0
- package/templates/html/vendor/katex/katex.min.js +1 -0
- package/templates/html/vendor/mermaid/LICENSE +21 -0
- package/templates/html/vendor/mermaid/mermaid.min.js +3587 -0
- package/templates/html/vendor/pagedjs/LICENSE +21 -0
- package/templates/html/vendor/pagedjs/paged.polyfill.min.js +4 -0
- package/templates/palettes.json +57 -0
- package/templates/profiles/apa-7.profile.yaml +15 -0
- package/templates/profiles/generic.profile.yaml +20 -0
- package/templates/profiles/icontec-ntc1486-2022.profile.yaml +36 -0
- package/templates/profiles/ieee.profile.yaml +14 -0
- package/templates/typst/i18n/en.yaml +31 -0
- package/templates/typst/i18n/es.yaml +31 -0
- package/templates/typst/i18n/pt.yaml +31 -0
- package/templates/typst/thesis.typ +276 -0
- package/typst-packages/preview/merman/0.3.0/LICENSE +231 -0
- package/typst-packages/preview/merman/0.3.0/README.md +388 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cose-base-v1/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cose-base-v2/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cytoscape/LICENSE +19 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cytoscape-cose-bilkent/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE +19 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/d3-shape/LICENSE +13 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/dagre/LICENSE +19 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/dompurify/LICENSE +202 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +264 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +264 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/fmin/LICENSE +27 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/graphlib/LICENSE +19 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/layout-base-v1/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/layout-base-v2/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/mermaid/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/rough-rs/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/roughjs/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/sanitize-url/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/venn-js/LICENSE +22 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/wasm-minimal-protocol/LICENSE +24 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/zenuml-core/LICENSE +21 -0
- package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_NOTICES.md +265 -0
- package/typst-packages/preview/merman/0.3.0/lib.typ +1 -0
- package/typst-packages/preview/merman/0.3.0/merman_typst_plugin.wasm +0 -0
- package/typst-packages/preview/merman/0.3.0/src/capabilities.typ +5 -0
- package/typst-packages/preview/merman/0.3.0/src/context.typ +1 -0
- package/typst-packages/preview/merman/0.3.0/src/errors.typ +33 -0
- package/typst-packages/preview/merman/0.3.0/src/exports.typ +5 -0
- package/typst-packages/preview/merman/0.3.0/src/figure.typ +143 -0
- package/typst-packages/preview/merman/0.3.0/src/image.typ +50 -0
- package/typst-packages/preview/merman/0.3.0/src/options.typ +566 -0
- package/typst-packages/preview/merman/0.3.0/src/plugin.typ +1 -0
- package/typst-packages/preview/merman/0.3.0/src/raw.typ +22 -0
- package/typst-packages/preview/merman/0.3.0/src/render.typ +137 -0
- package/typst-packages/preview/merman/0.3.0/src/source.typ +7 -0
- package/typst-packages/preview/merman/0.3.0/src/units.typ +51 -0
- package/typst-packages/preview/merman/0.3.0/typst.toml +12 -0
- package/typst-packages/preview/mitex/0.2.7/CHANGELOG.md +69 -0
- package/typst-packages/preview/mitex/0.2.7/LICENSE +176 -0
- package/typst-packages/preview/mitex/0.2.7/README.md +154 -0
- package/typst-packages/preview/mitex/0.2.7/lib.typ +1 -0
- package/typst-packages/preview/mitex/0.2.7/mitex.typ +45 -0
- package/typst-packages/preview/mitex/0.2.7/mitex.wasm +0 -0
- package/typst-packages/preview/mitex/0.2.7/specs/README.md +250 -0
- package/typst-packages/preview/mitex/0.2.7/specs/latex/standard.typ +1187 -0
- package/typst-packages/preview/mitex/0.2.7/specs/mod.typ +12 -0
- package/typst-packages/preview/mitex/0.2.7/specs/prelude.typ +230 -0
- package/typst-packages/preview/mitex/0.2.7/typst.toml +12 -0
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
#import "units.typ": canonical-css-px-string, css-px-number-string, css-px-string
|
|
2
|
+
|
|
3
|
+
#let dictionary-or-none(value, name) = {
|
|
4
|
+
if value == none {
|
|
5
|
+
none
|
|
6
|
+
} else if type(value) == dictionary {
|
|
7
|
+
value
|
|
8
|
+
} else {
|
|
9
|
+
panic(name + " must be a dictionary")
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
#let profile-field(profile, key, alt: none) = {
|
|
14
|
+
let profile = dictionary-or-none(profile, "merman profile")
|
|
15
|
+
if profile == none {
|
|
16
|
+
none
|
|
17
|
+
} else if key in profile {
|
|
18
|
+
profile.at(key)
|
|
19
|
+
} else if alt != none and alt in profile {
|
|
20
|
+
profile.at(alt)
|
|
21
|
+
} else {
|
|
22
|
+
none
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#let choose-value(profile-value, direct-value, default: none) = {
|
|
27
|
+
if direct-value != none {
|
|
28
|
+
direct-value
|
|
29
|
+
} else if profile-value != none {
|
|
30
|
+
profile-value
|
|
31
|
+
} else {
|
|
32
|
+
default
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
#let resolve-diagram-id(profile-id, profile-diagram-id, direct-id, direct-diagram-id) = {
|
|
37
|
+
if direct-diagram-id != none {
|
|
38
|
+
direct-diagram-id
|
|
39
|
+
} else if direct-id != none {
|
|
40
|
+
direct-id
|
|
41
|
+
} else if profile-diagram-id != none {
|
|
42
|
+
profile-diagram-id
|
|
43
|
+
} else {
|
|
44
|
+
profile-id
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
#let merge-dict(base, override, name) = {
|
|
49
|
+
let base = dictionary-or-none(base, name)
|
|
50
|
+
let override = dictionary-or-none(override, name)
|
|
51
|
+
if base == none {
|
|
52
|
+
override
|
|
53
|
+
} else if override == none {
|
|
54
|
+
base
|
|
55
|
+
} else {
|
|
56
|
+
(: ..base, ..override)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#let font-descriptor-name(font) = {
|
|
61
|
+
if type(font) == str {
|
|
62
|
+
font
|
|
63
|
+
} else if type(font) == dictionary {
|
|
64
|
+
if "name" not in font or type(font.at("name")) != str {
|
|
65
|
+
panic("merman typography font descriptor must contain a string name")
|
|
66
|
+
}
|
|
67
|
+
font.at("name")
|
|
68
|
+
} else {
|
|
69
|
+
panic("merman typography font must contain only strings or font descriptors")
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#let font-family-value(font) = {
|
|
74
|
+
if font == none {
|
|
75
|
+
none
|
|
76
|
+
} else if type(font) == array {
|
|
77
|
+
font.map(font-descriptor-name).join(", ")
|
|
78
|
+
} else {
|
|
79
|
+
font-descriptor-name(font)
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
#let font-size-value(size) = {
|
|
84
|
+
if size == none {
|
|
85
|
+
none
|
|
86
|
+
} else if type(size) == str {
|
|
87
|
+
canonical-css-px-string(size, name: "merman typography size")
|
|
88
|
+
} else if type(size) == length {
|
|
89
|
+
css-px-string(size, name: "merman typography size")
|
|
90
|
+
} else if type(size) == int or type(size) == float {
|
|
91
|
+
css-px-number-string(size, name: "merman typography size")
|
|
92
|
+
} else {
|
|
93
|
+
panic("merman typography size must be a CSS px string, absolute Typst length, or pixel number")
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
#let host-theme-from-font(font-family, font-size) = {
|
|
98
|
+
let family = font-family-value(font-family)
|
|
99
|
+
let size = font-size-value(font-size)
|
|
100
|
+
let out = if family == none { (:) } else { (font_family: family) }
|
|
101
|
+
let out = if size == none { out } else { (: ..out, font_size: size) }
|
|
102
|
+
if out.len() == 0 {
|
|
103
|
+
none
|
|
104
|
+
} else {
|
|
105
|
+
out
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
#let context-host-theme(font-family, font-size) = {
|
|
110
|
+
host-theme-from-font(font-family, font-size)
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
#let field3(dict, a, b, c) = {
|
|
114
|
+
if dict == none {
|
|
115
|
+
none
|
|
116
|
+
} else if a in dict {
|
|
117
|
+
dict.at(a)
|
|
118
|
+
} else if b in dict {
|
|
119
|
+
dict.at(b)
|
|
120
|
+
} else if c in dict {
|
|
121
|
+
dict.at(c)
|
|
122
|
+
} else {
|
|
123
|
+
none
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
#let typography-host-theme(typography) = {
|
|
128
|
+
let typography = dictionary-or-none(typography, "merman typography")
|
|
129
|
+
if typography == none {
|
|
130
|
+
none
|
|
131
|
+
} else {
|
|
132
|
+
let allowed = (
|
|
133
|
+
"font",
|
|
134
|
+
"font-family",
|
|
135
|
+
"font_family",
|
|
136
|
+
"size",
|
|
137
|
+
"font-size",
|
|
138
|
+
"font_size",
|
|
139
|
+
)
|
|
140
|
+
for key in typography.keys() {
|
|
141
|
+
if not allowed.contains(key) {
|
|
142
|
+
panic("unsupported merman typography key: " + key)
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
host-theme-from-font(
|
|
146
|
+
field3(typography, "font", "font-family", "font_family"),
|
|
147
|
+
field3(typography, "size", "font-size", "font_size"),
|
|
148
|
+
)
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#let merged-host-theme(
|
|
153
|
+
context-host-theme,
|
|
154
|
+
profile-typography,
|
|
155
|
+
profile-host-theme,
|
|
156
|
+
typography,
|
|
157
|
+
host-theme,
|
|
158
|
+
) = {
|
|
159
|
+
let out = context-host-theme
|
|
160
|
+
let out = merge-dict(out, typography-host-theme(profile-typography), "merman host-theme")
|
|
161
|
+
let out = merge-dict(out, profile-host-theme, "merman host-theme")
|
|
162
|
+
let out = merge-dict(out, typography-host-theme(typography), "merman host-theme")
|
|
163
|
+
merge-dict(out, host-theme, "merman host-theme")
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
#let build-presentation-theme(theme) = {
|
|
167
|
+
let theme = dictionary-or-none(theme, "merman host-theme")
|
|
168
|
+
if theme == none {
|
|
169
|
+
none
|
|
170
|
+
} else {
|
|
171
|
+
let allowed = (
|
|
172
|
+
"preset",
|
|
173
|
+
"appearance",
|
|
174
|
+
"font-family",
|
|
175
|
+
"font_family",
|
|
176
|
+
"font-size",
|
|
177
|
+
"font_size",
|
|
178
|
+
"roles",
|
|
179
|
+
"series-palette",
|
|
180
|
+
"series_palette",
|
|
181
|
+
)
|
|
182
|
+
for key in theme.keys() {
|
|
183
|
+
if not allowed.contains(key) {
|
|
184
|
+
panic("unsupported merman host-theme key: " + key)
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
let font-family = if "font-family" in theme {
|
|
189
|
+
theme.at("font-family")
|
|
190
|
+
} else if "font_family" in theme {
|
|
191
|
+
theme.at("font_family")
|
|
192
|
+
} else {
|
|
193
|
+
none
|
|
194
|
+
}
|
|
195
|
+
let font-size = if "font-size" in theme {
|
|
196
|
+
theme.at("font-size")
|
|
197
|
+
} else if "font_size" in theme {
|
|
198
|
+
theme.at("font_size")
|
|
199
|
+
} else {
|
|
200
|
+
none
|
|
201
|
+
}
|
|
202
|
+
let series-palette = if "series-palette" in theme {
|
|
203
|
+
theme.at("series-palette")
|
|
204
|
+
} else if "series_palette" in theme {
|
|
205
|
+
theme.at("series_palette")
|
|
206
|
+
} else {
|
|
207
|
+
none
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
let out = (:)
|
|
211
|
+
let out = if "preset" in theme and theme.at("preset") != none {
|
|
212
|
+
(: ..out, preset: theme.at("preset"))
|
|
213
|
+
} else {
|
|
214
|
+
out
|
|
215
|
+
}
|
|
216
|
+
let out = if "appearance" in theme and theme.at("appearance") != none {
|
|
217
|
+
(: ..out, appearance: theme.at("appearance"))
|
|
218
|
+
} else {
|
|
219
|
+
out
|
|
220
|
+
}
|
|
221
|
+
let out = if font-family != none { (: ..out, font_family: font-family) } else { out }
|
|
222
|
+
let out = if font-size != none { (: ..out, font_size: font-size) } else { out }
|
|
223
|
+
let out = if "roles" in theme and theme.at("roles") != none {
|
|
224
|
+
(: ..out, roles: theme.at("roles"))
|
|
225
|
+
} else {
|
|
226
|
+
out
|
|
227
|
+
}
|
|
228
|
+
let out = if series-palette != none {
|
|
229
|
+
(: ..out, series_palette: series-palette)
|
|
230
|
+
} else {
|
|
231
|
+
out
|
|
232
|
+
}
|
|
233
|
+
if out.len() == 0 { none } else { out }
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
#let build-presentation-options(profile, theme) = {
|
|
238
|
+
let theme = build-presentation-theme(theme)
|
|
239
|
+
let out = if profile == none { (:) } else { (profile: profile) }
|
|
240
|
+
let out = if theme == none { out } else { (: ..out, theme: theme) }
|
|
241
|
+
if out.len() == 0 { none } else { out }
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
#let apply-theme-site-config(site-config, theme, theme-name, base-theme) = {
|
|
245
|
+
let theme-name = choose-value(base-theme, theme-name)
|
|
246
|
+
if theme == none and theme-name == none {
|
|
247
|
+
dictionary-or-none(site-config, "merman site-config")
|
|
248
|
+
} else {
|
|
249
|
+
let out = if site-config == none {
|
|
250
|
+
(:)
|
|
251
|
+
} else {
|
|
252
|
+
dictionary-or-none(site-config, "merman site-config")
|
|
253
|
+
}
|
|
254
|
+
let out = if theme-name != none {
|
|
255
|
+
(: ..out, theme: theme-name)
|
|
256
|
+
} else {
|
|
257
|
+
out
|
|
258
|
+
}
|
|
259
|
+
if theme != none {
|
|
260
|
+
(: ..out, themeVariables: theme)
|
|
261
|
+
} else {
|
|
262
|
+
out
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
#let build-layout-options(
|
|
268
|
+
layout,
|
|
269
|
+
container-width,
|
|
270
|
+
container-height,
|
|
271
|
+
base-layout: none,
|
|
272
|
+
) = {
|
|
273
|
+
if layout != none {
|
|
274
|
+
layout
|
|
275
|
+
} else {
|
|
276
|
+
let out = if base-layout != none {
|
|
277
|
+
dictionary-or-none(base-layout, "merman layout")
|
|
278
|
+
} else {
|
|
279
|
+
(:)
|
|
280
|
+
}
|
|
281
|
+
let out = if container-width != none {
|
|
282
|
+
(: ..out, container_width: container-width)
|
|
283
|
+
} else {
|
|
284
|
+
out
|
|
285
|
+
}
|
|
286
|
+
let out = if container-height != none {
|
|
287
|
+
(: ..out, container_height: container-height)
|
|
288
|
+
} else {
|
|
289
|
+
out
|
|
290
|
+
}
|
|
291
|
+
out
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
#let layout-container-width(layout) = {
|
|
296
|
+
let layout = dictionary-or-none(layout, "merman layout")
|
|
297
|
+
if layout != none and "container_width" in layout {
|
|
298
|
+
layout.at("container_width")
|
|
299
|
+
} else {
|
|
300
|
+
none
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
#let build-environment-options(
|
|
305
|
+
environment,
|
|
306
|
+
text-measurement,
|
|
307
|
+
math-renderer,
|
|
308
|
+
base-environment: none,
|
|
309
|
+
) = {
|
|
310
|
+
let out = merge-dict(base-environment, environment, "merman environment")
|
|
311
|
+
let out = if text-measurement != none {
|
|
312
|
+
let out = if out == none { (:) } else { out }
|
|
313
|
+
(: ..out, text_measurement: text-measurement)
|
|
314
|
+
} else {
|
|
315
|
+
out
|
|
316
|
+
}
|
|
317
|
+
if math-renderer != none {
|
|
318
|
+
let out = if out == none { (:) } else { out }
|
|
319
|
+
(: ..out, math_renderer: math-renderer)
|
|
320
|
+
} else {
|
|
321
|
+
out
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
#let mermaid-profile(
|
|
326
|
+
options: none,
|
|
327
|
+
site-config: none,
|
|
328
|
+
presentation-profile: none,
|
|
329
|
+
host-theme: none,
|
|
330
|
+
typography: none,
|
|
331
|
+
theme: none,
|
|
332
|
+
theme-name: none,
|
|
333
|
+
base-theme: none,
|
|
334
|
+
pipeline: none,
|
|
335
|
+
id: none,
|
|
336
|
+
diagram-id: none,
|
|
337
|
+
background: none,
|
|
338
|
+
layout: none,
|
|
339
|
+
environment: none,
|
|
340
|
+
scoped-css: none,
|
|
341
|
+
css-override-policy: none,
|
|
342
|
+
drop-native-duplicate-fallbacks: none,
|
|
343
|
+
text-measurement: none,
|
|
344
|
+
math-renderer: none,
|
|
345
|
+
container-width: none,
|
|
346
|
+
container-height: none,
|
|
347
|
+
fixed-today: none,
|
|
348
|
+
fixed-local-offset-minutes: none,
|
|
349
|
+
figure: none,
|
|
350
|
+
) = {
|
|
351
|
+
(
|
|
352
|
+
options: options,
|
|
353
|
+
site-config: site-config,
|
|
354
|
+
presentation-profile: presentation-profile,
|
|
355
|
+
host-theme: host-theme,
|
|
356
|
+
typography: typography,
|
|
357
|
+
theme: theme,
|
|
358
|
+
theme-name: theme-name,
|
|
359
|
+
base-theme: base-theme,
|
|
360
|
+
pipeline: pipeline,
|
|
361
|
+
id: id,
|
|
362
|
+
diagram-id: diagram-id,
|
|
363
|
+
background: background,
|
|
364
|
+
layout: layout,
|
|
365
|
+
environment: environment,
|
|
366
|
+
scoped-css: scoped-css,
|
|
367
|
+
css-override-policy: css-override-policy,
|
|
368
|
+
drop-native-duplicate-fallbacks: drop-native-duplicate-fallbacks,
|
|
369
|
+
text-measurement: text-measurement,
|
|
370
|
+
math-renderer: math-renderer,
|
|
371
|
+
container-width: container-width,
|
|
372
|
+
container-height: container-height,
|
|
373
|
+
fixed-today: fixed-today,
|
|
374
|
+
fixed-local-offset-minutes: fixed-local-offset-minutes,
|
|
375
|
+
figure: figure,
|
|
376
|
+
)
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
#let opaque-render-config(binding-options, direct-options: none, profile-options: none) = {
|
|
380
|
+
(
|
|
381
|
+
binding_options: binding-options,
|
|
382
|
+
direct_layout: none,
|
|
383
|
+
direct_options: direct-options,
|
|
384
|
+
direct_container_width: none,
|
|
385
|
+
profile_layout: none,
|
|
386
|
+
profile_layout_container_width: none,
|
|
387
|
+
profile_options: profile-options,
|
|
388
|
+
)
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
#let render-config(
|
|
392
|
+
options: none,
|
|
393
|
+
profile: none,
|
|
394
|
+
typography: none,
|
|
395
|
+
context-host-theme: none,
|
|
396
|
+
site-config: none,
|
|
397
|
+
presentation-profile: none,
|
|
398
|
+
host-theme: none,
|
|
399
|
+
theme: none,
|
|
400
|
+
theme-name: none,
|
|
401
|
+
base-theme: none,
|
|
402
|
+
pipeline: none,
|
|
403
|
+
id: none,
|
|
404
|
+
diagram-id: none,
|
|
405
|
+
background: none,
|
|
406
|
+
layout: none,
|
|
407
|
+
environment: none,
|
|
408
|
+
scoped-css: none,
|
|
409
|
+
css-override-policy: none,
|
|
410
|
+
drop-native-duplicate-fallbacks: none,
|
|
411
|
+
text-measurement: none,
|
|
412
|
+
math-renderer: none,
|
|
413
|
+
container-width: none,
|
|
414
|
+
container-height: none,
|
|
415
|
+
fixed-today: none,
|
|
416
|
+
fixed-local-offset-minutes: none,
|
|
417
|
+
) = {
|
|
418
|
+
if options != none {
|
|
419
|
+
opaque-render-config(options, direct-options: options)
|
|
420
|
+
} else {
|
|
421
|
+
let profile-options = profile-field(profile, "options")
|
|
422
|
+
if profile-options != none {
|
|
423
|
+
opaque-render-config(profile-options, profile-options: profile-options)
|
|
424
|
+
} else {
|
|
425
|
+
let profile-site-config = profile-field(profile, "site-config", alt: "site_config")
|
|
426
|
+
let profile-presentation-profile = profile-field(profile, "presentation-profile")
|
|
427
|
+
let profile-host-theme = profile-field(profile, "host-theme")
|
|
428
|
+
let profile-typography = profile-field(profile, "typography")
|
|
429
|
+
let profile-layout = profile-field(profile, "layout")
|
|
430
|
+
let profile-layout-container-width = layout-container-width(profile-layout)
|
|
431
|
+
let profile-environment = profile-field(profile, "environment")
|
|
432
|
+
let profile-text-measurement = profile-field(profile, "text-measurement")
|
|
433
|
+
let profile-math-renderer = profile-field(profile, "math-renderer")
|
|
434
|
+
|
|
435
|
+
let profile-site-config = apply-theme-site-config(
|
|
436
|
+
profile-site-config,
|
|
437
|
+
profile-field(profile, "theme"),
|
|
438
|
+
profile-field(profile, "theme-name", alt: "theme_name"),
|
|
439
|
+
profile-field(profile, "base-theme", alt: "base_theme"),
|
|
440
|
+
)
|
|
441
|
+
let site-config = if site-config == none {
|
|
442
|
+
profile-site-config
|
|
443
|
+
} else {
|
|
444
|
+
dictionary-or-none(site-config, "merman site-config")
|
|
445
|
+
}
|
|
446
|
+
let site-config = apply-theme-site-config(site-config, theme, theme-name, base-theme)
|
|
447
|
+
let pipeline = choose-value(profile-field(profile, "pipeline"), pipeline, default: "resvg-safe")
|
|
448
|
+
let profile-id = profile-field(profile, "id")
|
|
449
|
+
let profile-diagram-id = profile-field(profile, "diagram-id", alt: "diagram_id")
|
|
450
|
+
let background = choose-value(profile-field(profile, "background"), background)
|
|
451
|
+
let scoped-css = choose-value(profile-field(profile, "scoped-css", alt: "scoped_css"), scoped-css)
|
|
452
|
+
let css-override-policy = choose-value(
|
|
453
|
+
profile-field(profile, "css-override-policy", alt: "css_override_policy"),
|
|
454
|
+
css-override-policy,
|
|
455
|
+
)
|
|
456
|
+
let drop-native-duplicate-fallbacks = choose-value(
|
|
457
|
+
profile-field(
|
|
458
|
+
profile,
|
|
459
|
+
"drop-native-duplicate-fallbacks",
|
|
460
|
+
alt: "drop_native_duplicate_fallbacks",
|
|
461
|
+
),
|
|
462
|
+
drop-native-duplicate-fallbacks,
|
|
463
|
+
)
|
|
464
|
+
let container-width = choose-value(
|
|
465
|
+
profile-field(profile, "container-width", alt: "container_width"),
|
|
466
|
+
container-width,
|
|
467
|
+
)
|
|
468
|
+
let container-height = choose-value(
|
|
469
|
+
profile-field(profile, "container-height", alt: "container_height"),
|
|
470
|
+
container-height,
|
|
471
|
+
)
|
|
472
|
+
let fixed-today = choose-value(profile-field(profile, "fixed-today", alt: "fixed_today"), fixed-today)
|
|
473
|
+
let fixed-local-offset-minutes = choose-value(
|
|
474
|
+
profile-field(profile, "fixed-local-offset-minutes", alt: "fixed_local_offset_minutes"),
|
|
475
|
+
fixed-local-offset-minutes,
|
|
476
|
+
)
|
|
477
|
+
let presentation-profile = choose-value(profile-presentation-profile, presentation-profile)
|
|
478
|
+
|
|
479
|
+
let host-theme = merged-host-theme(
|
|
480
|
+
context-host-theme,
|
|
481
|
+
profile-typography,
|
|
482
|
+
profile-host-theme,
|
|
483
|
+
typography,
|
|
484
|
+
host-theme,
|
|
485
|
+
)
|
|
486
|
+
let presentation = build-presentation-options(presentation-profile, host-theme)
|
|
487
|
+
|
|
488
|
+
let binding-options = (
|
|
489
|
+
version: 2,
|
|
490
|
+
fixed_today: fixed-today,
|
|
491
|
+
fixed_local_offset_minutes: fixed-local-offset-minutes,
|
|
492
|
+
site_config: site-config,
|
|
493
|
+
layout: build-layout-options(
|
|
494
|
+
layout,
|
|
495
|
+
container-width,
|
|
496
|
+
container-height,
|
|
497
|
+
base-layout: profile-layout,
|
|
498
|
+
),
|
|
499
|
+
environment: build-environment-options(
|
|
500
|
+
environment,
|
|
501
|
+
text-measurement,
|
|
502
|
+
math-renderer,
|
|
503
|
+
base-environment: build-environment-options(
|
|
504
|
+
profile-environment,
|
|
505
|
+
profile-text-measurement,
|
|
506
|
+
profile-math-renderer,
|
|
507
|
+
),
|
|
508
|
+
),
|
|
509
|
+
svg: (
|
|
510
|
+
diagram_id: resolve-diagram-id(
|
|
511
|
+
profile-id,
|
|
512
|
+
profile-diagram-id,
|
|
513
|
+
id,
|
|
514
|
+
diagram-id,
|
|
515
|
+
),
|
|
516
|
+
pipeline: pipeline,
|
|
517
|
+
root_background_color: background,
|
|
518
|
+
scoped_css: scoped-css,
|
|
519
|
+
css_override_policy: css-override-policy,
|
|
520
|
+
drop_native_duplicate_fallbacks: drop-native-duplicate-fallbacks,
|
|
521
|
+
),
|
|
522
|
+
)
|
|
523
|
+
let binding-options = if presentation == none {
|
|
524
|
+
binding-options
|
|
525
|
+
} else {
|
|
526
|
+
(: ..binding-options, presentation: presentation)
|
|
527
|
+
}
|
|
528
|
+
(
|
|
529
|
+
binding_options: binding-options,
|
|
530
|
+
direct_layout: layout,
|
|
531
|
+
direct_options: none,
|
|
532
|
+
direct_container_width: container-width,
|
|
533
|
+
profile_layout: profile-layout,
|
|
534
|
+
profile_layout_container_width: profile-layout-container-width,
|
|
535
|
+
profile_options: none,
|
|
536
|
+
)
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
#let config-with-context-width(config, width) = {
|
|
542
|
+
if width == none or config.direct_layout != none or config.direct_container_width != none or config.direct_options != none or config.profile_options != none or config.profile_layout_container_width != none {
|
|
543
|
+
config
|
|
544
|
+
} else {
|
|
545
|
+
let binding-options = config.binding_options
|
|
546
|
+
let layout = build-layout-options(
|
|
547
|
+
none,
|
|
548
|
+
width,
|
|
549
|
+
none,
|
|
550
|
+
base-layout: config.profile_layout,
|
|
551
|
+
)
|
|
552
|
+
(: ..config, binding_options: (: ..binding-options, layout: layout))
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
#let build-binding-options(..args) = {
|
|
557
|
+
render-config(..args).binding_options
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
#let options-bytes(options) = {
|
|
561
|
+
if options == none {
|
|
562
|
+
bytes(())
|
|
563
|
+
} else {
|
|
564
|
+
bytes(json.encode(options))
|
|
565
|
+
}
|
|
566
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#let merman-plugin = plugin("../merman_typst_plugin.wasm")
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#import "render.typ": mermaid
|
|
2
|
+
|
|
3
|
+
#let show-mermaid-blocks(
|
|
4
|
+
document-context: false,
|
|
5
|
+
width: 100%,
|
|
6
|
+
height: auto,
|
|
7
|
+
fit: "contain",
|
|
8
|
+
scale: none,
|
|
9
|
+
alt: none,
|
|
10
|
+
error-mode: "placeholder",
|
|
11
|
+
..args,
|
|
12
|
+
) = block => mermaid(
|
|
13
|
+
block.text,
|
|
14
|
+
document-context: document-context,
|
|
15
|
+
width: width,
|
|
16
|
+
height: height,
|
|
17
|
+
fit: fit,
|
|
18
|
+
scale: scale,
|
|
19
|
+
alt: alt,
|
|
20
|
+
error-mode: error-mode,
|
|
21
|
+
..args,
|
|
22
|
+
)
|