emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] org-cite and org-citeproc


From: Richard Lawrence
Subject: [O] org-cite and org-citeproc
Date: Sat, 28 Mar 2015 11:53:10 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hi everyone,

I thought I should send an update to let you know that org-citeproc [1],
the command-line citation processing tool I've been working on, now
supports multi-cites.  I believe that means it is now capable of
processing all citations in the basic citation syntax.  It can output
plain text, HTML, and ODT (and a Pandoc native format, mostly useful for
debugging).

org-citeproc hooks up with the Org exporters via Aaron Ecay's org-cite [2]
library, so that it is possible to export a document containing
citations as text, HTML, or ODT.  A sample Org document, bib file, CSL file,
and outputs are attached.

I am pretty convinced at this point that the approach that the
combination of org-cite and org-citeproc represents is viable, even if
org-citeproc is not the tool (or one of the tools) that the Org
community eventually adopts.  If you'd like to help out with developing
it, here are some things that would be useful:

1) If you are comfortable building a Haskell program and running an
unstable branch of Org, it would be great to have people test org-cite
and org-citeproc with more realistic documents, and with other CSL
files.  The basic things work, but there are surely many corner cases to
be weeded out.

2) If you know Haskell, I would appreciate feedback on the org-citeproc
code.  I am pretty new to Haskell and suspect there is a lot in my code
that could be cleaned up or made more idiomatic.

3) If you know Elisp, there are plenty of things still TODO in
org-cite.el.  I haven't hacked on this much except to get it working
with org-citeproc.

4) I would also be interested in seeing a parallel implementation in
org-cite of citation processing via Zotero.  I think the infrastructure
org-cite provides should make it relatively easy to get something like
this working, perhaps in combination with the zotxt plugin.  This would
provide two benefits: it would help prove the org-cite API is general
enough, and it would provide an alternative to org-citeproc for people
who already have a CSL implementation (namely Zotero) installed and
don't want to build/install a separate Haskell program just to process
citations.

Here's the code:

[1] https://github.com/wyleyr/org-citeproc
[2] https://github.com/wyleyr/org-mode  (This branch contains the version
of org-cite needed to work with org-citeproc.)

Thanks for looking!

Best,
Richard

Attachment: testdoc.org
Description: Test document

Attachment: testdoc.bib
Description: Bibtex database for test document

Attachment: testdoc.txt
Description: Test document rendered as text

Org-Citeproc tests

Table of Contents

1 Org markup

1.1 Simple citations

1.1.1 Parenthetical

Some great ideas occur in books (Brandom 1994). Others in articles (Hofweber 2007). Still others are in collections of previously published work (Russell 2001), or in conference proceedings (Rogers 1996); sometimes they are the proceedings themselves (Rogers and Kepser 2007). Sometimes, a great idea can be found in a dissertation (Caponigro 2003), and sometimes on just a handout (Ross 1985). Some remain forever unpublished (Faraci 1970).

1.1.2 In-text

Some great ideas occur in books, such as Brandom (1994). Others in articles, such as Hofweber (2007). Still others are in collections of previously published work, such as Russell (2001), or in conference proceedings like Rogers (1996); sometimes they are the proceedings themselves such as Rogers and Kepser (2007). Sometimes, a great idea can be found in a dissertation, such as Caponigro (2003), and sometimes on just a handout like Ross (1985). Some remain forever unpublished, such as Faraci (1970).

1.1.3 With prefix and suffix data

Some great ideas occur in books (see Brandom 1994 chapter 7). Others in articles (Hofweber 2007 section 1). Still others are in collections of previously published work, such as Russell (2001 cf. section 3), or in conference proceedings (e.g., Rogers 1996). Sometimes, a great idea can be found in a dissertation, like an idea by Caponigro (see 2003 chapter 1), and sometimes on just a handout, like others by Ross (e.g., 1985).

1.1.4 Citations to works with tricky field data

In some cases, the authors have names which are tricky to represent in BibTeX, like N. D. Belnap Jr. and Steel (1976), or Väänäänen (2011). den Dikken, Meinunger, and Wilder (2000) has a lead author that should probably be capitalized in sentence-initial position. Sometimes, it's the journal name which is difficult (N. Belnap 1970).

1.2 Multi-cite citations

1.2.1 Parenthetical, keys only

Some great ideas occur in books, articles, or collections (Brandom 1994; Hofweber 2007; Russell 2001).

Some occur in conference proceedings or dissertations (Rogers 1996; Rogers and Kepser 2007; Caponigro 2003), and sometimes remain unpublished (Ross 1985; Faraci 1970).

1.2.2 Parenthetical, with prefix and suffix data for individual works

Some great ideas occur in books, articles, or collections (see Brandom 1994 chapter 7; also Hofweber 2007; Russell 2001 is the locus classicus). Some occur in conference proceedings or dissertations (Rogers 1996; for an overview, see Rogers and Kepser 2007 and references therein).

1.2.3 Parenthetical, with common prefix and suffix data

Some great ideas occur in books, articles, or collections (For more on this topic, see Brandom 1994; Hofweber 2007; Russell 2001, and references therein).

1.2.4 All in-text, keys only

Some great ideas occur in books, articles, or collections such as Brandom (1994), Hofweber (2007), Russell (2001).

Some occur in conference proceedings or dissertations like Rogers (1996), Rogers and Kepser (2007), Caponigro (2003), and sometimes remain unpublished, like Ross (1985), Faraci (1970).

1.2.5 All in-text, with common prefix and suffix

Some great ideas occur in books, articles, or collections. See: Brandom (1994), Hofweber (2007), Russell (2001), and references therein.

Some occur in conference proceedings or dissertations. For more on this topic, see Rogers (1996), Rogers and Kepser (2007), Caponigro (2003).

2 References

Belnap, Nuel. 1970. “Conditional Assertion and Restricted Quantification.” Noûs 4 (1): 1–12.

Belnap, Nuel D., Jr., and Thomas B. Steel Jr. 1976. The Logic of Questions and Answers. Yale University Press.

Brandom, Robert. 1994. Making It Explicit. Harvard University Press.

Caponigro, Ivano. 2003. “Free Not to Ask: On the Semantics of Free Relatives and Wh-Words Cross-Linguistically.” PhD thesis, University of California, Los Angeles.

den Dikken, Marcel, André Meinunger, and Chris Wilder. 2000. “Pseudoclefts and Ellipsis.” Studia Linguistica 54: 41–89.

Faraci, R. 1970. “On the Deep Question of Pseudo-Clefts.”

Hofweber, Thomas. 2007. “Innocent Statements and Their Metaphysically Loaded Counterparts.” Philosophers’ Imprint 7 (1).

Rogers, James. 1996. “A Model-Theoretic Framework for Theories of Syntax.” In Proceedings of the 34th Annual Meeting on Association for Computational Linguistics, 10–16. Santa Cruz, CA, USA: Association for Computational Linguistics.

Rogers, James, and Stephan Kepser, eds. 2007. Model-Theoretic Syntax at 10. Association for Logic, Language; Information.

Ross, John R. 1985. “The Source of Pseudocleft Sentences.” Handout of a talk given at New York University.

Russell, Bertrand. 2001. “Descriptions.” In The Philosophy of Language, edited by A. P. Martinich, Fourth, 221–27. Oxford University Press.

Väänäänen, Jouko. 2011. Models and Games. Vol. 132. Cambridge Studies in Advanced Mathematics. Cambridge University Press.

Author: Richard Lawrence

Created: 2015-03-28 Sat 11:19

Emacs 23.4.1 (Org mode 8.3beta)

Validate

Attachment: testdoc.odt
Description: Test document rendered as ODT


reply via email to

[Prev in Thread] Current Thread [Next in Thread]