tingerrr / hydra

A typst package for displaying the active section in the page header or footer.
MIT License
21 stars 3 forks source link

Add use-last parameter #19

Closed freundTech closed 2 months ago

freundTech commented 2 months ago

Closes #13. This allows hydra to alternatively display the last instead of the first candidate on a page, mimicking the behavior of LaTeX.

freundTech commented 2 months ago

Noticed that my PR was already outdated when I created it. Just rebased and force-pushed.

freundTech commented 2 months ago

I reworked it a bit. get-candidates no longer considers ctx.use-last, but always returns correct prev, next and last, while execute chooses which of these to display.

execute is now significantly simpler.

freundTech commented 2 months ago

Are you planning to make a release for this or are you waiting for more changes? I would like to stop vendoring hydra into my thesis :wink:

tingerrr commented 2 months ago

I'll prepare some releases today, since I have to fix some stuff on subpar. A shame I couldn't get the mantys PR ready in time, but it is what it is.