Block a user
prevent drawing separators on starting lines of fields
Not really useful since we're only checking if an index is in the list later on (line 431/434)
What do you suggest we do instead?
prevent drawing separators on starting lines of fields
Compiler crashes when measuring
schema.render
Ok, I was confused because in config.config you can specify width (and height), but it gets overwritten by the one in schema.render.
I've seen the TODO -> remove comments... we…
Compiler crashes when measuring
schema.render
I've been looking and... why do you have this logic in the renderer?
src/renderer.typ
Lines 535 to 563 in 3e74ad15ee
if config.full-page { |
|
cnvs |
|
} else { |
|
layout(size => { |
|
let m = measure(cnvs) |
|
let w = m.width |
|
let h = m.height |
|
let base-w = if type(width) == ratio { |
|
size.width * width |
|
} else { |
|
width |
|
} |
|
let r = if w == 0 { |
|
0 |
|
} else { |
|
base-w / w |
|
} |
|
let new-w = w * r |
|
let new-h = h * r |
|
r *= 100% |
|
box( |
|
width: new-w, |
|
height: new-h, |
|
scale(x: r, y: r, cnvs, reflow: true) |
|
) |
|
}) |
|
} |
I've…
Compiler crashes when measuring
schema.render
There are also issues in general with scale, reflow, and captions:
#import "@preview/rivet:0.3.0": schema
#let sch = schema.render(schema.load(
(
structures: (
main:…
Compiler crashes when measuring
schema.render
rajayonin
deleted branch non-consecutive-ranges from rajayonin/rivet-typst
2025-10-21 07:15:21 +00:00
Support for non-consecutive ranges
@HEL, when are you planning on releasing the next version of the package?