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

2015-01-31 Thread Erik Hetzner
On Tue, 27 Jan 2015 at 22:37:20 PST, Erik Hetzner wrote: > > […] > > I wrote a parser for pandoc citations (that assumes you start with a > citation string, that is, it doesn’t work unless you have extracted > the citation string from the document): > > https://bitbucket.org/egh/zot4rst/src/ma

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

2015-01-29 Thread Vikas Rawal
For my use case, I find the native Org to Odt export has several limitations: 1. No support for bibtex 2. I end up using quite a bit of LaTeX-specific stuff for formatting tables and graphics. All of that gets messed up when I do Org to Odt export. I agree, a robust org to odt/docx export would

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

2015-01-29 Thread John Kitchin
That could be an option. I was mostly looking at feasibility for org to docx. There is no obvious advantage to go through markdown, I just had some handy machinery in org-ref to export my cite links to the pandoc format in that export. I have since figured out a simple way to insert pandoc citation

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

2015-01-29 Thread Vikas Rawal
> > The conversion is not perfect, but it gets pretty far. Probably not far > enough to use for production except in the simplest cases. > > John, If your main objective is support for citations, why not go from Org to LaTeX, and then use Pandoc to convert from LaTeX to DocX? Is there an adva

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

2015-01-29 Thread John Kitchin
There is a separation between the citation bits in an org-file (whether they are org-links, or the pandoc format, etc...) and the formatted bibliography. org-ref is really focused on providing functionality to insert the citation keys (using reftex, or helm-bibtex right now, but there are many oth

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

2015-01-29 Thread John Kitchin
It turns out to be very easy to get pandoc citations into orgmode using helm-bibtex. It is not even that difficult to make the pandoc citations clickable to get similar features as in org-ref. They just don't have the org-element support. Having tried this, I don't see any obvious advantages over o

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

2015-01-28 Thread Vikas Rawal
> > With the latest version of org-ref, I can automate export from org > through markdown to docx via pandoc like this: Great job, once again! Vikas

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

2015-01-28 Thread John Kitchin
I can see how you could have a command insert links from a zotero database. You just need some way to get a list of the keys for that. it looks like zotxt could provide that. if not, it could be a few sqlite commands to get it. Lets say we have citations like: zotero:zotero-key or [@zotero-key]. T

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

2015-01-28 Thread Matt Price
John, this does look very powerful. Do you see a path forward that would help add zotero support to org-ref, probably using Erik's zotxt library? Does that seem like a worthwhile goal for you? Matt On Wed, Jan 28, 2015 at 6:01 PM, John Kitchin wrote: > With the latest version of org-ref, I

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

2015-01-28 Thread John Kitchin
With the latest version of org-ref, I can automate export from org through markdown to docx via pandoc like this: #+BEGIN_SRC emacs-lisp (defun ox-export-to-docx-and-open () "Export the current org file as a docx via markdown." (interactive) (let* ((bibfile (expand-file-name (car (org-ref-find-b

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

2015-01-28 Thread Matt Price
i think I may have seen it these on the list at one point, but it's very helpful to be reminded. I do think that the default fonts, etc., are a bit of an acquired taste for humanists; and I've gotten used to using custom styles in html & odt for size & placing of images; but even without following

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

2015-01-27 Thread Erik Hetzner
On Tue, 27 Jan 2015 at 09:24:00 PST, Richard Lawrence wrote: > > > Although my home-baked solution presently works for me, I am inclined to > agree. > > I've just had a glance at: http://pandoc.org/README.html#citations > > It looks to me like Pandoc has a quite general solution, and it also >

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

2015-01-27 Thread Richard Lawrence
Rasmus writes: > BTW: Org has an almost-agnostic format for storing citation data via > org-bibtex.el. So perhaps it's easier to go from whatever to > org-bibtex-format and from there to ox-backend-format. I think that's how > pandoc does it as well. Well, that would certainly suit me, as I al

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

2015-01-27 Thread Matt Price
I am very eager to see this work of yours, Christian. I also would very much like to find a way to have a single, well-supported citation framework in org -- I certainly think John's work looks incredible, and zotxt is very powerful, but it would be fantastic if one could just choose a bibliograph

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

2015-01-27 Thread John Kitchin
Christian Moe writes: > Richard Lawrence writes: > >> It looks to me like Pandoc has a quite general solution, and it also >> looks like Org could use Pandoc's citation syntax as-is. I would >> suggest borrowing this syntax as a starting point for building citation >> support into Org. > > It's

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

2015-01-27 Thread Rasmus
Hi, Christian Moe writes: >> Blah blah [see @doe99, pp. 33-35; also @smith04, ch. 1]. > > In my current homebrewn solution for Zotero, I have tried to do > something similarly readable using Org link syntax (sorry, Rasmus!) with > the database entry ID as link target, and parsing the description

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

2015-01-27 Thread Christian Moe
Richard Lawrence writes: > It looks to me like Pandoc has a quite general solution, and it also > looks like Org could use Pandoc's citation syntax as-is. I would > suggest borrowing this syntax as a starting point for building citation > support into Org. It's been years since I looked at Pand

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

2015-01-27 Thread John Kitchin
I have not found the link syntax too constraining. Simple links like the ones I use in org-ref are perfect for simple citation needs. It handles all different kinds of citations (cite, citet, textcite,...) and multiple citations. org-ref automates selection of keys and insertion via reftex or helm.

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

2015-01-27 Thread Rasmus
Hi, Richard Lawrence writes: > Rasmus writes: > >> IMO we /need/ to add proper citation support to Org, preferably with a >> real syntax rather than these link-"solutions" and with good backend >> support (bibtex & Zotero for starters, I guess). >> ... >> /Proper/ citation support (not links) i

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

2015-01-27 Thread Richard Lawrence
Rasmus writes: > IMO we /need/ to add proper citation support to Org, preferably with a > real syntax rather than these link-"solutions" and with good backend > support (bibtex & Zotero for starters, I guess). > ... > /Proper/ citation support (not links) is, IMO, the last thing that is > missing

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

2015-01-27 Thread Christian Moe
Matt Price writes: > On Tue, Jan 27, 2015 at 8:30 AM, Rasmus wrote: > >> Hi, >> >> Christian Moe writes: Actually, Rasmus wrote the following, not I. >> IMO we /need/ to add proper citation support to Org, preferably with a >> real syntax rather than these link-"solutions" and with good backe

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

2015-01-27 Thread Christian Moe
Well, color me embarrassed. I never even noticed the switch to zotxt. And I never tried with Standalone either. Just tinkered happily away with Eric's excellent old solution and Firefox. Maybe I should check out both before posting an obsolute solution with unnecessary dependencies... Will report

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

2015-01-27 Thread Eric S Fraga
On Tuesday, 27 Jan 2015 at 08:12, Matt Price wrote: > For me, the main issue with this route is that I don't understand LaTex at > all, and it seems like there's a bit of a steep learning curve to get to a > working set up. Maybe someone can recommend a good guide for starting out > in LaTex? It

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

2015-01-27 Thread Rasmus
Matt Price writes: > On Tue, Jan 27, 2015 at 8:30 AM, Rasmus wrote: >> #+begin_rant >> >> The current state is a mess and not portable. E.g. there's at least two >> Zotero projects, there's John Kitchin's code, there's ox-bibtex.el (which >> IMO is not suitable for complicated citation requirem

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

2015-01-27 Thread Matt Price
On Tue, Jan 27, 2015 at 8:30 AM, Rasmus wrote: > Hi, > > Christian Moe writes: > > IMO we /need/ to add proper citation support to Org, preferably with a > real syntax rather than these link-"solutions" and with good backend > support (bibtex & Zotero for starters, I guess). > > #+begin_rant > >

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

2015-01-27 Thread Rasmus
Hi, Christian Moe writes: > 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

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

2015-01-27 Thread Albert Krewinkel
Vikas Rawal writes: >> My question: does anyone yet have a workflow that lets them export directly >> to HTML or ODT? > > In my experience, exporting from Org to LateX, and then using pandoc to > convert to odt works better than converting directly from Org to odt. Being one of the authors of

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

2015-01-27 Thread Matt Price
For me, the main issue with this route is that I don't understand LaTex at all, and it seems like there's a bit of a steep learning curve to get to a working set up. Maybe someone can recommend a good guide for starting out in LaTex? It does seem like somehting one should learn, I suppose. On T

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

2015-01-27 Thread Vikas Rawal
> > My question: does anyone yet have a workflow that lets them export directly > to HTML or ODT? In my experience, exporting from Org to LateX, and then using pandoc to convert to odt works better than converting directly from Org to odt. This is particularly the case if you are using cita

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

2015-01-27 Thread Christian Moe
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

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

2015-01-27 Thread Eric S Fraga
On Monday, 26 Jan 2015 at 11:29, Matt Price wrote: [...] > My question: does anyone yet have a workflow that lets them export directly > to HTML or ODT? The following is for MS Word output, not ODT, but you can of course read in Word files in Libreoffice and save as ODT if desired. Although I d

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

2015-01-26 Thread Monroe, Will
Matt, Thanks for sharing this.  I'm afraid that I'm very new at reading Emacs Lisp at this point.  But I appreciate the explanation of your aims and how you've tried to meet them.  I'll try to contribute as I can along the way.  Best regards, Will

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

2015-01-26 Thread Matt Price
Hi will, I haven't gotten very far with this yet, but adding a couple of lines to the definition of org-add-link-type in org-zotxt.el (around line 150, https://bitbucket.org/egh/zotxt-emacs/src/74702e2b2f2aa0427f099eb4fe69dce8709f67fc/org-zotxt.el?at=master) at least allows for unformatted, plain-

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

2015-01-26 Thread Matt Price
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 go