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 #560 from kaushalmodi/org-ref
Add example Org file with org-ref style citations
- Loading branch information
Showing
4 changed files
with
81 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#+title: Citation using ~org-ref~ | ||
|
||
#+hugo_base_dir: ../ | ||
#+author: | ||
|
||
#+filetags: org_ref csl citations bibliography | ||
|
||
#+csl-style: cite/csl/apa.csl | ||
|
||
#+macro: oxhugodiscuss =ox-hugo= Discussion #[[https://github.com/kaushalmodi/ox-hugo/discussions/$1][$1]] | ||
|
||
#+begin_description | ||
Test citation CSL using ~org-ref~. | ||
#+end_description | ||
|
||
{{{oxhugodiscuss(561)}}} | ||
|
||
[[cite:&OrgCitations]] | ||
|
||
[[bibliography:cite/bib/orgcite.bib]] | ||
|
||
#+bind: org-export-before-parsing-hook (lambda (_) (org-ref-process-buffer 'html)) | ||
# Local Variables: | ||
# org-export-allow-bind-keywords: t | ||
# End: |
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,16 @@ | ||
+++ | ||
title = "Citation using org-ref" | ||
description = "Test citation CSL using `org-ref`." | ||
tags = ["org-ref", "csl", "citations", "bibliography"] | ||
draft = false | ||
+++ | ||
|
||
`ox-hugo` Discussion #[561](https://github.com/kaushalmodi/ox-hugo/discussions/561) | ||
|
||
(<a href="#citeproc_bib_item_1">Org et al., 2021</a>) | ||
|
||
## 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, m., Syntax, C., List, M., & Effort, T. (2021). Elegant citations with org-mode. <i>Journal of Plain Text Formats</i>, <i>42</i>(1), 2–3.</div> | ||
</div> |