Skip to content

Example 1-3 for typst fails because of relative pathsΒ #9

@rpapallas

Description

@rpapallas

Following the instructions in README for example_1 for typst fails. If you open chapters/introduction/introduction.typ and you attempt to create a new figure in there, you will get the following code:

#figure(
  image("figures/test2.svg", width: 80%),
  caption: [caption]
) <label>

but the path is relative and when you try to compile, it will fail with the following error:

  β”Œβ”€ chapters/introduction/objectives.typ:8:8
  β”‚
8 β”‚   image("figures/test2.svg", width: 80%),
  β”‚         ^^^^^^^^^^^^^^^^^^^

help: error occurred while importing this module
  β”Œβ”€ chapters/introduction/introduction.typ:7:9
  β”‚
7 β”‚ #include "objectives.typ"
  β”‚          ^^^^^^^^^^^^^^^^

help: error occurred while importing this module
  β”Œβ”€ main.typ:6:9
  β”‚
6 β”‚ #include "chapters/introduction/introduction.typ"
  β”‚          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

make: *** [all] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions