PgBiel
PgBiel
First and foremost, this is because of how introspection (and thus `query`, `locate` etc) works in Typst: your code is run multiple times, so that Typst can be aware of...
Will be working on this :partying_face: (Commenting so I can be assigned!)
For the record, here are two workarounds proposed by @astrale-sharp in the Discord aiming to fix a Typst PDF named `ex.pdf` in order to have better results when printing. These...
This should be fairly easy for PNG and SVG exports, but sounds like it can be a bit complex for PDF export. I think the best approach for that would...
I think a more useful request would be to allow overriding whatever the built-in detection process does, e.g. `image(..., format: "png")`. Edit: this already exists, so I believe there is...
Alternatively, one could add content-based detection as a fallback if the extension-based detection leads to an error.
Relevant code (PDF): https://github.com/typst/typst/blob/afc28264e8f9b495a7ec290d52275e5099be7ac8/crates/typst-pdf/src/page.rs#L783-L789 Relevant code (Raster): https://github.com/typst/typst/blob/afc28264e8f9b495a7ec290d52275e5099be7ac8/crates/typst-render/src/lib.rs#L574-L579
I think this indicates it's not yet clear whether this is a bug or a feature... :eyes: Should we allow negative width rectangles? In principle, I'm in favor unless there's...
> I would go a step further and move many of the text parameters into font. Especially things like stylistic sets, which doesn't make sense as a global setting for...
I think it's a good idea to have something like this built-in, but, as @Beiri22 pointed out, we need to make sure we know what we'll be doing. Thousands, decimal...