emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] exporting zotxt or orgref links to HTML and ODF


From: Christian Moe
Subject: Re: [O] exporting zotxt or orgref links to HTML and ODF
Date: Tue, 27 Jan 2015 10:23:26 +0100
User-agent: mu4e 0.9.9.5-dev6; emacs 24.4.1

Matt Price writes:

> My question: does anyone yet have a workflow that lets them export directly
> to HTML or ODT?

Hi, Matt,

Yes, now I have not just a workflow, but a code solution for
Org/Zotero/ODT export that has been tried and tested for a while. It now
supports multiple references in one citation, prefixes, suffixes,
locators, and year-only citations, and produces 'live' Zotero refmarks
in ODT, so you can do all the changes you want in LibreOffice
afterward. It also does some very limited but useful things for html
(DOI links and links that will work on Wordpress blogs with Katie
Seaborn's ZotPress extension).

It depends on Eric Hetzner's excellent zotero-plain and org-zotero
packages, and hence on the MozRepl extension on the Firefox side, though
you can use the ODT export functionality itself without those
dependencies.

I haven't yet announced it on the list, for three reasons. 1) Not very
polished. There's some messy code, a poor man's user interface, and no
editing support for multiple citations (but support for exporting
them!). 2) It's part of a more ambitious project I set myself for an
all-round citation system that I never got on with. 3) It uses this cool
idea I had for how to use citation links differently, but it imposes
certain syntax conventions on the user, and they may yet change in
backward-incompatible ways if I develop this further.

If this sounds interesting, I can post the code here 'as is' for you to
try out, but I'd better update the docs first, which could take a day or
two.

Yours,
Christian


> I've just tried using zotxt again (
> https://bitbucket.org/egh/zotxt-emacs/overview[1] -- first time in a while);
> it is remarkably easy to use in Org itself.  By default, though, the links
> simply aren't handled in the HTML and ODT exports, and so the cites will be
> completely absent.
>
> Here is the text inserted by zotxt for a single citation:
>
> ----------------
>
> [[zotero://select/items/0_TI27HJ5I][Suchman, Lucy. “Subject Objects.”
> Feminist Theory 12, no. 2 (August 1, 2011): 119–45.
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.[2]]]
> ---------------
>
> In HTML, I would like to replace this with something like this:
>
> (<a href="#BibSuchman2011">Suchman 2011</a>)
>
> and then have Org generate a bibligraphy somewhere, a bit like org-ref
> seems to do, It would be nice if I could steal the styles from somehwere,
> the way org-ref seems to do.
>
> For ODT< it seems a little more complicated. Here is the rather lengthy
> equivalent that Zotero itself produces for my default style (Chicago) in
> Libreoffice:
> ---------------
> <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;5xzXuF2I&quot;,&quot;properties&quot;:{&quot;formattedCitation&quot;:&quot;{\\rtf
> Lucy Suchman, \\uc0\\u8220{}Subject Objects,\\uc0\\u8221{} \\i Feminist
> Theory\\i0{} 12, no. 2 (August 1, 2011): 119\\uc0\\u8211{}45,
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.[3]}&quot;,&quot;plainCitation&quot;:&quot;Lucy
> Suchman, “Subject Objects,” Feminist Theory 12, no. 2 (August 1, 2011):
> 119–45,
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.&quot;[4]
> },&quot;citationItems&quot;:[{&quot;id&quot;:149,&quot;uris&quot;:[&quot;
> http://zotero.org/users/20/items/TI27HJ5I&quot;[5]],&quot;uri&quot;:[&quot;
> http://zotero.org/users/20/items/TI27HJ5I&quot;[6]],&quot;itemData&quot;:{&quot;id&quot;:149,&quot;type&quot;:&quot;article-journal&quot;,&quot;title&quot;:&quot;Subject
> objects&quot;,&quot;container-title&quot;:&quot;Feminist
> Theory&quot;,&quot;page&quot;:&quot;119-145&quot;,&quot;volume&quot;:&quot;12&quot;,&quot;issue&quot;:&quot;2&quot;,&quot;URL&quot;:&quot;
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml&quot[7]
> ;,&quot;ISSN&quot;:&quot;14647001&quot;,&quot;author&quot;:[{&quot;family&quot;:&quot;Suchman&quot;,&quot;given&quot;:&quot;Lucy&quot;}],&quot;issued&quot;:{&quot;date-parts&quot;:[[&quot;2011&quot;,8,1]]}}}],&quot;schema&quot;:&quot;
> https://github.com/citation-style-language/schema/raw/master/csl-citation.json&quot;[8]}
> RNDuhNYYpC1hN"/><text:span text:style-name="T3">Lucy Suchman, “Subject
> Objects,” </text:span><text:span text:style-name="T4">Feminist
> Theory</text:span><text:span text:style-name="T5"> 12, no. 2 (August 1,
> 2011): 119–45,
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.[9]</text:span><text:reference-mark-end
> text:name="ZOTERO_ITEM CSL_CITATION
> {&quot;citationID&quot;:&quot;5xzXuF2I&quot;,&quot;properties&quot;:{&quot;formattedCitation&quot;:&quot;{\\rtf
> Lucy Suchman, \\uc0\\u8220{}Subject Objects,\\uc0\\u8221{} \\i Feminist
> Theory\\i0{} 12, no. 2 (August 1, 2011): 119\\uc0\\u8211{}45,
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.[10]}&quot;,&quot;plainCitation&quot;:&quot;Lucy
> Suchman, “Subject Objects,” Feminist Theory 12, no. 2 (August 1, 2011):
> 119–45,
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.&quot;[11]
> },&quot;citationItems&quot;:[{&quot;id&quot;:149,&quot;uris&quot;:[&quot;
> http://zotero.org/users/20/items/TI27HJ5I&quot;[12]],&quot;uri&quot;:[&quot;
> http://zotero.org/users/20/items/TI27HJ5I&quot;[13]],&quot;itemData&quot;:{&quot;id&quot;:149,&quot;type&quot;:&quot;article-journal&quot;,&quot;title&quot;:&quot;Subject
> objects&quot;,&quot;container-title&quot;:&quot;Feminist
> Theory&quot;,&quot;page&quot;:&quot;119-145&quot;,&quot;volume&quot;:&quot;12&quot;,&quot;issue&quot;:&quot;2&quot;,&quot;URL&quot;:&quot;
> http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml&quot[14]
> ;,&quot;ISSN&quot;:&quot;14647001&quot;,&quot;author&quot;:[{&quot;family&quot;:&quot;Suchman&quot;,&quot;given&quot;:&quot;Lucy&quot;}],&quot;issued&quot;:{&quot;date-parts&quot;:[[&quot;2011&quot;,8,1]]}}}],&quot;schema&quot;:&quot;
> https://github.com/citation-style-language/schema/raw/master/csl-citation.json&quot;[15]}
> RNDuhNYYpC1hN"/></text:p></text:note-body></text:note>
> ------------------------------
>
> I'm not sure what the best way to do this is; it may be that zotxt could be
> extended to get zotero to do the heavy lifting here.
>
> I know Erik H reads this list, so if you have any suggestions, Erik, I
> would love to hear them.  But maybe other people also have suggestions
> about modifying export filters - -that would also be really helpful for
> me.  Thanks as always,
>
> Matt



reply via email to

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