-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #559 from kaushalmodi/auto-inject-citation-bibliog…
…raphy-heading Auto-inject Bibliography heading if CSL HTML export is enabled
- Loading branch information
Showing
6 changed files
with
134 additions
and
5 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#+title: Citation CSL | ||
|
||
#+hugo_base_dir: ../ | ||
#+author: | ||
|
||
#+bibliography: cite/bib/orgcite.bib | ||
#+cite_export: csl | ||
|
||
#+filetags: org_cite csl citations bibliography | ||
|
||
#+macro: oxhugoissue =ox-hugo= Issue #[[https://github.com/kaushalmodi/ox-hugo/issues/$1][$1]] | ||
|
||
#+begin_description | ||
Test citation CSL using ~oc.el~ + ~citeproc.el~. | ||
#+end_description | ||
|
||
{{{oxhugoissue(558)}}} | ||
|
||
[cite:@OrgCitations] | ||
|
||
Below, the "Bibliography" heading will be auto-inserted. | ||
|
||
#+print_bibliography: |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
+++ | ||
title = "Citation CSL" | ||
description = "Test citation CSL using `oc.el` + `citeproc.el`." | ||
tags = ["org-cite", "csl", "citations", "bibliography"] | ||
draft = false | ||
+++ | ||
|
||
`ox-hugo` Issue #[558](https://github.com/kaushalmodi/ox-hugo/issues/558) | ||
|
||
(<a href="#citeproc_bib_item_1">org et al. 2021</a>) | ||
|
||
Below, the "Bibliography" heading will be auto-inserted. | ||
|
||
## Bibliography | ||
|
||
<style>.csl-entry{text-indent: -1.5em; margin-left: 1.5em;}</style><div class="csl-bib-body"> | ||
<div class="csl-entry"><a id="citeproc_bib_item_1"></a>org, mode, Citation Syntax, Mailing List, and Time Effort. 2021. “Elegant Citations with Org-Mode.” <i>Journal of Plain Text Formats</i> 42 (1): 2–3.</div> | ||
</div> |