-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filter candidates defined after the the current page
Previously when both prev and last candidates were none hydra would show candidates defined on later pages. I believe that candidates defined on pages after the current page should never be displayed.
- Loading branch information
1 parent
a505b39
commit 4fbcbda
Showing
6 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Synopsis: | ||
// - When both last and prev candidates where none hydra would fall back to a heading defined on a future page. | ||
// Headings defined after the current page should never be displayed. | ||
|
||
#import "/src/lib.typ": hydra | ||
|
||
#set page( | ||
paper: "a7", | ||
header: context hydra(), | ||
) | ||
#set heading(numbering: "1.1") | ||
#show heading.where(level: 1): it => pagebreak(weak: true) + it | ||
#set par(justify: true) | ||
|
||
#lorem(100) | ||
|
||
= Introduction | ||
#lorem(100) | ||
|