Hello. I have question regarding templates and images.
I made this template. The code sits in this repo.
The template is a cover page and some parts of it are made up of images. A set of images is provided with the template (located in ./template/logos).
The package structure is:
.
├── lib.typ
├── template
│ ├── logos
│ │ ├── archi.png
│ │ ├── FNR.png
│ │ ├── FNRS-en.png
│ │ └── FNRS-fr.png
│ └── main.typ
└── typst.toml
When creating a new project from the template in the Typst app, the #show function in main.typ does not allow making use of images outside the template folder.
This is the working default:
#import "@preview/lumen:0.1.0": cover
#show: cover(
logo: "template/logos/archi.png",
[...]
fund-logo: "template/logos/FNRS-fr.png",
)
But what I try to make possible is that the user can upload own images and use them in the #show function:
#import "@preview/lumen:0.1.0": cover
#show: cover(
logo: "science.png",
[...]
fund-logo: "new-fund.png",
)
Basically I need some help to understand how assets and link to images work for templates.
Thanks !