-
Notifications
You must be signed in to change notification settings - Fork 77
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
Add pairDelim YAML metadata option #126
Comments
Possible. Need to discuss particularities though. For one, imagine you reference a bunch of stuff (figures, for instance) that happen to form two succession sequences, f.ex. 1,2,3 and 6,7,8. At the moment, this will be rendered as 'figs. 1-3, 6-8'. Should If we don't limit it to the case of exactly two references, we run into another question. When exactly should this Let me know what you think. |
What if we added a
|
Okay, I figured out a relatively reasonable way to make this work. 2926e3f
|
Thanks for adding these metadata options. Would you please explain why "fig. 2 and 4–6" and "fig. 2, 4, and 6–9" are corner cases for |
It's just somewhat counter-intuitive, IMO. Generally you wouldn't expect a range after "and" if there weren't any ranges before "and". So I was wondering if I should handle this case differently. |
Hi @lierdakil,
Is it possible to set my own delimiter for pairs of references? For example, I would like
[@fig:one; @fig:two]
to output as "figs. 1 and 2" rather than "figs. 1, 2". Perhaps apairDelim
YAML metadata option could be added to pandoc-crossref (e.g.,pairDelim: "and"
)?Thanks.
The text was updated successfully, but these errors were encountered: