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

Closed
Omikhleia opened this issue May 9, 2024 · 2 comments · Fixed by #2082
Closed

Generating a bibliography #2026

Omikhleia opened this issue May 9, 2024 · 2 comments · Fixed by #2082
Assignees
Labels
enhancement Software improvement or feature request modules:packages Issue relates to core or 3rd party packages packages:bibliography
Milestone

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) Removed: This only makes sense in the context of the bibliography. The \reference command wouldn't make sense eventually. (If you want a full ref. to a book, use a citation styles that uses that for citations).
  • 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 the \reference logic 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...

@alerque alerque moved this to Todo in Bibliography cleanup Jun 29, 2024
@Omikhleia Omikhleia moved this from Todo to In Progress in Bibliography cleanup Sep 11, 2024
@Omikhleia
Copy link
Member Author

Edited the description.

On the use of SU.collatedSort see #2105 -- but we can do without it for now (with a workaround), and implement the base logic.

@Omikhleia Omikhleia mentioned this issue Sep 11, 2024
5 tasks
@alerque alerque added this to the v0.15.7 milestone Nov 23, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in Bibliography cleanup Nov 26, 2024
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 packages:bibliography
Projects
Development

Successfully merging a pull request may close this issue.

2 participants