Skip to content

Support of set typst root or take env TYPST_ROOT #159

Open

Description

@yodatak

Rheo don't seem to support set --root for typst or take env variable to set root level

Thanks to make typst awsome i have a solo repo with this architechture

exports/book1/pdf
exports/book1/epub
exports/book1/html

texts/book1/book1.typ
texts/book2/book2.typ

theme/uniontheme.typ
theme/covers/covers.svg

And i use a lot the typst root parameter , i cannot make its works with rheo

I have to move all my theme to a differents folder to use rheo
did you think its something rheo would support ( typst already support it so maybe its just env to be pass to rheo)

On top on my texts/book1/book1.typ i got

#import "../../theme/uniontheme.typ": *

I got this error
Error: Compilation { count: 1, errors: "path \"../../theme/uniontheme.typ\" would escape the project root" }

= hint: cannot access files outside of the project sandbox
= hint: you can adjust the project root with the --root argument

Activity

  1. SkytAsul commented on Oct 12, 2026

    @SkytAsul

    I would also love to be able to use a different root, in order to share files between different Rheo projects (in my case, a bib file)

    I believe that having #60 would allow to kind of work around that limitation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions