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

Fix #142 #145

Merged
merged 5 commits into from
Apr 16, 2024
Merged

Fix #142 #145

merged 5 commits into from
Apr 16, 2024

Conversation

DerDrodt
Copy link
Contributor

@DerDrodt DerDrodt commented Mar 21, 2024

Fix #142.

Page ranges are now RangeInclusive<i32>, which fits the semantics of a page range better. Also changes how single pages are turned to ranges: 4 now becomes the inclusive range 4..=4, which fits.

Also, in citationberg, ranges where start and end are the same only render start.

Depends on typst/citationberg#12.

This is just a quick fix until I find time to rework page ranges.

@reknih
Copy link
Member

reknih commented Apr 8, 2024

typst/citationberg#142 is merged, so you can now add a patch to the Cargo.toml so we can merge this with passing CI.

Edit: Change the dep to a Git dependency instead so it can be used in Typst, patches are ignored by upstream dependents.

@reknih reknih merged commit 2893fca into typst:main Apr 16, 2024
1 check passed
@reknih
Copy link
Member

reknih commented Apr 16, 2024

Thank you!

@MangoIV
Copy link

MangoIV commented Sep 30, 2024

is this in any release typst version? I'm running into this problem but I cannot get this to actually use a single page...

@reknih
Copy link
Member

reknih commented Oct 1, 2024

This will land in Typst 0.12 for which we expect a preview version this week.

danilasar pushed a commit to danilasar/hayagriva that referenced this pull request Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Additional page gets displayed when only one is specified in the bibliography entry
3 participants