From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: exporting zotxt or orgref links to HTML and ODF Date: Mon, 26 Jan 2015 11:29:01 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11346420d01de0050d90a2b2 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFmXC-00021e-8Z for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 11:29:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YFmXA-0008Pf-4q for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 11:29:06 -0500 Received: from mail-la0-x22c.google.com ([2a00:1450:4010:c03::22c]:47312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YFmX9-0008PE-He for emacs-orgmode@gnu.org; Mon, 26 Jan 2015 11:29:04 -0500 Received: by mail-la0-f44.google.com with SMTP id s18so8626517lam.3 for ; Mon, 26 Jan 2015 08:29:01 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --001a11346420d01de0050d90a2b2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi eveyrone, I've just looked back through my email archives and from what I can tell, almost everyone who uses Org to write papers uses LaTex for the final product. I have never learned to use Latex, mostly because, as a humanist, almost none of my colleagues can use LaTex files, and the same goes for journals I interact with, which generally prefer Word submission(!). Because of this, I am still trying to figure out a way to use org-mode for scholarly writing. At present, I write my first, very rough drafts in Org, then export to ODT and add citations from Zotero (we don't really use Bibtex either); after this step, I can't really go back to Org, which is of course very frustrating. I would prefer to write exclusively in Org, then export to ODT when I have a high-quality draft that I want to share with colleagues; in some cases, I would also like to export directly to HTML for posting on a blog or course website. In fact, one use case that would really help me is a very simple one: when writing course syllabi, I would really like to just get the full references to course readings to show up in HTML exports. My question: does anyone yet have a workflow that lets them export directly to HTML or ODT? I've just tried using zotxt again ( https://bitbucket.org/egh/zotxt-emacs/overview -- 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. =E2=80=9CSubject Objects= .=E2=80=9D Feminist Theory 12, no. 2 (August 1, 2011): 119=E2=80=9345. http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.]] --------------- In HTML, I would like to replace this with something like this: (Suchman 2011) 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: --------------- 1Lucy Suchman, =E2=80=9CSu= bject Objects,=E2=80=9D Feminist Theory 12, no. 2 (August 1, 2011): 119=E2=80=9345, http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml. ------------------------------ 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 --001a11346420d01de0050d90a2b2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi eveyrone,

I've jus= t looked back through my email archives and from what I can tell, almost ev= eryone who uses Org to write papers uses LaTex for the final product.=C2=A0=

I have never learned to use Latex, mostly because, as a huma= nist, almost none of my colleagues can use LaTex files, and the same goes f= or journals I interact with, which generally prefer Word submission(!).=C2= =A0 Because of this, I am still trying to figure out a way to use org-mode = for scholarly writing. At present, I write my first, very rough drafts in O= rg, then export to ODT and add citations from Zotero (we don't really u= se Bibtex either); after this step, I can't really go back to Org, whic= h is of course very frustrating.=C2=A0


I would prefe= r to write exclusively in Org, then export to ODT when I have a high-qualit= y draft that I want to share with colleagues; in some cases, I would also l= ike to export directly to HTML for posting on a blog or course website. In = fact, one use case that would really help me is a very simple one: when wri= ting course syllabi, I would really like to just get the full references to= course readings to show up in HTML exports.=C2=A0

My qu= estion: does anyone yet have a workflow that lets them export directly to H= TML or ODT?=C2=A0

I've just tried using zotxt again = (https://bitbuck= et.org/egh/zotxt-emacs/overview -- first time in a while); it is remark= ably easy to use in Org itself.=C2=A0 By default, though, the links simply = aren't handled in the HTML and ODT exports, and so the cites will be co= mpletely absent.

Here is the text inserted by zotxt for a= single citation:

----------------

[[zotero://select/items/0_= TI27HJ5I][Suchman, Lucy. =E2=80=9CSubject Objects.=E2=80=9D Feminist Theory= 12, no. 2 (August 1, 2011): 119=E2=80=9345. http://resolver.sch= olarsportal.info/resolve/14647001/v12i0002/119_so.xml.]]
----------= -----

In HTML, I would like to replace this with somethin= g like this:

(<a href=3D"#BibSuchman2011">= ;Suchman 2011</a>)

and then have Org gen= erate 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 d= o.

For ODT< it seems a little more complicated. Here i= s the rather lengthy equivalent that Zotero itself produces for my default = style (Chicago) in Libreoffice:
---------------
<text:note text:id= =3D"ftn0" text:note-class=3D"footnote"><text:note= -citation>1</text:note-citation><text:note-body><text:p t= ext:style-name=3D"Footnote"><text:reference-mark-start text= :name=3D"ZOTERO_ITEM CSL_CITATION {&quot;citationID&quot;:&= ;quot;5xzXuF2I&quot;,&quot;properties&quot;:{&quot;formatte= dCitation&quot;:&quot;{\\rtf Lucy Suchman, \\uc0\\u8220{}Subject Ob= jects,\\uc0\\u8221{} \\i Feminist Theory\\i0{} 12, no. 2 (August 1, 2011): = 119\\uc0\\u8211{}45, http://resolver.scholarsportal.in= fo/resolve/14647001/v12i0002/119_so.xml.}&quot;,&quot;plainCita= tion&quot;:&quot;Lucy Suchman, =E2=80=9CSubject Objects,=E2=80=9D F= eminist Theory 12, no. 2 (August 1, 2011): 119=E2=80=9345, http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.x= ml.&quot;},&quot;citationItems&quot;:[{&quot;id&quo= t;:149,&quot;uris&quot;:[&quot;http://zotero.org/users/20/items/TI27HJ5I&a= mp;quot;],&quot;uri&quot;:[&quot;http://zotero.org/users/20/items/TI27= HJ5I&quot;],&quot;itemData&quot;:{&quot;id&quot;:14= 9,&quot;type&quot;:&quot;article-journal&quot;,&quot;ti= tle&quot;:&quot;Subject objects&quot;,&quot;container-title= &quot;:&quot;Feminist Theory&quot;,&quot;page&quot;:&am= p;quot;119-145&quot;,&quot;volume&quot;:&quot;12&quot;,= &quot;issue&quot;:&quot;2&quot;,&quot;URL&quot;:&am= p;quot;http://resolver.scholarsportal.info/resolve/14647= 001/v12i0002/119_so.xml&quot;,&quot;ISSN&quot;:&quot;14= 647001&quot;,&quot;author&quot;:[{&quot;family&quot;:&a= mp;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/cs= l-citation.json&quot;} RNDuhNYYpC1hN"/><text:span text:s= tyle-name=3D"T3">Lucy Suchman, =E2=80=9CSubject Objects,=E2=80= =9D </text:span><text:span text:style-name=3D"T4">Fem= inist Theory</text:span><text:span text:style-name=3D"T5"= ;> 12, no. 2 (August 1, 2011): 119=E2=80=9345, http://resolver= .scholarsportal.info/resolve/14647001/v12i0002/119_so.xml.</text:spa= n><text:reference-mark-end text:name=3D"ZOTERO_ITEM CSL_CITATION= {&quot;citationID&quot;:&quot;5xzXuF2I&quot;,&quot;pro= perties&quot;:{&quot;formattedCitation&quot;:&quot;{\\rtf L= ucy Suchman, \\uc0\\u8220{}Subject Objects,\\uc0\\u8221{} \\i Feminist Theo= ry\\i0{} 12, no. 2 (August 1, 2011): 119\\uc0\\u8211{}45, http://resolver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xm= l.}&quot;,&quot;plainCitation&quot;:&quot;Lucy Suchman,= =E2=80=9CSubject Objects,=E2=80=9D Feminist Theory 12, no. 2 (August 1, 20= 11): 119=E2=80=9345, http://resolver.scholarsportal.in= fo/resolve/14647001/v12i0002/119_so.xml.&quot;},&quot;citationI= tems&quot;:[{&quot;id&quot;:149,&quot;uris&quot;:[&= quot;http:/= /zotero.org/users/20/items/TI27HJ5I&quot;],&quot;uri&quot;:= [&quot;= http://zotero.org/users/20/items/TI27HJ5I&quot;],&quot;itemData= &quot;:{&quot;id&quot;:149,&quot;type&quot;:&quot;a= rticle-journal&quot;,&quot;title&quot;:&quot;Subject object= s&quot;,&quot;container-title&quot;:&quot;Feminist Theory&a= mp;quot;,&quot;page&quot;:&quot;119-145&quot;,&quot;vol= ume&quot;:&quot;12&quot;,&quot;issue&quot;:&quot;2&= amp;quot;,&quot;URL&quot;:&quot;http://resol= ver.scholarsportal.info/resolve/14647001/v12i0002/119_so.xml&quot;,= &quot;ISSN&quot;:&quot;14647001&quot;,&quot;author&= quot;:[{&quot;family&quot;:&quot;Suchman&quot;,&quot;gi= ven&quot;:&quot;Lucy&quot;}],&quot;issued&quot;:{&q= uot;date-parts&quot;:[[&quot;2011&quot;,8,1]]}}}],&quot;sch= ema&quot;:&quot;https://github.com/citatio= n-style-language/schema/raw/master/csl-citation.json&quot;} RNDuhNY= YpC1hN"/></text:p></text:note-body></text:note>------------------------------

I'm not sure what th= e best way to do this is; it may be that zotxt could be extended to get zot= ero to do the heavy lifting here.=C2=A0

I know Erik H re= ads this list, so if you have any suggestions, Erik, I would love to hear t= hem.=C2=A0 But maybe other people also have suggestions about modifying exp= ort filters - -that would also be really helpful for me.=C2=A0 Thanks as al= ways,

Matt

--001a11346420d01de0050d90a2b2--