-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
oc-csl.el: Add support for sub-bibliographies
* lisp/oc-csl.el (org-cite-csl--rendered-bibliographies): New function to collect all #+print_bibliography keywords with their properties and call Citeproc to render all sub-bibliographies in one go as required by the API. Return the formatted bibliographies as values in an alist in which keys are the #+print_bibliography keyword options as plists. Cache the return value in the export communication channel. (org-cite-csl--bibliography-filter): New helper function to convert plists representing #+print_bibliography options to the alist filter form expected by Citeproc. (org-cite-csl--rendered-citations): Call `org-cite-csl--rendered-bibliographies' before rendering citations to make sure that the complete sub-bibliography information is added to the processor and, therefore, citation numbers are correct. (org-cite-csl--render-bibliography): Instead of directly calling Citeproc to render the bibliography, call `org-cite-csl--rendered-bibliographies' and retrieve the formatted bibliography from its return value based on the options passed as the `props' argument.
- Loading branch information
1 parent
785f003
commit 7e07611
Showing
2 changed files
with
88 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters