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

skip-starting: false will not work in the presence of leading ancestors #8

Open
tingerrr opened this issue Dec 31, 2023 · 0 comments
Open
Labels
bug Something isn't working upstream Waiting for upstream fix

Comments

@tingerrr
Copy link
Owner

tingerrr commented Dec 31, 2023

Given a document like so:

#import "@preview/hydra:0.3.0": hydra
#let hdyra = hydra.with(paper: "a7")

#set page(
  paper: "a7",
  flipped: true,
  width: 100pt,
  header: hydra(skip-starting: false, 2),
)

= Chapter
#lorem(5)

#pagebreak()
// = Chapter
== Section
#lorem(5)

The following two pages are rendered:
image

If the second // = Chapter is no longer commented out, the header on page 2 disappears. This will remain an issue until typst allows us to check the structure of the document more thoroughly to really ensure the first content of a page is the primary element, any of its ancestors or spacing/layout content.

@tingerrr tingerrr added bug Something isn't working upstream Waiting for upstream fix labels Dec 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream Waiting for upstream fix
Projects
None yet
Development

No branches or pull requests

1 participant