Skip to content
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

List syntax ignores #set list(tight: false) #4180

Open
1 task done
Gingeh opened this issue May 18, 2024 · 1 comment
Open
1 task done

List syntax ignores #set list(tight: false) #4180

Gingeh opened this issue May 18, 2024 · 1 comment
Labels
docs Improvements or additions to documentation styling About set and show rules or style properties

Comments

@Gingeh
Copy link

Gingeh commented May 18, 2024

Description

Despite being marked as settable in the docs, lists created with the dedicated list syntax ignore the setting.
This also happens with equation's block parameter and presumably any other parameters that are automatically set based on syntax usage.
This behaviour was previously noted in #1714 but the issue was closed by the author.

The description for the tight parameter does mention the following, but it isn't clear that this will always override set rules:

In markup mode, the value of this parameter is determined based on whether items are separated with a blank line.

The documentation for math.equation has a similar note in the Syntax section but makes this behaviour even less clear:

Starting and ending the equation with at least one space lifts it into a separate block that is centered horizontally.

If this behaviour is intended then the documentation should explicitly warn about it.

Reproduction:

#set list(tight: false)

this list ignores the set rule
- first
- second

this list respects the set rule
#list[first][second]

image

Reproduction URL

No response

Operating system

Linux

Typst version

  • I am using the latest version of Typst
@Gingeh Gingeh added the bug Something isn't working label May 18, 2024
@laurmaedje laurmaedje added docs Improvements or additions to documentation and removed bug Something isn't working labels May 18, 2024
@laurmaedje
Copy link
Member

If this behaviour is intended then the documentation should explicitly warn about it.

Agreed. I have relabelled from bug to docs issue.

@Enivex Enivex added the styling About set and show rules or style properties label May 18, 2024
@laurmaedje laurmaedje assigned laurmaedje and unassigned laurmaedje May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation styling About set and show rules or style properties
Projects
None yet
Development

No branches or pull requests

3 participants