Skip to content

Clarify place documentation - #5031

Merged
laurmaedje merged 4 commits into
typst:mainfrom
sijow:place-doc
Sep 26, 2024
Merged

laurmaedje merged 4 commits into
typst:mainfrom
sijow:place-doc

Conversation

@sijow

@sijow sijow commented Sep 25, 2024

Copy link
Copy Markdown
Contributor

This is my attempt at clarifying the place documentation, in particular:

  • reword/expand "placed content doesn't affect the position of other content": layout is affected when placing from inside a paragraph, or when float is true. This fixes Documentation for place() is a bit misleading #3159
  • reword "will be in the foreground of all other content in the container": actually, non-placed content added later in flow will come on top
  • remove part about ignored alignments for auto-sized axes: it's not true in my tests (but maybe I misunderstood?)
  • clarify meaning of "clearance"

Please review carefully as I'm not particularly confident in my understanding of all terms and concepts here.

@PgBiel PgBiel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! Here are my opinions.

Comment thread crates/typst/src/layout/place.rs Resolved
Comment thread crates/typst/src/layout/place.rs Resolved
Comment thread crates/typst/src/layout/place.rs Resolved
@sijow

sijow commented Sep 26, 2024

Copy link
Copy Markdown
Contributor Author

Thanks for the review, I've addressed all comments. I think we just need to decide if we keep the box+zwj explanation and example.

@laurmaedje
laurmaedje added this pull request to the merge queue Sep 26, 2024
@laurmaedje

Copy link
Copy Markdown
Member

Thank you! It's a nice addition to the docs.

Merged via the queue into typst:main with commit d1379d8 Sep 26, 2024
Dikluwe pushed a commit to Dikluwe/typst-crystalline that referenced this pull request Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation for place() is a bit misleading

3 participants