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
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
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
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 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
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
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
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
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
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
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
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
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
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
;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
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
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:
>
>
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
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
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
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-
(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
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 "
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
t;no") (:padline . "") (:noweb . "no") (:tangle . "no") (:exports .
> "results") (:results . "replace") (:var .
> "results=emacs-echo(table=with-hline2)[:colnames yes]") (:colnames .
> "no") (:hlines . "yes
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
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
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
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:
>
> 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
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
Andreas Leha writes:
> Andreas Leha writes:
>
>> Andreas Leha writes:
>>
>>> Hi Eric,
>>>
>>>
>>> Eric Schulte writes:
>>>
>>>> Andreas Leha writes:
>>>>
>>>>> Hi Eric,
>>>>>
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
sults silent
result
#+end_src
Best,
>
> Dieter
> --
> Best wishes
>
> H. Dieter Wilhelm
>
> Darmstadt
> Germany
>
--
Eric Schulte
http://cs.unm.edu/~eschulte
#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
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
\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
eviously hard coded "java". Set `org-babel-ditaa-java-cmd' to
change this.
>
>
> Regards,
> Achim.
--
Eric Schulte
http://cs.unm.edu/~eschulte
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
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
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&
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
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.
&
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
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
;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
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
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
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
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
y)
`(case (if (boundp 'backend) (org-export-backend-name backend) nil) ,@body))
#+end_src
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
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
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
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
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
rate?
>
> Tanks a lot for your help and that really nice feature!
>
Happy to help,
>
> Cheers,
> Andreas
>
>
--
Eric Schulte
http://cs.unm.edu/~eschulte
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
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
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.
>>
&
-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
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
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
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
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
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
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
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
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
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
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
smetic, but I was wondering what
> could be causing this.
>
> Any ideas?
>
> Loris
--
Eric Schulte
http://cs.unm.edu/~eschulte
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
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
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
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
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
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
\\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
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
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
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
>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
|
> | \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
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
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
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
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
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
--
>
> 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
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
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
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
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
ment session support, but never completed it).
--
Eric Schulte
http://cs.unm.edu/~eschulte
(: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
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
equired to make this change. In this case
it was very simple.
Best,
>
> Thanks,
> Carlos
>
>
>
--
Eric Schulte
http://cs.unm.edu/~eschulte
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
(species){
return( paste(species$layer, "disturbances_static", sep="_") )
}
#+end_src
--
Eric Schulte
http://cs.unm.edu/~eschulte
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.
401 - 500 of 3086 matches
Mail list logo