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

Include page parameter to not disrupt current text flow #4442

Closed
miles-1 opened this issue Jun 24, 2024 · 2 comments
Closed

Include page parameter to not disrupt current text flow #4442

miles-1 opened this issue Jun 24, 2024 · 2 comments
Labels
duplicate This issue or pull request already exists feature request New feature or request layout Related to layout, positioning, etc.

Comments

@miles-1
Copy link

miles-1 commented Jun 24, 2024

Description

For an example document that includes a full-page figure...

= Introduction
#lorem(300)

#page(
  flipped: true, 
  figure(
    table(
      columns: 10,
      inset: (x:50pt,y:15pt),
      ..range(1, 101).map(x => [#x])
    ), 
    caption: [some table]
  )
)

= Methods
#lorem(300)

... it would be helpful to have a parameter that allows for specification that the text flow of the current page should not be interrupted, and the full-page figure will appear on the subsequent page.

I can think of a few ways this might be implemented:

  1. An interrupt-text-flow parameter (default value: true) that, if set to false, will be kept from any rendering until the current page is full.
  2. An insert-after parameter (default value: none) that, if set to a label of some document element, will be inserted into the document one page after the label-specified content is completed, not interrupting text flow.

Use Case

In many academic publications, large tables or images are pushed to be on their own page, often on a landscape page, while not interrupting the text flow after it is mentioned with a page break that leaves unused page space.

@miles-1 miles-1 added the feature request New feature or request label Jun 24, 2024
@freundTech
Copy link
Contributor

I think this might be better as a parameter on figure instead of page.
figure already has the placement attribute, which accepts none (here), top and bottom.

It might be possible to add new options page and flipped-page there and let typst figure out the rest, similar to LaTeX's p figure placement.

@laurmaedje laurmaedje added the layout Related to layout, positioning, etc. label Jul 1, 2024
@laurmaedje
Copy link
Member

I think this might be better as a parameter on figure instead of page.

Agreed. I'll close this in favor of #3967.

@laurmaedje laurmaedje closed this as not planned Won't fix, can't repro, duplicate, stale Jul 1, 2024
@laurmaedje laurmaedje added the duplicate This issue or pull request already exists label Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists feature request New feature or request layout Related to layout, positioning, etc.
Projects
None yet
Development

No branches or pull requests

3 participants