Update all packages

This commit is contained in:
Mateus Pinto Rodrigues
2018-07-17 19:34:58 -03:00
parent 3c61003537
commit 25baa00351
259 changed files with 1404 additions and 4340 deletions

View File

@@ -0,0 +1,214 @@
<?xml version="1.0" encoding="utf-8"?>
<style xmlns="http://purl.org/net/xbiblio/csl" class="in-text" version="1.0" demote-non-dropping-particle="sort-only" page-range-format="expanded" default-locale="en-US">
<info>
<title>ACS Nano</title>
<title-short>ACS Nano</title-short>
<id>http://www.zotero.org/styles/acs-nano</id>
<link href="http://www.zotero.org/styles/acs-nano" rel="self"/>
<link href="http://www.zotero.org/styles/american-chemical-society-with-titles" rel="template"/>
<link href="http://pubs.acs.org/paragonplus/submission/ancac3/ancac3_authguide.pdf" rel="documentation"/>
<category citation-format="numeric"/>
<category field="chemistry"/>
<issn>1936-0851</issn>
<eissn>1936-086X</eissn>
<summary>ACS style with et al in italics</summary>
<updated>2014-09-21T00:39:49+00:00</updated>
<rights license="http://creativecommons.org/licenses/by-sa/3.0/">This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License</rights>
</info>
<macro name="editor">
<names variable="editor">
<name sort-separator=", " initialize-with=". " name-as-sort-order="all" delimiter="; " delimiter-precedes-last="always"/>
<et-al font-style="italic"/>
<label form="short" prefix=", " text-case="capitalize-first"/>
</names>
</macro>
<macro name="author">
<names variable="author" suffix=".">
<name sort-separator=", " initialize-with=". " name-as-sort-order="all" delimiter="; " delimiter-precedes-last="always"/>
<et-al font-style="italic"/>
<label form="short" prefix=", " text-case="capitalize-first"/>
</names>
</macro>
<macro name="publisher">
<group delimiter=": ">
<text variable="publisher"/>
<text variable="publisher-place"/>
</group>
</macro>
<macro name="title">
<choose>
<if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<text variable="title" text-case="title" font-style="italic"/>
</if>
<else>
<text variable="title" text-case="title"/>
</else>
</choose>
</macro>
<macro name="volume">
<group delimiter=" ">
<text term="volume" form="short" text-case="capitalize-first"/>
<text variable="volume"/>
</group>
</macro>
<macro name="series">
<text variable="collection-title"/>
</macro>
<macro name="pages">
<label variable="page" form="short" suffix=" "/>
<text variable="page"/>
</macro>
<macro name="book-container">
<group delimiter=" ">
<text macro="title" suffix="."/>
<text term="in" text-case="capitalize-first"/>
<text variable="container-title" font-style="italic"/>
</group>
</macro>
<macro name="issued">
<date variable="issued" delimiter=" ">
<date-part name="year"/>
</date>
</macro>
<macro name="full-issued">
<date variable="issued" delimiter=" ">
<date-part name="month" form="long" suffix=" "/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</macro>
<macro name="edition">
<choose>
<if is-numeric="edition">
<group delimiter=" ">
<number variable="edition" form="ordinal"/>
<text term="edition" form="short"/>
</group>
</if>
<else>
<text variable="edition" suffix="."/>
</else>
</choose>
</macro>
<citation collapse="citation-number">
<sort>
<key variable="citation-number"/>
</sort>
<layout delimiter="," vertical-align="sup">
<text variable="citation-number"/>
</layout>
</citation>
<bibliography second-field-align="flush" entry-spacing="0" et-al-min="11" et-al-use-first="10">
<layout suffix=".">
<text variable="citation-number" prefix="(" suffix=") "/>
<text macro="author" suffix=" "/>
<choose>
<if type="article-magazine">
<group delimiter=" ">
<text macro="title" suffix="."/>
<text variable="container-title" font-style="italic" suffix="."/>
<text macro="edition"/>
<text macro="publisher"/>
<text macro="full-issued" suffix=","/>
<text macro="pages"/>
</group>
</if>
<else-if type="thesis">
<group delimiter=", ">
<group delimiter=". ">
<text macro="title"/>
<text variable="genre"/>
</group>
<text macro="publisher"/>
<text macro="issued"/>
<text macro="volume"/>
<text macro="pages"/>
</group>
</else-if>
<else-if type="bill book graphic legal_case legislation motion_picture report song" match="any">
<group delimiter="; ">
<text macro="title"/>
<text macro="editor" prefix=" "/>
<text macro="series"/>
<text macro="edition"/>
<choose>
<if type="report">
<group delimiter=" ">
<text variable="genre"/>
<text variable="number"/>
</group>
</if>
</choose>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="issued"/>
</group>
<group delimiter=", ">
<text macro="volume"/>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="patent">
<group delimiter=", ">
<group delimiter=". ">
<text macro="title"/>
<text variable="number"/>
</group>
<date variable="issued" form="text"/>
</group>
</else-if>
<else-if type="chapter paper-conference" match="any">
<group delimiter="; ">
<text macro="book-container"/>
<text macro="editor"/>
<text macro="series"/>
<group delimiter=", ">
<text macro="publisher"/>
<text macro="issued"/>
</group>
<group delimiter=", ">
<text macro="volume"/>
<text macro="pages"/>
</group>
</group>
</else-if>
<else-if type="webpage">
<group delimiter=" ">
<text variable="title"/>
<text variable="URL"/>
<date variable="accessed" prefix="(accessed " suffix=")" delimiter=" ">
<date-part name="month" form="short" strip-periods="true"/>
<date-part name="day" suffix=", "/>
<date-part name="year"/>
</date>
</group>
</else-if>
<else-if type="article-journal">
<group delimiter=" ">
<text macro="title" suffix="."/>
<text variable="container-title" font-style="italic" form="short"/>
<group delimiter=", ">
<text macro="issued" font-weight="bold"/>
<text variable="volume" font-style="italic"/>
<text variable="page"/>
</group>
</group>
</else-if>
<else>
<group delimiter=", ">
<group delimiter=". ">
<text macro="title"/>
<text variable="container-title" font-style="italic"/>
</group>
<group delimiter=", ">
<text macro="issued"/>
<text variable="volume" font-style="italic"/>
<text variable="page"/>
</group>
</group>
</else>
</choose>
</layout>
</bibliography>
</style>

View File

@@ -0,0 +1,92 @@
;;; author-year.el --- Citation Style Lisp - the other CSL
;;; Commentary:
;;
;;; Code:
(setq citation-style
'((label . orcp-citation-author-year-label)
(prefix . "(")
(suffix . ")")
(delimiter . "; ")
(citeauthor . ((vertical-align . baseline)
(label . orcp-citation-author-label)
(prefix . "")
(suffix . " ")))
(citeyear . ((vertical-align . baseline)
(label . orcp-citation-year-label)
(prefix . "")
(suffix . " ")
(chomp-leading-space . nil)
))))
(setq bibliography-style
'((sort . nil)
(hanging-indent . 3)
(justification . full)
(spacing . 1)
(label . orcp-citation-author-year-label)
(label-prefix . "(")
(label-suffix . ") ")
(header . ((text . "Bibliography")
(font-style . bold)))
;; Formatting of fields
;; Single author name
(author . ((initialize . t) ; use initials, not full names
;; use firstname and lastname symbols
(name-order . (firstname lastname))
(name-separator . " ")
(et-al . 4) ; after 4 authors use et-al
(delimiter . "; ")
(last-author-delimiter . " and ")
(suffix . "")
(field-separator . ", ")
;; ; function to convert (first von last jr) to a string.)
(name-format . ''format-author-name)
(field-separator ", ")))
(title . ((font-style . italics)
(suffix . "")
(field-separator . ", ")))
(booktitle . ((font-style . italics)
(suffix . "")
(field-separator . "in ")))
(journal . ((suffix . "")
(field-separator . ", ")))
;; here we use some logic to group volume(issue) or volume
(volume . ((suffix . (when (orcp-get-entry-field "number" entry)
(orcp-issue entry)))
(field-separator . ", ")))
(issue . ((font-style . bold)
(prefix . "(")
(suffix . ")")
(field-separator . ", ")))
(pages . ((prefix . "pp. ")
(suffix . "")
(field-separator . " ")
(collapse-range . nil)))
(year . ((prefix . "(")
(suffix . ")")
(field-separator . ".")))
(doi . ((prefix . " ")
(suffix . ".")
(field-separator . "")
(formatter . orcp-doi-formatter)))
;; Formatting of entries
(entries . ((article . (author title journal volume pages year doi))
(inproceedings . (author title booktitle year))
(book . (author title year))
(manual . (author title url doi))
(misc . (author title url doi))
(techreport . (author title institution year))
(mastersthesis . (author title school year))
(phdthesis . (author title school year))
(t . (author title year))))))
(provide 'author-year)
;;; author-year.el ends here

View File

@@ -0,0 +1,86 @@
;;; unsrt-footnote.el --- Citation Style Lisp - the other CSL
;;; Commentary:
;; Convert citations to org-mode footnotes
;;; Code:
(setq citation-style
'((label . orcp-footnote-label)
(prefix . "")
(suffix . "")
;; sort on increasing citation numbers.
(sort . (lambda (key1 key2)
(let ((i1 (-find-index
(lambda (entry)
(string= key1 (car entry)))
*orcp-unique-entries*))
(i2 (-find-index
(lambda (entry)
(string= key2 (car entry)))
*orcp-unique-entries*)))
(> i2 i1))))
(delimiter . ", ")
(vertical-align . baseline)))
(setq bibliography-style
'((sort . nil)
(hanging-indent . 3)
(justification . full)
(spacing . 1)
(label . orcp-footnote-label)
(label-prefix . "")
(label-suffix . " ")
(header . ((text . "Bibliography")
(font-style . bold)))
;; Formatting of fields
;; Single author name
(author . ((initialize . t) ; use initials, not full names
(name-order . (lastname firstname))
(name-separator . ", ")
(et-al . 4) ; after 4 authors use et-al
(delimiter . "; ")
(last-author-delimiter . " and ")
(suffix . "")
(field-separator . ", ")
;; ; function to convert (first von last jr) to a string.)
(name-format . ''format-author-name)
(field-separator ", ")))
(title . ((font-style . italics)
(suffix . "")
(field-separator . ", ")))
(journal . ((suffix . "")
(field-separator . ", ")))
;; here we use some logic to group volume(issue) or volume
(volume . ((suffix . (when (orcp-get-entry-field "number" entry)
(orcp-issue entry)))
(field-separator . ", ")))
(issue . ((font-style . bold)
(prefix . "(")
(suffix . ")")
(field-separator . ", ")))
(pages . ((prefix . "pp. ")
(suffix . "")
(field-separator . " ")
(collapse-range . nil)))
(year . ((prefix . "(")
(suffix . ")")
(field-separator . ".")))
(doi . ((prefix . " ")
(suffix . ".")
(field-separator . "")
(formatter . orcp-doi-formatter)))
;; Formatting of entries
(entries . ((article . (author title journal volume pages year doi))
(book . (author title year))
(misc . (author title url doi))
(techreport . (author title institution year))
(mastersthesis . (author title school year))
(phdthesis . (author title school year))
(t . (author title year))))))
(provide 'unsrt)
;;; unsrt.el ends here

View File

@@ -0,0 +1,107 @@
;;; unsrt-paren.el --- numbered citations in ()
;;; Commentary:
;; This does not work well for brackets because org-mode interprets them as
;; footnotes.
;;; Code:
(setq citation-style
'((label . orcp-citation-number-label)
(prefix . "(")
(suffix . ")")
(chomp-leading-space . nil)
(chomp-trailing-space . nil)
;; sort on increasing citation numbers.
(sort . (lambda (key1 key2)
(let ((i1 (-find-index
(lambda (entry)
(string= key1 (car entry)))
*orcp-unique-entries*))
(i2 (-find-index
(lambda (entry)
(string= key2 (car entry)))
*orcp-unique-entries*)))
(> i2 i1))))
(collapse . 'orcp-collapse-numeric-range)
(delimiter . ",")
(vertical-align . baseline)
(transpose-punctuation . nil) ;put citations on right of punctuation
(citenum . ((vertical-align . baseline)
(prefix . "")
(suffix . "")
(chomp-leading-space . nil)
(chomp-trailing-space . nil)))
(citeauthor . ((vertical-align . baseline)
(label . orcp-citation-author-label)
(prefix . "")
(suffix . "")
(chomp-leading-space . nil)
(chomp-trailing-space . nil)))
(citeyear . ((vertical-align . baseline)
(label . orcp-citation-year-label)
(prefix . "")
(suffix . "")
(chomp-leading-space . nil)
(chomp-trailing-space . nil)))))
(setq bibliography-style
'((sort . nil)
(hanging-indent . 3)
(justification . full)
(spacing . 1)
(label . orcp-citation-number-label)
(label-prefix . "")
(label-suffix . ") ")
(header . ((text . "Bibliography")
(font-style . bold)))
;; Formatting of fields
;; Single author name
(author . ((initialize . t) ; use initials, not full names
(name-order . (lastname firstname))
(name-separator . ", ")
(et-al . 4) ; after 4 authors use et-al
(delimiter . "; ")
(last-author-delimiter . " and ")
(suffix . "")
(field-separator . ", ")
;; ; function to convert (first von last jr) to a string.)
(name-format . ''format-author-name)
(field-separator ", ")))
(title . ((font-style . italics)
(suffix . "")
(field-separator . ", ")))
(journal . ((suffix . "")
(field-separator . ", ")))
;; here we use some logic to group volume(issue) or volume
(volume . ((suffix . (when (orcp-get-entry-field "number" entry)
(orcp-issue entry)))
(field-separator . ", ")))
(issue . ((font-style . bold)
(prefix . "(")
(suffix . ")")
(field-separator . ", ")))
(pages . ((prefix . "pp. ")
(suffix . "")
(field-separator . " ")
(collapse-range . nil)))
(year . ((prefix . "(")
(suffix . ")")
(field-separator . ".")))
(doi . ((prefix . " ")
(suffix . ".")
(field-separator . "")
(formatter . orcp-doi-formatter)))
;; Formatting of entries
(entries . ((article . (author title journal volume pages year doi))
(book . (author title year))
(misc . (author title url doi))
(techreport . (author title institution year))
(mastersthesis . (author title school year))
(phdthesis . (author title school year))
(t . (author title year))))))
(provide 'unsrt-paren)
;;; unsrt-paren.el ends here

View File

@@ -0,0 +1,111 @@
;;; unsrt.el --- Citation Style Lisp - the other CSL
;;; Commentary:
;;
;;; Code:
(setq citation-style
'((label . orcp-citation-number-label)
(prefix . "")
(suffix . "")
(chomp-leading-space . t)
(chomp-trailing-space . nil)
;; sort on increasing citation numbers.
(sort . (lambda (key1 key2)
(let ((i1 (-find-index
(lambda (entry)
(string= key1 (car entry)))
*orcp-unique-entries*))
(i2 (-find-index
(lambda (entry)
(string= key2 (car entry)))
*orcp-unique-entries*)))
(> i2 i1))))
(collapse . 'orcp-collapse-numeric-range)
(delimiter . ",")
(vertical-align . superscript)
(transpose-punctuation . t) ;put citations on right of punctuation
(citenum . ((vertical-align . baseline)
(prefix . " ")
(suffix . " ")
(chomp-leading-space . nil)
(chomp-trailing-space . nil)))
(citeauthor . ((vertical-align . baseline)
(label . orcp-citation-author-label)
(prefix . "")
(suffix . " ")
(chomp-leading-space . nil)
(chomp-trailing-space . nil)))
(citeyear . ((vertical-align . baseline)
(label . orcp-citation-year-label)
(prefix . "")
(suffix . " ")
(chomp-leading-space . nil)
(chomp-trailing-space . nil)))))
(setq bibliography-style
'((sort . nil)
(hanging-indent . 3)
(justification . full)
(spacing . 1)
(label . orcp-citation-number-label)
(label-prefix . "")
(label-suffix . ". ")
(header . ((text . "Bibliography")
(font-style . bold)))
;; Formatting of fields
;; Single author name
(author . ((initialize . t) ; use initials, not full names
(name-order . (lastname firstname))
(name-separator . ", ")
(et-al . 4) ; after 4 authors use et-al
(delimiter . "; ")
(last-author-delimiter . " and ")
(suffix . "")
(field-separator . ", ")
;; ; function to convert (first von last jr) to a string.)
(name-format . ''format-author-name)
(field-separator ", ")))
(title . ((font-style . italics)
(suffix . "")
(field-separator . ", ")))
(booktitle . ((font-style . italics)
(suffix . "")
(field-separator . "in ")))
(journal . ((suffix . "")
(field-separator . ", ")))
;; here we use some logic to group volume(issue) or volume
(volume . ((suffix . (when (orcp-get-entry-field "number" entry)
(orcp-issue entry)))
(field-separator . ", ")))
(issue . ((font-style . bold)
(prefix . "(")
(suffix . ")")
(field-separator . ", ")))
(pages . ((prefix . "pp. ")
(suffix . "")
(field-separator . " ")
(collapse-range . nil)))
(year . ((prefix . "(")
(suffix . ")")
(field-separator . ".")))
(doi . ((prefix . " ")
(suffix . ".")
(field-separator . "")
(formatter . orcp-doi-formatter)))
;; Formatting of entries
(entries . ((article . (author title journal volume pages year doi))
(inproceedings . (author title booktitle year))
(book . (author title year))
(misc . (author title url doi))
(techreport . (author title institution year))
(mastersthesis . (author title school year))
(phdthesis . (author title school year))
(t . (author title year))))))
(provide 'unsrt)
;;; unsrt.el ends here

View File

@@ -0,0 +1,92 @@
* DONE Introduction to a citation processor in org-ref
CLOSED: [2015-12-11 Fri 18:05]
:PROPERTIES:
:categories: emacs,orgref,orgmode,citations
:date: 2015/12/11 18:05:43
:updated: 2015/12/11 18:22:40
:END:
As a potential solution for citions in org-mode for non-LaTeX export, here we introduce csl (citation syntax lisp). The idea is heavily influenced by the xml-based Citation Syntax Language, but uses lisp sexps instead.
Briefly, there is a csl file that contains two variables: citation-style and bibliography-style. The citation-style defines how the in-text citations are represented for different types of citations. The bibliography-style defines how the bibliography is constructed.
What do we gain by this?
1. No need for external citeproc program, and hackability by org-mode experts.
2. Punctuation transposition and space chomping, i.e. put superscripts on the right side of punctuation if you want it, and remove whitespace before superscripts if you want it.
3. Total tunability of the citation format to different backends.
4. Easy to change bibliography format with the bibliographystyle link.
5. The use of Bibtex databases. These are plain text, and flexible.
The real code for this is too long to blog about. Instead, you should check it out here: https://github.com/jkitchin/org-ref/tree/master/citeproc
** Reference types
- A book cite:kittel-2005-introd-solid.
- An article cite:kitchin-2015-examp
- A miscellaneous bibtex type cite:xu-suppor.
There is work to do in supporting other types of entry types that are common in bibtex files.
** Citation types
- Regular citation: cite:kitchin-2015-examp
- citenum: See Ref. citenum:kitchin-2015-examp
- citeauthor: citeauthor:kitchin-2015-examp
- citeyear: citeyear:kitchin-2015-examp
There is work to do in supporting other types of citations.
** Multiple citations and sorting within citation
You can specify that the cites within a citation are consistently sorted in the export.
- a,b: cite:kitchin-2015-examp,kitchin-2015-data-surfac-scien
- b,a: cite:kitchin-2015-data-surfac-scien,kitchin-2015-examp
There is work to do for range collapsing, e.g. to turn 1,2,3 into 1-3.
** Space chomping and punctuation testing
I think citations should always be put in the sentence they logically belong to. LaTeX has a feature through natbib I think where for some styles, e.g. superscripts, the citations are moved to the right side of punctuation, and whitespace is chomped so the superscript is next to words, not separated by spaces. We can do that here too.
- Citation at end of sentence cite:kitchin-2015-examp.
- Citation in clause cite:kitchin-2015-examp,kitchin-2015-data-surfac-scien, with a comma.
- Citation in middle of cite:kitchin-2015-examp,kitchin-2015-data-surfac-scien a sentence.
** Building
:PROPERTIES:
:date: 2015/12/11 14:47:59
:updated: 2015/12/11 14:48:26
:END:
At the moment, you have to add a hook function to put the replacements in the document before parsing.
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path ".")
(require 'org-ref-citeproc)
(let ((org-export-before-parsing-hook '(orcp-citeproc)))
(browse-url (org-html-export-to-html)))
#+End_src
#+RESULTS:
: #<process open ./readme-author-year.html>
** Summary thoughts
This looks promising. There is probably a lot of work to do to make this as robust as say citeproc-js or the Zotero handler. I am not sure if we could write this in a way to directly use the CSL. My feeling is it would not be as flexible as this, and we would have to add to it anyway.
Here are some remaining things that could be worked on if we continue this direction.
1. Other bibtex entries need to be tested out.
2. Remaining bibtex fields need to be defined.
3. Standardization of styling that can be done. Not all features described in my csl are supported, e.g. et. al. and probably others.
4. The author-year style needs name disambiguation somehow.
5. Hyperlinking in html.
6. Make sure export to other backends works.
7. Can this work for notes-based styles?
** Bibliography
You use a bibliographystyle link to specify a csl. These are similar to bibtex styles, and in some cases no change is needed for LaTeX export (although you may have to remove the citeproc hook function).
bibliographystyle:author-year
bibliography:~/Dropbox/bibliography/references.bib

View File

@@ -0,0 +1,93 @@
* DONE Introduction to a citation processor in org-ref
CLOSED: [2015-12-11 Fri 18:05]
:PROPERTIES:
:categories: emacs,orgref,orgmode,citations
:date: 2015/12/11 18:05:43
:updated: 2015/12/11 18:22:40
:END:
As a potential solution for citions in org-mode for non-LaTeX export, here we introduce csl (citation syntax lisp). The idea is heavily influenced by the xml-based Citation Syntax Language, but uses lisp sexps instead.
Briefly, there is a csl file that contains two variables: citation-style and bibliography-style. The citation-style defines how the in-text citations are represented for different types of citations. The bibliography-style defines how the bibliography is constructed.
What do we gain by this?
1. No need for external citeproc program, and hackability by org-mode experts.
2. Punctuation transposition and space chomping, i.e. put superscripts on the right side of punctuation if you want it, and remove whitespace before superscripts if you want it.
3. Total tunability of the citation format to different backends.
4. Easy to change bibliography format with the bibliographystyle link.
5. The use of Bibtex databases. These are plain text, and flexible.
The real code for this is too long to blog about. Instead, you should check it out here: https://github.com/jkitchin/org-ref/tree/master/citeproc
** Reference types
- A book cite:kittel-2005-introd-solid.
- An article cite:kitchin-2015-examp
- A miscellaneous bibtex type cite:xu-suppor.
There is work to do in supporting other types of entry types that are common in bibtex files.
** Citation types
- Regular citation: cite:kitchin-2015-examp
- citenum: See Ref. citenum:kitchin-2015-examp
- citeauthor: citeauthor:kitchin-2015-examp
- citeyear: citeyear:kitchin-2015-examp
There is work to do in supporting other types of citations.
** Multiple citations and sorting within citation
You can specify that the cites within a citation are consistently sorted in the export.
- a,b: cite:kitchin-2015-examp,kitchin-2015-data-surfac-scien
- b,a: cite:kitchin-2015-data-surfac-scien,kitchin-2015-examp
There is work to do for range collapsing, e.g. to turn 1,2,3 into 1-3.
** Space chomping and punctuation testing
I think citations should always be put in the sentence they logically belong to. LaTeX has a feature through natbib I think where for some styles, e.g. superscripts, the citations are moved to the right side of punctuation, and whitespace is chomped so the superscript is next to words, not separated by spaces. We can do that here too.
- Citation at end of sentence cite:kitchin-2015-examp.
- Citation in clause cite:kitchin-2015-examp,kitchin-2015-data-surfac-scien, with a comma.
- Citation in middle of cite:kitchin-2015-examp,kitchin-2015-data-surfac-scien a sentence.
** Building
:PROPERTIES:
:date: 2015/12/11 14:47:59
:updated: 2015/12/11 14:48:26
:END:
At the moment, you have to add a hook function to put the replacements in the document before parsing.
#+BEGIN_SRC emacs-lisp
(add-to-list 'load-path ".")
(require 'org-ref-citeproc)
(when (file-exists-p "readme.html") (delete-file "readme.html"))
(let ((org-export-before-parsing-hook '(orcp-citeproc)))
(browse-url (org-html-export-to-html)))
#+End_src
#+RESULTS:
: #<process open ./readme-unsrt.html>
** Summary thoughts
This looks promising. There is probably a lot of work to do to make this as robust as say citeproc-js or the Zotero handler. I am not sure if we could write this in a way to directly use the CSL. My feeling is it would not be as flexible as this, and we would have to add to it anyway.
Here are some remaining things that could be worked on if we continue this direction.
1. Other bibtex entries need to be tested out.
2. Remaining bibtex fields need to be defined.
3. Standardization of styling that can be done. Not all features described in my csl are supported, e.g. et. al. and probably others.
4. The author-year style needs name disambiguation somehow.
5. Hyperlinking in html.
6. Make sure export to other backends works.
7. Can this work for notes-based styles?
** Bibliography
You use a bibliographystyle link to specify a csl. These are similar to bibtex styles, and in some cases no change is needed for LaTeX export (although you may have to remove the citeproc hook function).
bibliographystyle:unsrt
bibliography:~/Dropbox/bibliography/references.bib

View File

@@ -0,0 +1,203 @@
@techreport{2011-mater-genom,
title = {Materials Genome Initiative for Global Competitiveness},
institution = {National Science and Technology Council},
year = {2011},
type = {Report}
}
@phdthesis{Hossein-thesis,
author = {Hossein Pourmatin},
title = {Computational Multiscale Methods for Defects: 1. Line Defects
in Liquid Crystals; 2. Electron Scattering in Defected
Crystals},
school = {Carnegie Mellon University},
year = 2014,
note = {Available at
\url{sites.google.com/site/kaushikdayal/publications#Theses}}
}
@inproceedings{abolhasani-2011-model,
Author = {Abolhasani, M. and Kumacheva, E. and G{\"u}nther,
A.},
Title = {Model-predictive Strategy for Exploration of Carbon
Dioxide Dissolution and Mass Transfer},
Booktitle = {15th International Conference on Miniaturized
Systems for Chemistry and Life Sciences},
Year = 2011,
Month = {October},
Url =
{"http://www.rsc.org/images/LOC/2011/PDFs/Papers/224_1180.pdf}
}
@article{anderson-1977-raman,
author = {George R. Anderson},
title = {The {R}aman Spectra of Carbon Dioxide in Liquid Water and
Water-D2},
journal = {J. Phys. Chem.},
volume = 81,
number = 3,
pages = {273-276},
year = 1977,
doi = {10.1021/j100518a017},
url = {http://dx.doi.org/10.1021/j100518a017},
month = 2,
eprint = {http://pubs.acs.org/doi/pdf/10.1021/j100518a017},
}
@MastersThesis{ding-2012-metal-oxide,
author = {Zhizhong Ding},
title = {Metal Oxide Oxygen Carriers for Chemical-Looping Combustion},
school = {Carnegie Mellon University},
year = 2012}
@article{kitchin-2015-data-surfac-scien,
author = "John R. Kitchin",
title = {Data Sharing in Surface Science},
journal = "Surface Science ",
volume = "N/A",
pages = "in press",
year = 2015,
doi = {10.1016/j.susc.2015.05.007},
url =
"http://www.sciencedirect.com/science/article/pii/S0039602815001326",
issn = "0039-6028",
keywords = {DESC0004031, early-career, orgmode, Data sharing },
}
@article{kitchin-2015-examp,
author = {Kitchin, John R.},
title = {Examples of Effective Data Sharing in Scientific Publishing},
journal = {ACS Catalysis},
volume = {5},
number = {6},
pages = {3894-3899},
year = 2015,
doi = {10.1021/acscatal.5b00538},
url = { http://dx.doi.org/10.1021/acscatal.5b00538 },
keywords = {DESC0004031, early-career, orgmode, Data sharing },
eprint = { http://dx.doi.org/10.1021/acscatal.5b00538 },
}
@book{kittel-2005-introd-solid,
author = {Charles Kittel},
title = {Introduction to Solid State Physics},
publisher = {Wiley},
year = 2005,
edition = {8th}
}
@misc{xu-suppor,
author = {Zhongnan Xu and Jan Rossmeisl and John R. Kitchin},
title = {Supporting data for: A linear response, {DFT+U} study of trends
in the oxygen evolution activity of transition metal rutile
dioxides. doi:10.5281/zenodo.12635},
keywords = {DESC0004031, early-career, },
year = {2015},
url = {https://zenodo.org/record/12635},
doi = {10.5281/zenodo.12635}
}
@article{ye-2012-proces-charac,
author = {Y. E. Chunbo and Guangwen CHEN and Quan YUAN},
title = {Process Characteristics of \ce{CO2} Absorption By Aqueous
Monoethanolamine in a Microchannel Reactor},
journal = {Chinese Journal of Chemical Engineering},
volume = 20,
number = 1,
pages = {111-119},
year = 2012,
doi = {10.1016/s1004-9541(12)60370-x},
url = {http://dx.doi.org/10.1016/S1004-9541(12)60370-X},
}
@article{yeo-2012-in-situ,
author = {Yeo, Boon Siang and Bell, Alexis T.},
title = {In Situ {R}aman Study of Nickel Oxide and Gold-Supported
Nickel Oxide Catalysts for the Electrochemical Evolution of
Oxygen},
journal = {The Journal of Physical Chemistry C},
volume = 116,
number = 15,
pages = {8394-8400},
year = 2012,
doi = {10.1021/jp3007415},
url = {http://pubs.acs.org/doi/abs/10.1021/jp3007415},
eprint = {http://pubs.acs.org/doi/pdf/10.1021/jp3007415},
}
@article{zhu-2013-sulfur,
author = {Zhu, Qingjun and Wegener, Staci L. and Xie, Chao and Uche,
Obioma and Neurock, Matthew and Marks, Tobin J.},
title = {Sulfur As a Selective "soft" Oxidant for Catalytic Methane
Conversion Probed By Experiment and Theory},
journal = {Nature chemistry},
volume = 5,
pages = {104-109},
year = 2013,
doi = "10.1002/ange.201311111",
url =
"http://www.nature.com/nchem/journal/v5/n2/full/nchem.1527.html",
}
@article{lizzit-2001-surfac-ru,
author = {S. Lizzit and A. Baraldi and A. Groso and K. Reuter and M. V.
Ganduglia-Pirovano and C. Stampfl and M. Scheffler and M.
Stichler and C. Keller and W. Wurth and D. Menzel},
title = {Surface Core-Level Shifts of Clean and Oxygen-Covered
{Ru}(0001)},
journal = {Phys. Rev. B},
volume = 63,
number = 20,
pages = {205419},
year = 2001,
doi = {10.1103/physrevb.63.205419},
url = {http://dx.doi.org/10.1103/physrevb.63.205419},
date_added = {Mon Nov 16 16:28:01 2015},
}
@article{weaver-2011-high-selec,
author = {Jason F. Weaver and Can Hakanoglu and Abbin Antony and Aravind
Asthagiri},
title = {High Selectivity for Primary {C-H} Bond Cleavage of Propane
$\sigma$-complexes on the {PdO}(101) Surface},
keywords = {alkane},
journal = {J. Am. Chem. Soc.},
volume = 133,
number = 40,
pages = {16196-16200},
year = 2011,
doi = {10.1021/ja206599k},
url = {http://dx.doi.org/10.1021/ja206599k},
date_added = {Sat Nov 28 09:10:59 2015},
}
@article{antony-2012-pathw-c,
author = {Abbin Antony and Aravind Asthagiri and Jason F. Weaver},
title = {Pathways for {C-H} Bond Cleavage of Propane $\sigma$-complexes on
{PdO}(101)},
keywords = {alkane},
journal = {Phys. Chem. Chem. Phys.},
volume = 14,
number = 35,
pages = 12202,
year = 2012,
doi = {10.1039/c2cp41900a},
url = {http://dx.doi.org/10.1039/c2cp41900a},
date_added = {Sat Nov 28 09:13:32 2015},
}
@article{wang-2013-immob-co2,
author = {Xianfeng Wang and Novruz G. Akhmedov and Yuhua Duan and David
Luebke and Bingyun Li},
title = {Immobilization of Amino Acid Ionic Liquids Into Nanoporous
Microspheres As Robust Sorbents for CO2 Capture},
journal = {J. Mater. Chem. A},
volume = 1,
number = 9,
pages = 2978,
year = 2013,
doi = {10.1039/c3ta00768e},
url = {http://dx.doi.org/10.1039/C3TA00768E},
date_added = {Thu Dec 3 06:13:09 2015},
}

File diff suppressed because it is too large Load Diff