[O] Let Org-mode babel file result support relative link type by using org-link-file-path-type

2017-03-11 Thread numbch...@gmail.com
Let Org-mode babel file result support relative (adaptive) link type by using `org-link-file-path-type`. This also can solve static site generator extensions (like `ob-blog.el` etc) image link path issue. Also better if user changed parent directory name, those links will have to updated too.

Re: [O] ascii section references for id links can be inline?

2017-03-11 Thread Samuel Wales
On 3/10/17, Nicolas Goaziou wrote: >> the behavior i found occurs when you use a link that refers outside >> the exported subtree, which i'd classify as user error. can that be >> made to raise an error signal? >> >> "you are linking to outside the subtree being exported.

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Scott Randby
On 03/10/2017 04:15 PM, Uwe Brauer wrote: > >> On 03/10/2017 11:08 AM, Uwe Brauer wrote: > >> You need to change "#+BEGIN_LaTeX" to "#+begin_export latex" and >> "#+END_LaTeX" to "#+end_export" for Org 9.0 and above. > > Thanks, very much, I never understand what is the benefit of

Re: [O] New markup for revising manuscripts

2017-03-11 Thread Doyley, Marvin M.
Hi John, I like the idea of special block that definitely solve the multi-line problem. But I would need to write an latex exporter for the block, how challenging would that be ? I am still learning lisp :) Cheers, M > On Mar 11, 2017, at 1:22 PM, John Kitchin wrote:

Re: [O] Bug: Filtering agenda by top parent headline causes emacs to hang [9.0.5 (9.0.5-elpaplus @ /Users/links_world/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-03-11 Thread Adrian Bradd
Hi, Nicolas Goaziou writes: > I guess you have an agenda file where a top level headline starts at > level 2 or below. Seems that is the issue. I accidentally deleted the first portion of one of my agenda files. The following agenda file causes the problem: TODO

Re: [O] org-mobile-push breaks currently open org-agenda

2017-03-11 Thread Aaron Jensen
FYI, I bisected and this is the first bad commit: bed17f1bb505dd6ecf80b44bf1ef267d45efb206 is the first bad commit commit bed17f1bb505dd6ecf80b44bf1ef267d45efb206 Author: Nicolas Goaziou Date: Sat Jan 14 16:12:43 2017 +0100 org-mobile: Fix `org-mobile-push' with

[O] org-export-string-as issue

2017-03-11 Thread John Kitchin
Hi, I am using code like this in a jupyter notebook exporter: #+BEGIN_SRC emacs-lisp (org-export-string-as "** second heading" 'md t '(:with-toc nil :with-tags nil)) #+END_SRC I would expect that to export as: ## second heading but what I get is: #+RESULTS: : : # second

Re: [O] New markup for revising manuscripts

2017-03-11 Thread John Kitchin
This is probably not feasible with links. that is also a challenge with Eric's markup approach. One way is to use visual wrapping so whole paragraphs are actually one line. Another is to use some kind of custom block. It has been a while since I tried this:

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread John Kitchin
You can put them into an elisp src block to try it out. They have to go in an init file to be permanent. I just made a symlink to the matlab executable on my path. The ipython functions are defined in ob-ipython, https://github.com/gregsexton/ob-ipython I think. John

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Uwe Brauer
>>> "John" == John Kitchin writes: > The kernel provides a "session" so matlab stays alive and doesn't have to > restart on every block. > The kernel might require python3. Although I think I installed the kernel, I am not sure about the code you sent me,

Re: [O] New markup for revising manuscripts

2017-03-11 Thread Eric S Fraga
On Saturday, 11 Mar 2017 at 13:41, John Kitchin wrote: > I like this a lot! Thanks. I use this all the time. I did try org-annotate but it was too clumsy for my needs. Of course, the day will come when I suddenly need to use strike-through desperately! :-) -- : Eric S Fraga (0xFFFCF67D),

Re: [O] org-mobile-push breaks currently open org-agenda

2017-03-11 Thread Aaron Jensen
On Sat, Mar 11, 2017 at 7:53 AM, Aaron Jensen wrote: > $ git clone > g...@github.com:aaronjensen/org-mobile-push-breaks-org-agenda-ecm.git > ~/.emacs.d.old Sorry, this line was wrong, it should clone to ~/.emacs.d: $ git clone

Re: [O] org-mobile-push breaks currently open org-agenda

2017-03-11 Thread Aaron Jensen
On Fri, Mar 10, 2017 at 9:28 AM, Nicolas Goaziou wrote: > ATM, I am not sure how it happens since the headline was extracted from > some document. Could you try evaluating > > M-: (org-get-at-bol 'org-marker) > > on a problematic line and report back the problem? I just

Re: [O] Modification to `org-attach' allowing attaching from URL

2017-03-11 Thread Wojciech Gac
Thank you 2017-03-11 15:31 GMT+01:00 Nicolas Goaziou : > Wojciech Gac writes: > > > I'm attaching a patch with a note in ORG-NEWS. > > Applied. Thank you. > > > I'll have a look at the FSF papers. > > Great ! > > Regards, > > -- > Nicolas

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Uwe Brauer
> The kernel provides a "session" so matlab stays alive and doesn't have to > restart on every block. Ah ok like the matlab shell as in emacs matlab mode. It seems that I got it to work, there was a python lib conflict but the author released just a new version solving the problem. >

Re: [O] Modification to `org-attach' allowing attaching from URL

2017-03-11 Thread Nicolas Goaziou
Wojciech Gac writes: > I'm attaching a patch with a note in ORG-NEWS. Applied. Thank you. > I'll have a look at the FSF papers. Great ! Regards, -- Nicolas Goaziou0x80A93738

Re: [O] How to get "clean" markdown export

2017-03-11 Thread Nicolas Goaziou
Hello, stefano franchi writes: > On Thu, Mar 9, 2017 at 12:30 PM, Eric S Fraga wrote: > >> On Thursday, 9 Mar 2017 at 17:44, stefano franchi wrote: >> > Hi all, >> > >> > I 'm just beginning with org-mode and I' trying to understand how to >> >

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread John Kitchin
The kernel provides a "session" so matlab stays alive and doesn't have to restart on every block. The kernel might require python3. On Sat, Mar 11, 2017 at 9:20 AM Uwe Brauer wrote: > >> You might dig around in ob-octave to see how it works. It should be > able >> to

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Uwe Brauer
> You might dig around in ob-octave to see how it works. It should be able > to Matlab (and on Linux/Mac I believe it might). On Windows, it has been > broken for a long time due to the lack of a proper shell (maybe that can > be adapted in win10 though). > I vaguely recall making

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Uwe Brauer
>>> "Eric" == Eric S Fraga writes: > On Saturday, 11 Mar 2017 at 08:04, Uwe Brauer wrote: >> Does anybody know how to get a better formatted output, to get rid of >> the empty lines and newline? best would be a org-table? > Instead of relying on MATLAB's

Re: [O] New markup for revising manuscripts

2017-03-11 Thread Doyley, Marvin M.
Thanks John, Works like a charm. Any idea how to write comments that spans multiple lines ? cheers, M > On Mar 11, 2017, at 7:55 AM, John Kitchin wrote: > > it looks like you forgot to include format in the (eq ..) sexp. > > (org-link-set-parameters > "response" >

Re: [O] New markup for revising manuscripts

2017-03-11 Thread John Kitchin
I like this a lot! On March 11, 2017, at 8:39 AM, Eric S Fraga wrote: On Friday, 10 Mar 2017 at 20:33, Doyley, Marvin M. wrote: > Hi there, > > When revising manuscripts, I usually highlight the changes (response > to reviewer) in red. I use typically do this as follows: >

Re: [O] New markup for revising manuscripts

2017-03-11 Thread Eric S Fraga
On Friday, 10 Mar 2017 at 20:33, Doyley, Marvin M. wrote: > Hi there, > > When revising manuscripts, I usually highlight the changes (response > to reviewer) in red. I use typically do this as follows: > (1) #+latex_header: \newcommand{\response}[1]{\textcolor{red}{#1}} > (2) \response{changes) >

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread John Kitchin
You might dig around in ob-octave to see how it works. It should be able to Matlab (and on Linux/Mac I believe it might). On Windows, it has been broken for a long time due to the lack of a proper shell (maybe that can be adapted in win10 though). I vaguely recall making that matlab function to

Re: [O] How to stop org delete surrounding newline when adding headlines?

2017-03-11 Thread Shiyao Ma
Hi, Not very urgent for me. I only meant to check if such functionality exists. I am now ok with the ((heading . nil)) stuff. Maybe one day I get bothered with this behavior, I might write one and post here. Regards. On Sat, Mar 11, 2017 at 6:08 PM, Nicolas Goaziou

Re: [O] Modification to `org-attach' allowing attaching from URL

2017-03-11 Thread Wojciech Gac
Hi, I'm attaching a patch with a note in ORG-NEWS. I'll have a look at the FSF papers. Thank you. Regards, Wojtek 2017-03-11 13:42 GMT+01:00 Nicolas Goaziou : > Hello, > > Wojciech Gac writes: > > > No, I haven't signed the papers. > > OK. I

Re: [O] New markup for revising manuscripts

2017-03-11 Thread John Kitchin
it looks like you forgot to include format in the (eq ..) sexp. (org-link-set-parameters "response" :export (lambda (keyword desc format) (cond ((eq 'latex format) (format "\\textcolor{red}{%s}" keyword :face '(:foreground "red")) Doyley, Marvin M.

Re: [O] New markup for revising manuscripts

2017-03-11 Thread Doyley, Marvin M.
Hi John, I make a colored link [[response: comments]], that makes the text following the response keyword red. The only snag is that when I export to latex I get [[response:comment]] rather than \textcolor{red}{comment}. Any thoughts on what I am doing wrong ? Cheers, M PS. Enclose is the

Re: [O] Modification to `org-attach' allowing attaching from URL

2017-03-11 Thread Nicolas Goaziou
Hello, Wojciech Gac writes: > No, I haven't signed the papers. OK. I applied your patch. I suggest to consider signing them if you plan to provide more patches. Would you mind providing an ORG-NEWS entry for the feature you added? Thank you. Regards, -- Nicolas

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Eric S Fraga
On Saturday, 11 Mar 2017 at 08:04, Uwe Brauer wrote: > Does anybody know how to get a better formatted output, to get rid of > the empty lines and newline? best would be a org-table? Instead of relying on MATLAB's default output, you can generate formatted output using fprintf [1]. Footnotes:

Re: [O] New markup for revising manuscripts

2017-03-11 Thread Doyley, Marvin M.
Hi John, Thanks for the info on making colored links, this will definitely help (i.e., show the changes in org). The only snag is how do I export the colored link automatically as \textcolor{red}{comments} during org export ? Cheers, M > On Mar 10, 2017, at 4:47 PM, John Kitchin

Re: [O] Bug: Filtering agenda by top parent headline causes emacs to hang [9.0.5 (9.0.5-elpaplus @ /Users/links_world/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-03-11 Thread Nicolas Goaziou
Hello, Adrian Bradd writes: > Debugger entered--Lisp error: (quit) > re-search-backward("^\\*+ " nil t) > org-outline-level() > outline-up-heading(1) I guess you have an agenda file where a top level headline starts at level 2 or below. If that's the case, it should

Re: [O] Modification to `org-attach' allowing attaching from URL

2017-03-11 Thread Wojciech Gac
HI Nicolas, No, I haven't signed the papers. Regards, Wojtek 2017-03-11 11:06 GMT+01:00 Nicolas Goaziou : > Hello, > > Wojciech Gac writes: > > > I wrote a tiny change of the `org-attach' function that allows to attach > a > > file from a URL

Re: [O] How to stop org delete surrounding newline when adding headlines?

2017-03-11 Thread Nicolas Goaziou
Hello, Shiyao Ma writes: > Yes, I've tried with '((heading . auto)). > > '((heading . auto)) opens the possibility of inserting newline, which is > not desirable for me. Then there is no possibility to achieve what you want at the moment. We could implement a `manual' behavior

Re: [O] Modification to `org-attach' allowing attaching from URL

2017-03-11 Thread Nicolas Goaziou
Hello, Wojciech Gac writes: > I wrote a tiny change of the `org-attach' function that allows to attach a > file from a URL (downloading it in the process). I chose a binding of 'C-c > C-a u' for this. I've updated the Texi documentation as well. Nice. Did you sign FSF

Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Uwe Brauer
> On Friday, 10 Mar 2017 at 16:08, Uwe Brauer wrote: > [...] > You may need to add ":exports results" to the src line. > Also, you should also modify the code to wrap the output in an equation > environment: > disp('\begin{equation}') > disp(ltxjac) >