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

Generating a bibliography #2026

Open
Omikhleia opened this issue May 9, 2024 · 1 comment
Open

Generating a bibliography #2026

Omikhleia opened this issue May 9, 2024 · 1 comment
Assignees
Labels
enhancement Software improvement or feature request modules:packages Issue relates to core or 3rd party packages

Comments

@Omikhleia
Copy link
Member

Omikhleia commented May 9, 2024

SILE 0.14.17 / 0.15-develop

The bibliography packages doesn't offer a way to generate a bibliography from cited works.

While one can achieve it by calling \reference for all cited works, this is tedious and sub-optimal. So we would need a \bibliography command.

Here is my first take at the topic:

  • The \cite command should keep track of cited works in a scratch list
  • The \reference command should have an option to suppress the author, replaced by an horizontal rule (see rationale below)
  • A \bibliography command should be implemented
    1. Sort all entries (by default, by "author-date") with appropriate SU.collatedSort on names, then by date.
    2. Call \reference on the sorted list
      • With author suppressed if identical to the previous one (i.e. replaced by a rule)
    3. Clear the scratch list of cited works, so later use (in a different chapter or whatever) start afresh.
@Omikhleia Omikhleia added enhancement Software improvement or feature request modules:packages Issue relates to core or 3rd party packages labels May 9, 2024
@Omikhleia Omikhleia self-assigned this Jun 7, 2024
@Omikhleia
Copy link
Member Author

Regarding:

Sort all entries (by default, by "author-date")

Of course, CSL also defines how to sort entries (cs:sort) in a given style...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Software improvement or feature request modules:packages Issue relates to core or 3rd party packages
Projects
Development

No branches or pull requests

1 participant