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

Auto-inject Bibliography heading if CSL HTML export is enabled #559

Merged
merged 10 commits into from
Feb 11, 2022

Conversation

kaushalmodi
Copy link
Owner

Adds new defcustom org-hugo-citations-plist.

Fixes #558

Adds new defcustom `org-hugo-citations-plist`.

Fixes #558
@kaushalmodi
Copy link
Owner Author

kaushalmodi commented Feb 11, 2022

  • Add documentation for the new defcustom org-hugo-citations-plist

The regexp now looks for a blank line to precede the bibliography
<div> section.

Right now the div section is inserted by oc-csl like this:

    ```

    <style>.csl-entry{text-indent: -1.5em; margin-left: 1.5em;}</style><div class="csl-bib-body">
    ```

This updated regex should work in the case that changes to something
like below as well:

    ```

    <style>.csl-entry{text-indent: -1.5em; margin-left: 1.5em;}</style>
    <div class="csl-bib-body">
    ```
This reverts commit 432e207.

Nope.. that didn't work. The error is thrown the moment Org parses the
citeproc.el throws error on this Emacs version. May be this is
temporary if andras-simonyi/citeproc-el#102
can get fixed.
This has no functional difference; it's just that the
`:bibliography-section-heading` should appear first as users can
easily customize this one property to disable the auto-injection of
"Bibliography" heading.
@kaushalmodi kaushalmodi merged commit 68eb84e into main Feb 11, 2022
@kaushalmodi kaushalmodi deleted the auto-inject-citation-bibliography-heading branch February 11, 2022 22:29
@kaushalmodi
Copy link
Owner Author

Updated documentation at https://ox-hugo.scripter.co/doc/org-cite-citations/ .

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.

citations: Auto-inject References or Bibliography heading
1 participant