Re: [O] Inline plot with matplotlib

2013-09-09 Thread Eric Schulte
ts tikz or raw tex output formats, you could use a python code block, e.g., something like the following. #+begin_src python :results latex # Python code to print latex code for a graph #+end_src -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] [BUG] [Babel] Do not try to process inline source in macro templates

2013-09-08 Thread Eric Schulte
Nicolas Girard writes: > 2013/9/2 Eric Schulte : >>> >>> I've just pushed up a fix for this issue which should now ignore inline >>> source blocks on lines starting with "#+" during export. I don't know >>> if there is a better way th

Re: [O] Outline cycling does not preserve point's position

2013-09-08 Thread Eric Schulte
orted (without bisect), no answer; > This works for me, could you report a minimal recipe for reproduction, and maybe a git bisect commit? Thanks, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] asynchronous code evaluation

2013-09-06 Thread Eric Schulte
de block (from "C-c C-c" to :var resolution) need to be updated to call the code block in an asynchronous manner? Best, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] running some elisp code when exporting a given file

2013-09-06 Thread Eric Schulte
re a way to have arbitrary code stored in the file being exported >>> being evaluated before an export? >> >> I think this has to do with ":exports none", which means that code will >> not be evaluated during export. You may want to try setting the >> attri

Re: [O] [BUG] [Babel] Do not try to process inline source in macro templates

2013-09-02 Thread Eric Schulte
Babel shouldn't be looking for inline code within > macro templates. > I've just pushed up a fix for this issue which should now ignore inline source blocks on lines starting with "#+" during export. I don't know if there is a better way than using a regex to detect s

Re: [O] #+CALL and remote execution

2013-08-31 Thread Eric Schulte
call line syntax in the manual. #+name: where #+begin_src sh pwd #+end_src #+RESULTS: where : /tmp Call the above from somewhere else. #+call: where[:dir /]() #+RESULTS: : / Cheers, > > cheers, > kel > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] [BUG] hline handling in ob-ruby

2013-08-31 Thread Eric Schulte
a table, then convert them into an > Emacs-lisp table, otherwise return the results as a string." > - (org-babel-script-escape results)) > + ((lambda (res) > + (if (listp res) > + (mapcar (lambda (el) (if (equal el 'nil) > + org-babel-ruby-nil-to el)) > + res) > + res)) > + (org-babel-script-escape results))) > > (defun org-babel-ruby-initiate-session (&optional session params) >"Initiate a ruby session. -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] [bug] [babel] babel corrupts undo history

2013-08-28 Thread Eric Schulte
oks good, perhaps it is ready to go. > Aaron, thanks for this fix. Sam, does this patch fix your problem? If so then I think it should be applied. I didn't write and am not familiar with this code, so I'll leave application to someone more competent than myself. -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] [bug] [babel] babel corrupts undo history

2013-08-28 Thread Eric Schulte
is is because I > prefer to bypass Babel's error mechanism, which I find > confusing. Doing exactly as above is the only way I know to > get Babel to work the way I prefer (although {} might or > might not work also). I always do this for every block. IMO it would > be

Re: [O] Tangle with conditional statement

2013-08-24 Thread Eric Schulte
t (float-time)) > (require feature)) > t) > ;; error handler > (file-error ;; condition > (progn >(when leuven-load-verbose > (message "(info) Checking for `%s'... missing" feature)) >(add-to-list 'leuven--missing-packages feature 'append)) > nil > --8<---cut here---end--->8--- > > Best regards, > Fabrice > > [1] https://github.com/fniessen/emacs-leuven/blob/master/emacs-leuven.el -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] [Babel] org-babel-execute-buffer gives different results than org-babel-exp-non-block-elements

2013-08-23 Thread Eric Schulte
lity is to have a "side-effect only" behaviour for export > where code block is not removed nor replaced. ":exports none" could be > a candidate for this. Maybe Eric Schulte has an opinion on it. > If I understand correctly, I think ":export both :results none" shou

Re: [O] [PATCH] ob-python

2013-08-12 Thread Eric Schulte
shell-buffer-name > + (org-babel-python-without-earmufs python-buffer))) > + (run-python cmd)))) > ((and (eq 'python-mode org-babel-python-mode) >(fboundp 'py-shell)) ; python-mode.el > ;; Make sure that py-which-bufname is initialized, as otherwise > -- > 1.8.3.4 > > > > Regards, > Achim. -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] Choosing image format according to export backend

2013-08-09 Thread Eric Schulte
OMMENT setup This function could be added to the user's =.emacs= init file. #+begin_src emacs-lisp :results silent (setq org-babel-latex-htlatex "htlatex") (defmacro by-backend (&rest body) `(case (if (boundp 'backend) (org-export-backend-name backend) nil) ,@body)) #+end_src -- Eric Schulte http://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] How to pass named table reference in source block variable

2013-08-08 Thread Eric Schulte
;s a code block which can access the data in such a table by key. This could be added to the library of babel to make it usable from any Org-mode file. #+name: by-key #+begin_src sh :var data="" :var key="" echo "$data"|awk "{if(\$1 == \"$key\") print \$2}" #+end_src And here's an example usage. #+headers: :results verbatim #+begin_src sh :var foo=by-key(table,"foo") :var baz=by-key(table,"baz") cat < Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] using cl-lib Was: [bug?][ob-core] using remove-if

2013-07-31 Thread Eric Schulte
for now at least the drawbacks probably out-weight the benefits, but I look forward to when we do make this transition. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte PGP: 0x614CA05D

Re: [O] [bug?][ob-core] using remove-if

2013-07-29 Thread Eric Schulte
Rasmus writes: > Hi, > > Regarding this commit: > > commit 3142297d69f6063221215757a3ba9c74adcf3e43 > Author: Eric Schulte > Date: Fri Jul 26 11:48:51 2013 -0600. > > remove-if is introduced in ob-core.el: > >

[O] ox-html problem exposed by ox-S5

2013-07-29 Thread Eric Schulte
Hi, While moving to the ox-s5 backend, which is very nice (thanks Rick), I noticed a bug in ox-html. The attached patch fixes this problem. >From 07d6c3d1943b2b6fe63ddc107c4c127c9b70b209 Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Mon, 29 Jul 2013 15:19:22 -0600 Subject: [PATCH] ch

Re: [O] [Bug] #+call does not respect :colnames argument

2013-07-29 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >> I just pushed up a fix, I now only get 1 failing test locally, but it is >> related to table alignment so I believe it must be unrelated to this >> commit. > > I confirm the fix. As to your oither test fail, it doesn

Re: [O] Yet another literate programming application

2013-07-29 Thread Eric Schulte
t; got so far: > I'm not clear on how the even/odd example works in calc, could you share a link to the specific manual page you're referencing? I've long felt that calc would be a *very* powerful tool, if only I could climb the learning curve. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [Bug] #+call does not respect :colnames argument

2013-07-29 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >> I've just pushed up that patch. > > …which breaks testing: > > 10 unexpected results: >FAILED ob-exp/use-case-of-reading-entry-properties >FAILED test-ob-header-arg-defaults/global/call >FAILED test-

Re: [O] [BUG][PATCH] Commit '3142297d69f6063221215757a3ba9c74adcf3e43' breaks some my files

2013-07-29 Thread Eric Schulte
(lambda (hd) > (let ((key (intern (concat ":" (symbol-name hd > END_EXAMPLE > > > P.S. I was lazy to prepare MWE. The mentioned document is available at > https://github.com/vp1981/scripts/blob/master/docs/openbox/rc.org > > --- > WBR, Vladimir Lomov -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Yet another literate programming application

2013-07-29 Thread Eric Schulte
gine from org-mode. (And > I'm secretly hoping something will say that $some_programming_language > already does it and is fully integrating with org.) > Yes, you can use calc embedded mode in Org-mode files as well. > > Alan > Cheers, Footnotes: [1] (info "

Re: [O] [Bug] #+call does not respect :colnames argument

2013-07-26 Thread Eric Schulte
Rick Frankel writes: > On Fri, Jul 26, 2013 at 11:53:33AM -0600, Eric Schulte wrote: >> Rick Frankel writes: >> >> > I have debugged why the :colnames argument is not respected as to >> > removing the header from a table var. > >> Thanks for taking the

Re: [O] [Bug] #+call does not respect :colnames argument

2013-07-26 Thread Eric Schulte
t;no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports . > "results") (:results . "replace") (:var . > "results=emacs-echo(table=with-hline2)[:colnames yes]") (:colnames . > "no") (:hlines . "yes

Re: [O] Interpreter/shell prompts when exporting code blocks?

2013-07-26 Thread Eric Schulte
your own custom CSS to the page, or possibly to post-process the code blocks with a custom export filter, see (info "(org)Advanced configuration"). Best, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [babel] feature request: debug messages

2013-07-25 Thread Eric Schulte
Andreas Leha writes: > Hi Eric, > > Eric Schulte writes: > >>> >>> This helps a lot. Thanks! >> >> Happy this worked out. >> >>> Now, I will this into all my org files. >>> >> >> Check out the library of babel of th

Re: [O] #+header keywords for #+call keyword?

2013-07-25 Thread Eric Schulte
I don't believe there are any restrictions on the number of header lines before a code block. Best, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [babel] Table as varaiables a differently proccesed by #+call lines vs. source code blocks

2013-07-25 Thread Eric Schulte
ange in the code at some point, and then the manual and code will be incomplete. The values of any emacs variable are easily looked up, either with elisp or through the customization interface. Thanks, > > Torsten > > > On 25 July 2013 00:30, Eric Schulte wrote:

Re: [O] [babel] feature request: debug messages

2013-07-25 Thread Eric Schulte
> > This helps a lot. Thanks! Happy this worked out. > Now, I will this into all my org files. > Check out the library of babel of things that you want to have globally available. Best, > > Cheers, > Andreas > > > > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [babel] Table as varaiables a differently proccesed by #+call lines vs. source code blocks

2013-07-24 Thread Eric Schulte
he source code block miss >> the first row. Indexing is possible only for the second and third row (in >> the given example) >> >> 2. Having no hline, the first row is available, indexing of the first row >> works too. >> >> Using a Call construct: >> 1. for a table without hline, indexing works but it does not work for a >> table with hline. >> 2. Interestingly, using the CALL functions, the type of both tables in >> python is list for the entire table, however, indexing a table with hlines, >> the type becomes NoneType whereas for a table without hline it is still of >> type list. >> >> >> Hope that can somehow help to get an idea what is going on. >> >> >> Greetings >> >> Torsten >> >> >> >> >> >> -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [babel] feature request: debug messages

2013-07-24 Thread Eric Schulte
Andreas Leha writes: > Andreas Leha writes: > >> Andreas Leha writes: >> >>> Hi Eric, >>> >>> >>> Eric Schulte writes: >>> >>>> Andreas Leha writes: >>>> >>>>> Hi Eric, >>>>>

Re: [O] how to quote "#+end_src" string in a Babel block?

2013-07-24 Thread Eric Schulte
def iv_template(varlist,db,table): for var in varlist: babel_template=''' ,#+name: var ,#+begin_src sqlite :db mydb SELECT colName,cnt,suc,fal,iv FROM mytable WHERE colName == %s'; ,#+end_src # org mode stop here! ''' % (var,var) print babel_template #+end_src -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] #+header keywords for #+call keyword?

2013-07-24 Thread Eric Schulte
sults silent result #+end_src Best, > > Dieter > -- > Best wishes > > H. Dieter Wilhelm > > Darmstadt > Germany > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [babel] Problems assigning tables as variables using #+CALL and using properties in code blocks and sbe calls

2013-07-18 Thread Eric Schulte
#x27;t understand the later part of this email, perhaps an example would clarify. Also, it might be worth looking in the following to see if something matching your use case appears. http://eschulte.github.io/org-scraps/ Cheers, > > Thanks > > Torsten -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Should comments break paragraphs?

2013-07-17 Thread Eric Schulte
Andreas Leha writes: > Eric Schulte writes: > > > [...] > >> >> I'm happy to work to fix places where babel is breaking comments. >> I should add the conditional *if* we're going to improve comment support globally (e.g., in the parser as well). El

Re: [O] patch for latex->tikz

2013-07-17 Thread Eric Schulte
\begin{minipage}[b]{0.32\linewidth} \adjustbox{width=1.0\linewidth}{ \begin{tikzpicture} % ... \end{tikzpicture} } \subcaption{\small part 3} \end{minipage} \caption{Example with three sub-parts} \label{fig:example} \end{figure} -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [Patch] ob-ditaa.el for Cygwin

2013-07-17 Thread Eric Schulte
eviously hard coded "java". Set `org-babel-ditaa-java-cmd' to change this. > > > Regards, > Achim. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [BUG] List argument to a shell code block

2013-07-17 Thread Eric Schulte
le) > | ABC | > | XYZ | > > #+TBLNAME: arg-table > | ABC | > | XYZ | > > > This is on Org-mode version 8.0.3 (8.0.3-32-g0c789f-elpa). > > Hi Daniel, Thanks for reporting this, I've just pushed up a fix. Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Should comments break paragraphs?

2013-07-17 Thread Eric Schulte
h does (reproduced here for ease of reference). >From ce4c30ebe56d4cd66810bca48824d8841e7b130d Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Tue, 16 Jul 2013 09:44:59 -0600 Subject: [PATCH] support inline comments w/o breaking paragraphs * lisp/org-element.el (org-element-parse-buffer): St

Re: [O] Should comments break paragraphs?

2013-07-17 Thread Eric Schulte
Nicolas Goaziou writes: > Eric Schulte writes: > >> So are you proposing to remove comments from Org-mode entirely? > > Certainly not. > Great, then I think we're much closer together on this than I originally thought. > > I'm on the "good enough&

Re: [O] Should comments break paragraphs?

2013-07-16 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> When Org-mode is used as a document preparation language inline comments >> are very useful. The use case being notes on the surrounding material >> which are not to be published. Both HTML and La

Re: [O] Should comments break paragraphs?

2013-07-16 Thread Eric Schulte
which (as I recall) could previously appear mid paragraph without causing problems. > > Now, if you want to improve comments anyway, you can always provide > patches. There's some non-trivial work involved, though. > The attached patch worked on some small example files for me. &

Re: [O] execute sbe macro fails

2013-07-14 Thread Eric Schulte
gt; > Any idea what I am doing wrong? I tried different versions with > "score2mark" some additional brackets etc. However, no luck yet. > > Thanks for help > > Torsten -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Eric Schulte
Rasmus writes: > Rasmus writes: > >> Eric Schulte writes: >> >>> Use the `org-src-lang-modes' variable to associate a src code block name >>> with a major mode. This list already contains ("cpp" . c++) for C++ >>> code blocks, but

Re: [O] [ob][bug] C++-mode is unknown

2013-07-13 Thread Eric Schulte
;c++-mode) > > to the top of ob-c.el (after requiring cc-mode). Of course C++ could > also be renamed c++, but the correct name does in fact seem to use > capitals (cf. Wikipedia). > > Ob-template didn't mention how to associate a language with a given > mode. > > Cheers, > Rasmus -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Help with babel and gnuplot

2013-07-12 Thread Eric Schulte
l) > call-interactively(org-ctrl-c-ctrl-c nil nil) > > I've been assuming it's a path issue, but > ~/org-mode/lisp/ob-gnuplot.elc is present and I have gnuplot installed > in /usr/bin/gnuplot. > > Any advice would be greatly appreciated. > > Kind regards, > > Paul > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] tikz for multiple targets

2013-07-11 Thread Eric Schulte
Eric S Fraga writes: > Eric Schulte writes: > >>> >>> This is very nice and works well for me. I would very much like to see >>> that in orgmode. Thanks a lot! >>> >> >> Great, I've just committed this patch. Thanks for your origina

Re: [O] Embedded Tikz Picture

2013-07-11 Thread Eric Schulte
4-3 > > Thanks for your help. I'm trying to make the switch to Orgmode for all > my LaTeX needs and it's quite a steep learning curve. > > Julien. > > > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] tikz for multiple targets

2013-07-11 Thread Eric Schulte
t; Because elisp evaluation is available for header argument *values*, not for the entire header argument line. Instead you could do the following, or just use the example in my previous email which sets :imagemagick in all cases. #+header: :imagemagick (by-backend ((html pdf) 'nil) (t "yes")) Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] tikz for multiple targets

2013-07-11 Thread Eric Schulte
y) `(case (if (boundp 'backend) (org-export-backend-name backend) nil) ,@body)) #+end_src Cheers, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] tikz for multiple targets

2013-07-11 Thread Eric Schulte
Rasmus writes: > Eric Schulte writes: > > >> Building from this example, the attached patch to ob-latex.el combined >> with the attached org-mode file should export the latex (tikz) code as >> an inline SVG image to HTML and as embedded tikz to latex. >> >&g

Re: [O] tikz for multiple targets

2013-07-11 Thread Eric Schulte
t for the (intern > "latex") bit... but this is probably to do with how eq works I guess. > > Anyway, thanks again. > eric I actually dropped the intern bit from the previous approach. I'm happy this looks useful, I will go ahead and commit. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] tikz for multiple targets

2013-07-10 Thread Eric Schulte
reen!30] {3} } child { node [circle, draw, fill=yellow!30] {4} }}; \end{tikzpicture} #+end_src * COMMENT setup #+begin_src emacs-lisp :results silent (setq org-babel-latex-htlatex "htlatex") (defmacro by-backend (&rest body) `(case (if (boundp 'backend) (org-export-back

Re: [O] [babel] feature request: debug messages

2013-07-07 Thread Eric Schulte
n to see what you mean, but you're right; I forgot to add subsection lines for these header arguments. This should be fixed now, thanks for the report! -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [babel] feature request: debug messages

2013-07-07 Thread Eric Schulte
rate? > > Tanks a lot for your help and that really nice feature! > Happy to help, > > Cheers, > Andreas > > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] babel - python question

2013-07-05 Thread Eric Schulte
turn 2 + 2 #+end_src #+RESULTS: : 4 #+begin_src python :results output import time print("Hello, today's date is %s" % time.ctime()) print('Two plus two is') #+end_src #+RESULTS: : Hello, today's date is Fri Jul 5 08:27:02 2013 : Two plus two is -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [Babel] Inaccuracy in Sec. 14.8.2.13 `:noweb' of the manual

2013-07-04 Thread Eric Schulte
oweb reference *will not be removed* but >> after trying it out with the last ELPA version of org (July 3rd), it turns >> out that *it is removed* (which makes sense given the name). > > Yes, you're right; it should be: > > However, "noweb" syntax refer

Re: [O] [babel] feature request: debug messages

2013-07-04 Thread Eric Schulte
Andreas Leha writes: > Hi Eric, > > > Eric Schulte writes: > >> Hi Andreas, >> >> This should be easy to turn on or off using the newly introduced >> :prologue and :epilogue header arguments. See the manual and the >> following example. >> &

Re: [O] [babel] feature request: debug messages

2013-07-03 Thread Eric Schulte
-messages (or org-babel-debug-level...) which if > non-nil would cause that messages to be printed. Or is there somewhere > already? > > Regards, > Andreas > > > > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [BUG] :colnames not applied to #+call input

2013-07-03 Thread Eric Schulte
well in call lines. I think the best solution here is to add colnames support to Emacs Lisp code blocks. I can put this on my Org-mode queue, but can't promise to get to it any time soon. Cheers, Rick Frankel writes: > On 2013-06-30 19:21, Eric Schulte wrote: >> Rick Frankel wri

Re: [O] org-mode and python pandas

2013-07-03 Thread Eric Schulte
now >>> if you could echo the result directly to the output, all examples >>> revolve around putting the CSV into a file. For Org, TSV output would >>> be more natural. >> >> Something like: >> >> from pandas import DataFrame >> from nump

Re: [O] evaluation context in call statements

2013-07-01 Thread Eric Schulte
Michael Brand writes: > Hi Eric > > On Mon, Jul 1, 2013 at 3:11 PM, Eric Schulte wrote: >> The export function (used by `org-test-with-expanded-babel-code') hadn't >> been updated to use call line names. I've just pushed up a fix. > > Thanks, attac

Re: [O] evaluation context in call statements

2013-07-01 Thread Eric Schulte
Michael Brand writes: > Hi Eric > > On Mon, Jul 1, 2013 at 12:24 AM, Eric Schulte wrote: >> I've just pushed up a patch which implements this change. Call lines >> should now work exactly as named code blocks providing clarity, >> uniformity and the flexibilit

Re: [O] [PATCH] Use geiser for babel scheme evaluation.

2013-06-30 Thread Eric Schulte
Ah, apologies and thanks all around. Cheers, Greg Minshall writes: > hi, Eric, > > this patch isn't mine, but rather Michael Gauland's; i just wondered > where it had gone. > > cheers, Greg > >> here is the thread: >> http://comments.gmane.org/gmane

Re: [O] [PATCH] Use geiser for babel scheme evaluation.

2013-06-30 Thread Eric Schulte
ks Greg for this patch! > > PS: The patch does not apply, we need to revert > http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=92e327 > first. Thanks for figuring out this conflict. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Calling org babel to each row in a table

2013-06-30 Thread Eric Schulte
340*, *but that > didn't have a full example for me to build off of > > Is there a more straightforward to accomplish this transformation? > Hi Joe, There is no way to map a code block over the rows of a table. You could use the `sbe' macro and a spreadsheet formula to cal

Re: [O] [PATCH] Use geiser for babel scheme evaluation.

2013-06-30 Thread Eric Schulte
h failed at 0001 Use geiser for babel scheme evaluation. Once these are resolved we can apply this patch. Thanks! -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] evaluation context in call statements

2013-06-30 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >>>> My vote is for adding #+name support to call lines, and then handling >>>> their results in the same manner as code block results. >> >> Achim Gratz writes: >>> I'm not sure what this wo

Re: [O] [BUG] :colnames not applied to #+call input

2013-06-30 Thread Eric Schulte
hat the behavior of the ':colnames' header argument may differ across languages." phrase in the manual. If you remove ":colnames yes" from the emacs-lisp code block in your example everything should work fine. Best, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] org-babel-lob-execute: Wrong type argument: integer-or-marker-p

2013-06-30 Thread Eric Schulte
smetic, but I was wondering what > could be causing this. > > Any ideas? > > Loris -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] org-mode and python pandas

2013-06-30 Thread Eric Schulte
sed approach would be ideal, I'd look at the value of org-babel-default-header-args:python, and read the portion of the manual related to the "results" header arguments. I don't understand multi-line strings in python, but I get the following behavior from simple shell script blocks. #+begin_src sh cat < > Regards, > Dov > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Arranging BABEL source block and output figure side by side in html output

2013-06-27 Thread Eric Schulte
ml output? > > Thanks for any help. > > RC > I haven't used it in some time, so it probably needs some repair, but I put together a tool for exactly this use case. http://eschulte.github.io/org-docco/org-docco.html Hope this helps, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] evaluation context in call statements

2013-06-26 Thread Eric Schulte
r thread is ok for now and can be applied just > to reflect what is currently supported? Or should I change something > else in the patch? > Yes, I've just applied this patch. Sorry for the delay. Thanks, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] evaluation context in call statements

2013-06-26 Thread Eric Schulte
thers). You are free to type a #+RESULTS: line manually. If you use yasnippets you could define a snippet for a named code block which inserts the #+RESULTS line concurrently with the code block. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] evaluation context in call statements

2013-06-26 Thread Eric Schulte
Michael Brand writes: > Hi Eric > > On Wed, Jun 26, 2013 at 12:41 AM, Eric Schulte wrote: >> I think we could be well served by discussing how people use call lines, >> how they would use call lines (if this behavior changed), and what >> behavior would best support t

Re: [O] evaluation context in call statements

2013-06-26 Thread Eric Schulte
blocks results, but then what if I want to export the code block body and not the results, what if I want to export both. I think Nicolas was right to unify, simplify and clarify the Org-mode attribute semantics. Thanks for the feedback. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Change latex export to use cref

2013-06-25 Thread Eric Schulte
\\ref in latex export." (when (org-export-derived-backend-p backend 'latex) (replace-regexp-in-string "ref{" "cref{" text))) (add-to-list 'org-export-filter-final-output-functions 'org-latex-ref-to-cref) Hope this helps, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] evaluation context in call statements

2013-06-25 Thread Eric Schulte
vote is for adding #+name support to call lines, and then handling their results in the same manner as code block results. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-25 Thread Eric Schulte
ng-id() : property "two" at 582 really # Another call from a code block rather than a call line. #+begin_src emacs-lisp :var in=heading-id() in #+end_src #+RESULTS: : property "two" at 762 really 762 -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [PATCH] ox-latex.el --- CUSTOM_ID-as-section-label-in-latex-export

2013-06-24 Thread Eric Schulte
Nicolas Goaziou writes: > Hello, > > Eric Schulte writes: > >> From c087e84a8fd80b277bf064eb31f1b893c25f1b4a Mon Sep 17 00:00:00 2001 >> From: Eric Schulte >> Date: Mon, 24 Jun 2013 10:25:03 -0600 >> Subject: [PATCH] CUSTOM_ID as section label in latex e

[O] [PATCH] ox-latex.el --- CUSTOM_ID-as-section-label-in-latex-export

2013-06-24 Thread Eric Schulte
>From c087e84a8fd80b277bf064eb31f1b893c25f1b4a Mon Sep 17 00:00:00 2001 From: Eric Schulte Date: Mon, 24 Jun 2013 10:25:03 -0600 Subject: [PATCH] CUSTOM_ID as section label in latex export When exporting to HTML, custom ids of headlines become references to the resulting section in

Re: [O] Displaying regression results from R in beamer

2013-06-23 Thread Eric Schulte
| > | \textit{Note:} & \multicolumn{1}{r}{$^{*}$p$<$0.1; $^{**}$p$<$0.05; > $^{***}$p$<$0.01} \\ | > | \normalsize > | > | \end{tabular} > | > | \end{table} > | > #+END_LaTeX > > > How do I get rid of these |s? The R terminal where the source block is > bring processed shows correct latex code, but when it is inserted into > the orgmode file, it comes enclosed in | characters. > > Will appreciate any help. > > Vikas > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Unexpected behaviour with gnuplot source blocks

2013-06-22 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >>> #+BEGIN_SRC gnuplot :file test.eps >>> reset >> ^ >> WRT |, I've also added the *org-babel-gnuplot-prefix* variable, which >> may be set to e.g., "reset" to reset the gnuplot process b

Re: [O] [RFC] Replace some HTML related keywords with OPTIONS items

2013-06-21 Thread Eric Schulte
arguments here as it is to be legible. All header arguments are full words and typically have longer values, so they don't run into the same readability issues. Just my 2¢ -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Unexpected behaviour with gnuplot source blocks

2013-06-21 Thread Eric Schulte
Suvayu Ali writes: > On Fri, Jun 21, 2013 at 09:02:28AM -0600, Eric Schulte wrote: >> >> I've added a customization variable to ob-gnuplot which may be used to >> map file extensions to terminals. Currently it just holds the mapping >> from eps to "postscr

Re: [O] Unexpected behaviour with gnuplot source blocks

2013-06-21 Thread Eric Schulte
Christopher Witte writes: > On 20 June 2013 18:12, Eric Schulte wrote: > >> Why not do the following instead which would be equivalent and simpler. >> The output will be automatically set from the value of your :file header >> argument. >> >> #+begi

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Eric Schulte
d > the new… > Introducing another header argument controlling this setting would add too much complexity. I think we either stick with the existing behavior or (preferably) change the default behavior. Thanks for taking these on! > > > Regards, > Achim. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [ANN] Convert Org-mode file to Source-code file

2013-06-20 Thread Eric Schulte
-- > > I'm not sure about the general use case for this, but I do have my uses for > it, so I announce it here because it might serve others too. > > PS > This is *not* about tangling, try it out to see the (big) difference. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Eric Schulte
Achim Gratz writes: > Eric Schulte writes: >>> 2. The evaluation of header arguments assumes emacs-lisp as a language. >> >> Yes, if one wants to execute a language other than Emacs-Lisp, then they >> should use a full fledged code block and pass a reference to that

Re: [O] :session question -- and changes to #+Property: syntax

2013-06-20 Thread Eric Schulte
g *-default-header-args* so these settings can be > independently controlled. > I don't know what this means. I'm either mis-understanding your second issue, or I strongly disagree with it. I do not think it should be possible to embed arbitrary language source code into header arguments. Cheers, > > > Thoughts, comments? > > > Regards, > Achim. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Unexpected behaviour with gnuplot source blocks

2013-06-20 Thread Eric Schulte
esn't reset output. Killing the gnuplot > buffer fixes this, but that is annoying if I frequently switch back > and forth between the documents. > Does setting :session to "none" for gnuplot fix this problem? > > I could use full paths, but that seams like a pain, any other suggestions? > > Thanks for the help, > Chris. -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] [PATCH] minor patch to org-babel-load-file

2013-06-20 Thread Eric Schulte
t; :header-args:R: :session "*R-drawer*" :END: [2] commit a79fd4be2863a300c88218b40b1adca23d9e1eb8 Author: Eric Schulte Date: Thu Jun 20 09:53:56 2013 -0600 fix babel merge params bug from commit 693dda67 The `org-babel-params-from-properties' command

Re: [O] link abbreviation with multiple params, e. g. for geo locations

2013-06-14 Thread Eric Schulte
ment session support, but never completed it). -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)]

2013-06-13 Thread Eric Schulte
(:results . "replace") | (:exports . "results")) | | | Documentation: | Default arguments to use when evaluating an inline source block. | | [back] ` If you'd like to propose a patch to the manual which makes this clear, I'm happy to apply it. Thanks, > > Bye, > Tassilo > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Bug: Babel Haskell mode [8.0.3 (8.0.3-30-g56b864-elpa @ /Users/ix/.emacs.d/elpa/org-20130610/)]

2013-06-13 Thread Eric Schulte
support for non-session evaluation, i.e., compiling the code block to an executable (perhaps with some default main function), and then running that executable, as we currently do with C. Cheers, > > > Simon Beaumont > > --- > On 13 Jun 2013, at 06:18, Eric Schulte w

Re: [O] org-babel, gnuplot and buffer-wide header arguments

2013-06-12 Thread Eric Schulte
equired to make this change. In this case it was very simple. Best, > > Thanks, > Carlos > > > -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] Bug: Babel Haskell mode [8.0.3 (8.0.3-30-g56b864-elpa @ /Users/ix/.emacs.d/elpa/org-20130610/)]

2013-06-12 Thread Eric Schulte
0,3628800),(11,39916800)] | Prelude> "org-babel-haskell-eoe" | Prelude> ` I'm not sure what else this could be. One option would be to instrument `org-babel-execute:haskell' or `org-babel-comint-with-output' with edebug, and then step through evaluation to see if you can pinpoint where the problem lies. Hope this helps, -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] BUG - Problem in tangle-mode

2013-06-12 Thread Eric Schulte
(species){ return( paste(species$layer, "disturbances_static", sep="_") ) } #+end_src -- Eric Schulte http://cs.unm.edu/~eschulte

Re: [O] link abbreviation with multiple params, e. g. for geo locations

2013-06-11 Thread Eric Schulte
Michael Brand writes: > Hi Eric > > On Sun, Jun 9, 2013 at 9:18 PM, Eric Schulte wrote: >> Export buffers are sometimes modified or narrowed during the export >> process, so I wouldn't depend too much on the absolute values of markers >> generated during export.

<    1   2   3   4   5   6   7   8   9   10   >