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 ras...@gmx.us wrote: Hi, Christian Moe m...@christianmoe.com 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

Re: [O] question about org-element-map missing link in caption

2015-01-27 Thread John Kitchin
Thanks that is what I needed! I tried it, and indeed the links in captions are found, but something is still not right. The :begin properties of the links in the caption seem to be relative to the point after the : in the caption. That isn't obvious and makes it hard to store a marker to the

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

2015-01-27 Thread Rasmus
Matt Price mopto...@gmail.com writes: On Tue, Jan 27, 2015 at 8:30 AM, Rasmus ras...@gmx.us 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

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

Re: [O] HTML -- Org-mode?

2015-01-27 Thread Willem Rein Oudshoorn
Matt Price mopto...@gmail.com writes: Thank you Willem, This looks very helpful. I am trying the code out in a scratch buffer and I am unable to gnerate org syntax, e.g. with this test string: (h-2-o-insert-org-source-for-html pa href=\http://example.org/\;hello/a span

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 do

Re: [O] org-clock-select-task: how does it work?

2015-01-27 Thread Sebastien Vauban
Peter Münster wrote: On Sat, Jan 24 2015, Peter Münster wrote: - There are duplicates in the list. Not reproducible. I still do have duplicates in my list as well. It never has been fixed, but I don't have either a reproducible recipe. See

Re: [O] [PATCH] Find a link after point in `org-open-at-point'

2015-01-27 Thread Samuel Loury
Hi, Nicolas Goaziou m...@nicolasgoaziou.fr writes: Samuel Loury konubi...@gmail.com writes: I would like to propose a patch for `org-open-at-point' to find a link after point when called inside a paragraph. It had this behavior at some time and I think lost it during the org-element

Re: [O] HTML -- Org-mode?

2015-01-27 Thread Albert Krewinkel
Matt Price mopto...@gmail.com writes: Looks like I asked this about a year ago and didn't follow up on it. Does anyone know a way to generate org-mode syntax from an html string? My usual answer to this is Pandoc together with Pandoc-mode. Wheather or not this counts as done directly in

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] HTML -- Org-mode?

2015-01-27 Thread Willem Rein Oudshoorn
Matt Price mopto...@gmail.com writes: Hmm, Looks like I asked this about a year ago and didn't follow up on it. Does anyone know a way to generate org-mode syntax from an html string? I would like to extend zotxt slightly (see my last post) and at present zotxt can pull citations 7

Re: [O] HTML -- Org-mode?

2015-01-27 Thread Eric S Fraga
On Monday, 26 Jan 2015 at 15:15, Matt Price wrote: Hmm, Looks like I asked this about a year ago and didn't follow up on it. Does anyone know a way to generate org-mode syntax from an html string? I would like to extend zotxt slightly (see my last post) and at present zotxt can If you see

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

2015-01-27 Thread Rasmus
Hi, Christian Moe m...@christianmoe.com 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

Re: [O] question about org-element-map missing link in caption

2015-01-27 Thread John Kitchin
Thanks. It looks like `org-element-secondary-p' is upstream of my org version (8.2.10) but I look forward to seeing it work in the future! BTW, the application of this is in checking cite/ref/label links for correctness in org-buffers. It is not uncommon to have these in figure/table captions. I

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 been years

Re: [O] question about org-element-map missing link in caption

2015-01-27 Thread Nicolas Goaziou
John Kitchin johnrkitc...@gmail.com writes: hmm... Is there any way to tell when a link in in an affiliate? so we can tell when we cannot trust buffer positions? There is `org-element-secondary-p'. Maybe even better fix the implementation to add the found buffer positions to some affiliate

Re: [O] save folded state

2015-01-27 Thread John Kitchin
yes, I meant programatically. I was having some issue in selecting contex using commands that grab what is visible. So for things inside a folded section it was not grabbing the right context. I solved it by doing something similar to what you describe, i.e. a tempbuffer. lentic looks pretty

[O] [bug, ox-ascii][PATCH] description list and long links

2015-01-27 Thread Rasmus
Hi, Consider the following example: --8---cut here---start-8--- (with-temp-buffer (require 'ox-ascii) (insert - [[http://www.npr.org/blogs/monkeysee/2009/03/a_very_long_url_makes_a_very_s.html][A label with a long link]] :: Lorem ipsum dolor sit

Re: [O] HTML -- Org-mode?

2015-01-27 Thread Matt Price
On Tue, Jan 27, 2015 at 1:59 PM, Willem Rein Oudshoorn wouds...@xs4all.nl wrote: Matt Price mopto...@gmail.com writes: Thank you Willem, This looks very helpful. I am trying the code out in a scratch buffer and I am unable to gnerate org syntax, e.g. with this test string:

Re: [O] Japanese popularity of orgmode

2015-01-27 Thread Waldemar Quevedo
Ishikawa-san I know a super student. He wrote his thesis using Emacs with org-mode! Sounds interesting, by any chance is it on Github or somewhere publicly available? By the way I live in Tokyo, would be great to attend one of these Emacs+Org mode meetups in Kyoto or Tokyo! Japanese no problem

[O] Buffer positions from `org-element-map'?

2015-01-27 Thread Charles C. Berry
I'd like to be able to determine the buffer position of (say) inline src blocks as in the following and operate on them using `org-element-map'. This might enable modification and replacement of a few objects in a large buffer. What I would like is to have the same values of :begin as would be

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

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

[O] Japanese popularity of orgmode

2015-01-27 Thread Tory S. Anderson
There seems to be (and has been for a while) a growing Japanese presence online with orgmode materials, documentation, addons, etc. Most recenlty I found this blog: http://paper.li/highfrontier/1300501273 . I had also noticed many of the page titles on the orgmode website/wiki had Japanese

Re: [O] question about org-element-map missing link in caption

2015-01-27 Thread Nicolas Goaziou
John Kitchin johnrkitc...@gmail.com writes: I tried it, and indeed the links in captions are found, but something is still not right. The :begin properties of the links in the caption seem to be relative to the point after the : in the caption. That isn't obvious and makes it hard to store a

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

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 ras...@gmx.us wrote: Hi, Christian Moe m...@christianmoe.com 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

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 Pandoc,

Re: [O] save folded state

2015-01-27 Thread Phillip Lord
You mean programmatically? Is folding not just implemented with invisible overlays? If so, why do you need to change this to get context? You can try setting buffer-invisibility-spec temporarily. For example, run this function in a folded org-mode buffer. (defun temp () (interactive)

Re: [O] question about org-element-map missing link in caption

2015-01-27 Thread Nicolas Goaziou
Hello, John Kitchin johnrkitc...@gmail.com writes: In the following org document, org-element-map only finds one link, but the buffer acts like there are two links. The free link is found, but the link label buried in the caption is not found. However, it exports correctly, and the caption

Re: [O] Requesting some help with scheduled repeated tasks

2015-01-27 Thread Samuel Loury
Sagar Shankar sa...@scubed.in writes: Thanks Christopher, the latter option seems to accomplish what I require though not very elegant This discussion is also about this issue. I think you'll find it interested. http://mid.gmane.org/871tp74ic2@konixwork.incubateur.ens-lyon.fr --

Re: [O] HTML -- Org-mode?

2015-01-27 Thread Matt Price
Thank you Willem, This looks very helpful. I am trying the code out in a scratch buffer and I am unable to gnerate org syntax, e.g. with this test string: (h-2-o-insert-org-source-for-html pa href=\http://example.org/\;hello/a span style=\font-style:italic;\worldbr/ foo/span/p ) Am I doing

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

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 richard.lawre...@berkeley.edu 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

Re: [O] Buffer positions from `org-element-map'?

2015-01-27 Thread Nicolas Goaziou
Hello, Charles C. Berry ccbe...@ucsd.edu writes: What I would like is to have the same values of :begin as would be obtained by placing the cursor on each inline src block and evaluating (org-element-context). As is evident below, :begin is sometimes a relative position. This was fixed

Re: [O] doc patch (drawers)

2015-01-27 Thread Nicolas Goaziou
Hello, Thierry Pellé abonneme...@thierry-pelle.eu writes: Hi, this is a tiny patch for the doc. The new one does not mention #+DRAWERS: and org-drawers. This is because they are no longer needed. Regards, -- Nicolas Goaziou

[O] Agenda Holiday face doesn't work (crashes Agenda)

2015-01-27 Thread Tory S. Anderson
Hello. I've been using Julien Danjou's code to good effect: https://julien.danjou.info/blog/2010/org-mode-and-holidays Basically, it just advocates adding the following function, which then marks holidays with weekend face for clear viewing: (require 'cl-lib) (setq

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

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

2015-01-27 Thread Rasmus
Hi, Christian Moe m...@christianmoe.com 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

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

2015-01-27 Thread Albert Krewinkel
Vikas Rawal vikasli...@agrarianresearch.org 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.

Re: [O] question about org-element-map missing link in caption

2015-01-27 Thread John Kitchin
hmm... Is there any way to tell when a link in in an affiliate? so we can tell when we cannot trust buffer positions? Maybe even better fix the implementation to add the found buffer positions to some affiliate position so they are correct? I could give that a try if you can point me to the

Re: [O] Japanese popularity of orgmode

2015-01-27 Thread Takaaki Ishikawa
Dear Tory, Good point. I don’t know “taking off” is the correct word, but as you mentioned, it’s still growing. I can see several reasons why you think Japanese content has been increasing in the Web. First, some students use Emacs in their university because their teacher also uses Emacs.

Re: [O] Japanese popularity of orgmode

2015-01-27 Thread Rasmus
Takaaki Ishikawa tak...@ieee.org writes: Second, We have several workshops related to Emacs and org-mode. At least, two workshops are held a few times a year at Kyoto and Tokyo. That's pretty cool. Thanks for sharing. —Rasmus -- This is the kind of tedious nonsense up with which I will

Re: [O] Japanese popularity of orgmode

2015-01-27 Thread Tory S. Anderson
Thanks for the answer! Takaaki Ishikawa tak...@ieee.org writes: Dear Tory, Good point. I don’t know “taking off” is the correct word, but as you mentioned, it’s still growing. I can see several reasons why you think Japanese content has been increasing in the Web. First, some students use

[O] doc patch (drawers)

2015-01-27 Thread Thierry Pellé
Hi, this is a tiny patch for the doc. The new one does not mention #+DRAWERS: and org-drawers. Hope my patch is valid, my git directory seems to be broken but i can't understand why... Thierry PS: i will add exemples after (i'm not texi fluent...:-) ). From

Re: [O] org-info.js

2015-01-27 Thread Phillip Lord
Achim Gratz strom...@nexgo.de writes: Phillip Lord writes: Can anyone tell me where the source code for org-info at http://orgmode.org/org-info.js is? This verison if minified. There are these: https://github.com/SebastianRose/org-info-js/ A copy of this version is on Worg under

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

2015-01-27 Thread Richard Lawrence
Rasmus ras...@gmx.us 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

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

2015-01-27 Thread Rasmus
Hi, Richard Lawrence richard.lawre...@berkeley.edu writes: Rasmus ras...@gmx.us 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/

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

2015-01-27 Thread Richard Lawrence
Rasmus ras...@gmx.us 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

Re: [O] Buffer positions from `org-element-map'?

2015-01-27 Thread Rasmus
Hi Charles, Charles C. Berry ccbe...@ucsd.edu writes: What I would like is to have the same values of :begin as would be obtained by placing the cursor on each inline src block and evaluating (org-element-context). As is evident below, :begin is sometimes a relative position. OK