On Tue, Mar 17, 2015 at 12:26 PM, Richard Lawrence <richard.lawrence@berkeley.edu> wrote:
Hi Andreas,

Andreas Leha <andreas.leha@med.uni-goettingen.de> writes:

> I have been following this thread from (quite) some distance as I am
> very interested in more general citation support from orgmode.  Please
> allow some basic questions:
>
> 1. For the LaTeX user
> This change means that the LaTeX user can use org syntax for citations
> rather than bare LaTeX (or links of some sort)?
>
> And this org syntax could then (I guess is the future) be extended with
> additional link-like functionality (maybe similar to org-ref)?

Yes, exactly.

> 2. The non-LaTeX exports
> These are all treated the same and will contain just text, that is
> produced to mimic LaTeX's output to some extent?

Well, that depends on what you mean by `just' text.  Citations can still
contain or be wrapped in markup that is specific to the output format,
like span tags or anchor tags in HTML.

> I think I read some question about e.g. having zotero handling the
> citations in the odt export.  Are there plans for such thing?

Maybe.  As far as I know, no one has done any work on Zotero integration
yet.  But Vaidheeswaran did some work to make JabRef (a different
reference database) handle citations in ODT export.

> 3. The database
> As I understand the database currently is either bibtex or org?

Yes.

> But that list could in principle be extended to zotero ... ?

Yes, in principle.  Any database that can export to bibtex format is
supported to some degree, if we support that format.  Whether we want to
integrate with any particular reference database more tightly than that
hasn't really been discussed, as far as I'm aware.  I don't have a good
sense of what other software Org users rely on for this purpose.

Just a note about Zotero:  I think for most of us, the reason to export into ODT and/or DOC is to circulate a paper either for review or collaboration.  Either case will likely involve some revision to citations, which would ideally be handled through Zotero.  for this to work properly, we would want to export a full Zotero citation.  To do that, we would likely need to speak directly to Zotero iteself.  Here is a snippet of xml from a Zotero-generated citation in an odt document:
--------------
      <text:p text:style-name="P1">Here is a cite.
      <text:note text:id="ftn0" text:note-class="footnote">
        <text:note-citation>1
        </text:note-citation>
        <text:note-body>
          <text:p text:style-name="Footnote">
            <text:reference-mark-start text:name="ZOTERO_ITEM CSL_CITATION {&quot;citationID&quot;:&quot;ECYx4ePh&quot;,&quot;properties&quot;:{&quot;formattedCitation&quot;:&quot;{\\rtf Lea Schick, \\uc0\\u8220{}Bodies, Embodiment and Ubiquitous Computing\\uc0\\u8221{} 21, no. 1 (March 1, 2010): 63\\uc0\\u8211{}69, http://resolver.scholarsportal.info/resolve/14626268/v21i0001/63_beauc.xml.}&quot;,&quot;plainCitation&quot;:&quot;Lea Schick, “Bodies, Embodiment and Ubiquitous Computing” 21, no. 1 (March 1, 2010): 63–69, http://resolver.scholarsportal.info/resolve/14626268/v21i0001/63_beauc.xml.&quot;},&quot;citationItems&quot;:[{&quot;id&quot;:5262,&quot;uris&quot;:[&quot;http://zotero.org/users/20/items/AJGK5FDE&quot;],&quot;uri&quot;:[&quot;http://zotero.org/users/20/items/AJGK5FDE&quot;],&quot;itemData&quot;:{&quot;id&quot;:5262,&quot;type&quot;:&quot;article-journal&quot;,&quot;title&quot;:&quot;Bodies, embodiment and ubiquitous computing&quot;,&quot;page&quot;:&quot;63-69&quot;,&quot;volume&quot;:&quot;21&quot;,&quot;issue&quot;:&quot;1&quot;,&quot;URL&quot;:&quot;http://resolver.scholarsportal.info/resolve/14626268/v21i0001/63_beauc.xml&quot;,&quot;ISSN&quot;:&quot;14626268&quot;,&quot;author&quot;:[{&quot;family&quot;:&quot;Schick&quot;,&quot;given&quot;:&quot;Lea&quot;}],&quot;issued&quot;:{&quot;date-parts&quot;:[[&quot;2010&quot;,3,1]]}}}],&quot;schema&quot;:&quot;https://github.com/citation-style-language/schema/raw/master/csl-citation.json&quot;} RNDXQmSceXdkV"/>
            <text:span text:style-name="T1">Lea Schick, “Bodies, Embodiment and Ubiquitous Computing” 21, no. 1 (March 1, 2010): 63–69, http://resolver.scholarsportal.info/resolve/14626268/v21i0001/63_beauc.xml.
            </text:span>
            <text:reference-mark-end text:name="ZOTERO_ITEM CSL_CITATION {&quot;citationID&quot;:&quot;ECYx4ePh&quot;,&quot;properties&quot;:{&quot;formattedCitation&quot;:&quot;{\\rtf Lea Schick, \\uc0\\u8220{}Bodies, Embodiment and Ubiquitous Computing\\uc0\\u8221{} 21, no. 1 (March 1, 2010): 63\\uc0\\u8211{}69, http://resolver.scholarsportal.info/resolve/14626268/v21i0001/63_beauc.xml.}&quot;,&quot;plainCitation&quot;:&quot;Lea Schick, “Bodies, Embodiment and Ubiquitous Computing” 21, no. 1 (March 1, 2010): 63–69, http://resolver.scholarsportal.info/resolve/14626268/v21i0001/63_beauc.xml.&quot;},&quot;citationItems&quot;:[{&quot;id&quot;:5262,&quot;uris&quot;:[&quot;http://zotero.org/users/20/items/AJGK5FDE&quot;],&quot;uri&quot;:[&quot;http://zotero.org/users/20/items/AJGK5FDE&quot;],&quot;itemData&quot;:{&quot;id&quot;:5262,&quot;type&quot;:&quot;article-journal&quot;,&quot;title&quot;:&quot;Bodies, embodiment and ubiquitous computing&quot;,&quot;page&quot;:&quot;63-69&quot;,&quot;volume&quot;:&quot;21&quot;,&quot;issue&quot;:&quot;1&quot;,&quot;URL&quot;:&quot;http://resolver.scholarsportal.info/resolve/14626268/v21i0001/63_beauc.xml&quot;,&quot;ISSN&quot;:&quot;14626268&quot;,&quot;author&quot;:[{&quot;family&quot;:&quot;Schick&quot;,&quot;given&quot;:&quot;Lea&quot;}],&quot;issued&quot;:{&quot;date-parts&quot;:[[&quot;2010&quot;,3,1]]}}}],&quot;schema&quot;:&quot;https://github.com/citation-style-language/schema/raw/master/csl-citation.json&quot;} RNDXQmSceXdkV"/>
          </text:p>
        </text:note-body>
      </text:note>
      </text:p>
-------------------

Among other pieces of data, it contains a reference to a zotero URL which i don't think org-citeproc will know about.  Can you describe what would be necessary to get text like this into an ODT, using ythe code you've been working on?  THis conversation has gone a bit beyond my competence/comfort level, but I would be interested i nhelping a bit as soon as our semester is over here (just a couple of weeks left). 

Thanks,
Matt



> And any other database X (zotero ...) would need translations X ->
> bibtex to make the LaTeX export work with it as well?

Not necessarily.  Obviously, if you want to have bibtex/biblatex do the
processing of the citations and bibliography in the document, that is
required.  But there is another approach, which is the one that Pandoc
takes: directly rendering citations and bibliography into the output
.tex file.  If you're not relying on bibtex/biblatex to do the
rendering, you don't need to have the database in its format.

The org-citeproc tool I've been working on supports reading databases in
any of these formats (via pandoc-citeproc):

Format            File extension
------------      --------------
MODS              .mods
BibLaTeX          .bib
BibTeX            .bibtex
RIS               .ris
EndNote           .enl
EndNote XML       .xml
ISI               .wos
MEDLINE           .medline
Copac             .copac
JSON citeproc     .json