-
-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify grid.column-gutter
docs
#3959
Comments
The #grid(
columns: 2,
column-gutter: 1em,
row-gutter: 1em,
box(stroke: red)[A],
box(stroke: red)[B],
)
#grid(
columns: 2,
column-gutter: (),
row-gutter: 1em,
box(stroke: red)[A],
box(stroke: red)[B],
) And if you now remove |
The docs ought to be clear about that then. When providing wrapper functions that don't use argument sinks, this is surprising. |
How do you think we should word it? Right now it says "Takes precedence over gutter." for column-gutter.
Can you provide an example? |
I think it should be noted on
Simplified, because this is a for a library, it is important for both tidy and argument validation to not use a sink here: #let subfigure-grid(
// figure arguments with defaults
// ...
// grid arguments with defaults
// ...
// figures
// ...
) = {
// arg validation with explicit arguments
// passing all arguments straight through with their default values
} |
We can reword the docs. I'll reopen to track this. |
grid.column-gutter
changes appearancegrid.column-gutter
docs
Description
The documentation for grid states that the default value for
grid.column-gutter
is()
, yet when setting it explicitly, it changes the behavior of grid.My understanding is that, passing the default value myself should not change how the gird behaves.
Reproduction URL
No response
Operating system
No response
Typst version
The text was updated successfully, but these errors were encountered: