-
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.
Closes #13. This allows hydra to alternatively display the last instead of the first candidate on a page, mimicking the behavior of LaTeX.
- Loading branch information
1 parent
0c6205c
commit b46c985
Showing
19 changed files
with
93 additions
and
18 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
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
Binary file not shown.
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
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
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 @@ | ||
# added by typst-test |
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.
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,23 @@ | ||
// Synopsis: | ||
// - Setting use-last to true makes hydra use show the last candidate on a page instead of the first | ||
|
||
#import "/src/lib.typ": hydra | ||
|
||
#set page( | ||
paper: "a7", | ||
header: context hydra(use-last: true), | ||
) | ||
#set heading(numbering: "1.1") | ||
#show heading.where(level: 1): it => pagebreak(weak: true) + it | ||
#set par(justify: true) | ||
|
||
= Introduction | ||
#lorem(200) | ||
|
||
= Content | ||
== First Section | ||
#lorem(50) | ||
== Second Section | ||
#lorem(100) | ||
== Third section | ||
#lorem(100) |
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,29 @@ | ||
// Synopsis: | ||
// - When there are multiple ancestors on one page hydra should still show the last heading | ||
|
||
#import "/src/lib.typ": hydra | ||
|
||
#set page( | ||
paper: "a7", | ||
header: context hydra(2, use-last: true), | ||
) | ||
#set heading(numbering: "1.1") | ||
#set par(justify: true) | ||
|
||
|
||
= Introduction | ||
== First Section | ||
#lorem(50) | ||
== Second Section | ||
#lorem(100) | ||
== Third section | ||
#lorem(50) | ||
|
||
= Other | ||
#lorem(10) | ||
== test | ||
#lorem(10) | ||
= More | ||
#lorem(5) | ||
== more tests | ||
#lorem(10) |