resolution) need to be updated to
call the code block in an asynchronous manner?
Best,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
,
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
'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
#+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
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 great for newcomers if there were options in Babel sh blocks for
exactly this.
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
, 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 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 should
have the desired effect of executing the code block, not inserting the
results, and keeping the code block itself in place
-bufname is initialized, as otherwise
--
1.8.3.4
Regards,
Achim.
--
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D
)
(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
(table,baz)
cat EOF
Pulling the data from the above table we find
that foo is $foo and baz is $baz.
EOF
#+end_src
#+RESULTS:
: Pulling the data from the above table we find
: that foo is 1 and baz is 3.
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
PGP: 0x614CA05D
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
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 (calc)Embedded Mode)
--
Eric Schulte
http
/blob/master/docs/openbox/rc.org
---
WBR, Vladimir Lomov
--
Eric Schulte
http://cs.unm.edu/~eschulte
Achim Gratz strom...@nexgo.de 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-ob-header-arg-defaults/global
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 strom...@nexgo.de 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 show up for
me
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 schulte.e...@gmail.com
Date: Mon, 29 Jul 2013 15:19:22 -0600
Rasmus ras...@gmx.us writes:
Hi,
Regarding this commit:
commit 3142297d69f6063221215757a3ba9c74adcf3e43
Author: Eric Schulte schulte.e...@gmail.com
Date: Fri Jul 26 11:48:51 2013 -0600.
remove-if is introduced in ob-core.el:
(setf (cdr (assoc
the prefixed prompt would be icing on an already tasty cake.
-Brett.
I think the best solution here would be to apply 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
is update, then colname-names and
rowname-names values saved for that variable are removed.
In my local tests the attached patch fixes this issue. If it works for
you as well then I'll apply it.
Thanks,
From e789367e7ec4badd74e9aafb0249aa8798842f65 Mon Sep 17 00:00:00 2001
From: Eric Schulte
Rick Frankel r...@rickster.com writes:
On Fri, Jul 26, 2013 at 11:53:33AM -0600, Eric Schulte wrote:
Rick Frankel r...@rickster.com writes:
I have debugged why the :colnames argument is not respected as to
removing the header from a table var.
Thanks for taking the time to find the root
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
, 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 schulte.e...@gmail.com wrote:
Torsten Wagner torsten.wag...@gmail.com
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
Andreas Leha andreas.l...@med.uni-goettingen.de writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com 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 things that you want to have globally
available
Wilhelm
Darmstadt
Germany
--
Eric Schulte
http://cs.unm.edu/~eschulte
Andreas Leha andreas.l...@med.uni-goettingen.de writes:
Andreas Leha andreas.l...@med.uni-goettingen.de writes:
Andreas Leha andreas.l...@med.uni-goettingen.de writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com writes:
Andreas Leha andreas.l...@med.uni-goettingen.de writes:
Hi Eric
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
on.
Greetings
Torsten
--
Eric Schulte
http://cs.unm.edu/~eschulte
appears.
http://eschulte.github.io/org-scraps/
Cheers,
Thanks
Torsten
--
Eric Schulte
http://cs.unm.edu/~eschulte
Nicolas Goaziou n.goaz...@gmail.com writes:
Eric Schulte schulte.e...@gmail.com 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 side and I
for ease of reference).
From ce4c30ebe56d4cd66810bca48824d8841e7b130d Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
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): Strip inline
-elpa).
Hi Daniel,
Thanks for reporting this, I've just pushed up a fix.
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
for calling ditaa.
If there's anything to do on the Org side then removing the still
hardcoded call of java.
I've just pushed up a configuration variable to allow customization of
the previously hard coded java. Set `org-babel-ditaa-java-cmd' to
change this.
Regards,
Achim.
--
Eric Schulte
}
\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
Andreas Leha andreas.l...@med.uni-goettingen.de writes:
Eric Schulte schulte.e...@gmail.com 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
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.
From ce4c30ebe56d4cd66810bca48824d8841e7b130d Mon Sep 17 00:00:00 2001
From: Eric Schulte
Nicolas Goaziou n.goaz...@gmail.com writes:
Hello,
Eric Schulte schulte.e...@gmail.com 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 LaTeX
(passscore+step):
return mark
else:
passscore += step
return -1
#+end_src
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
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
Rasmus ras...@gmx.us writes:
Rasmus ras...@gmx.us writes:
Eric Schulte schulte.e...@gmail.com 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 perhaps (C++ . c++) should
.
Kind regards,
Paul
--
Eric Schulte
http://cs.unm.edu/~eschulte
backend) nil) ,@body))
#+end_src
From 703ccbe2a4aeb87eaef4cfe0af2e9550877d09b0 Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Thu, 11 Jul 2013 00:08:22 -0600
Subject: [PATCH] optional svg output for latex code blocks
* lisp/ob-latex.el (org-babel-latex-htlatex): Set
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
Rasmus ras...@gmx.us writes:
Eric Schulte schulte.e...@gmail.com 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.
If this works
} }};
\end{tikzpicture}
#+end_src
#+RESULTS:
[[file:tree.png]]
* 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-backend-name backend) nil) ,@body))
#+end_src
Cheers,
--
Eric
which sets
:imagemagick in all cases.
#+header: :imagemagick (by-backend ((html pdf) 'nil) (t yes))
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
to Orgmode for all
my LaTeX needs and it's quite a steep learning curve.
Julien.
--
Eric Schulte
http://cs.unm.edu/~eschulte
Eric S Fraga e.fr...@ucl.ac.uk writes:
Eric Schulte schulte.e...@gmail.com 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 original example
which this simply extends
to help,
Cheers,
Andreas
--
Eric Schulte
http://cs.unm.edu/~eschulte
; 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
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
Andreas Leha andreas.l...@med.uni-goettingen.de writes:
Hi Eric,
Eric Schulte schulte.e...@gmail.com 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.
#+Title: debug
), it turns
out that *it is removed* (which makes sense given the name).
Yes, you're right; it should be:
However, noweb syntax references will be stripped when the code block is
exported.
Best regards,
Seb
Just pushed up a fix. Thanks,
--
Eric Schulte
http://cs.unm.edu
be better, as Pandas doesn't print
the table if it's too big (try changing 10 to 1000 above).
--
Powered by magic pixies!
--
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 r...@rickster.com writes:
On 2013-06-30 19:21, Eric Schulte wrote:
Rick Frankel r
to be printed. Or is there somewhere
already?
Regards,
Andreas
--
Eric Schulte
http://cs.unm.edu/~eschulte
Michael Brand michael.ch.br...@gmail.com writes:
Hi Eric
On Mon, Jul 1, 2013 at 12:24 AM, Eric Schulte schulte.e...@gmail.com 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
Michael Brand michael.ch.br...@gmail.com writes:
Hi Eric
On Mon, Jul 1, 2013 at 3:11 PM, Eric Schulte schulte.e...@gmail.com 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, attached
:
| |A |B |C |
| 0 | 0.628365 | 0.424279 | 0.619791 |
| 1 | 0.799666 | 0.527572 | 0.132928 |
| 2 | 0.837255 | 0.138906 | 0.408233 |
| 3 | 0.38808 | 0.146212 | 0.575346 |
Hope this helps,
Regards,
Dov
--
Eric Schulte
http://cs.unm.edu/~eschulte
be causing this.
Any ideas?
Loris
--
Eric Schulte
http://cs.unm.edu/~eschulte
Achim Gratz strom...@nexgo.de 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 strom...@nexgo.de writes:
I'm not sure what this would entail other than replacing the call
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
these are resolved we can apply this patch. Thanks!
--
Eric Schulte
http://cs.unm.edu/~eschulte
and a spreadsheet formula to call a code block on
multiple table cells, but the results would be inserted back into the
table.
| A | --A-- |
| B | --B-- |
| eric| --eric--|
| schulte | --schulte-- |
#+TBLFM: $2='(sbe foo (in $$1))
#+name: foo
#+begin_src emacs-lisp
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
Ah, apologies and thanks all around.
Cheers,
Greg Minshall minsh...@acm.org 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.emacs.orgmode/64229
--
Eric Schulte
?
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
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
Michael Brand michael.ch.br...@gmail.com writes:
Hi Eric
On Wed, Jun 26, 2013 at 12:41 AM, Eric Schulte schulte.e...@gmail.com 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
the #+RESULTS line concurrently with the code block.
--
Eric Schulte
http://cs.unm.edu/~eschulte
? 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
in=heading-id()
in
#+end_src
#+RESULTS:
: property two at 762 really 762
--
Eric Schulte
http://cs.unm.edu/~eschulte
as code block results.
--
Eric Schulte
http://cs.unm.edu/~eschulte
of \\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
From c087e84a8fd80b277bf064eb31f1b893c25f1b4a Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
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
Nicolas Goaziou n.goaz...@gmail.com writes:
Hello,
Eric Schulte schulte.e...@gmail.com writes:
From c087e84a8fd80b277bf064eb31f1b893c25f1b4a Mon Sep 17 00:00:00 2001
From: Eric Schulte schulte.e...@gmail.com
Date: Mon, 24 Jun 2013 10:25:03 -0600
Subject: [PATCH] CUSTOM_ID as section label
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 strom...@nexgo.de 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 between code
blocks.
We have recently introduced
Suvayu Ali fatkasuvayu+li...@gmail.com 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 postscript eps
run into the same readability issues.
Just my 2¢
--
Eric Schulte
http://cs.unm.edu/~eschulte
*
:END:
[2] commit a79fd4be2863a300c88218b40b1adca23d9e1eb8
Author: Eric Schulte schulte.e...@gmail.com
Date: Thu Jun 20 09:53:56 2013 -0600
fix babel merge params bug from commit 693dda67
The `org-babel-params-from-properties' command was calling
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
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
Achim Gratz strom...@nexgo.de 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 code
block
.
--
Eric Schulte
http://cs.unm.edu/~eschulte
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
support, but never completed it).
--
Eric Schulte
http://cs.unm.edu/~eschulte
), and then
running that executable, as we currently do with C.
Cheers,
Simon Beaumont
---
On 13 Jun 2013, at 06:18, Eric Schulte schulte.e...@gmail.com wrote:
Simon Beaumont si...@datalligator.com writes:
Well that's really odd: I modded the paths in init.el and did
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
--
Eric Schulte
http://cs.unm.edu/~eschulte
lies.
Hope this helps,
--
Eric Schulte
http://cs.unm.edu/~eschulte
--
Eric Schulte
http://cs.unm.edu/~eschulte
Rainer M Krug rai...@krugs.de writes:
Eric Schulte schulte.e...@gmail.com writes:
I've added a :tangle-mode header argument which may be used to control
the permissions of tangled files. See the manual for instructions on
it's usage.
Thanks a lot. I will try it out today or tomorrow
Michael Brand michael.ch.br...@gmail.com writes:
Hi Eric
On Sun, Jun 9, 2013 at 9:18 PM, Eric Schulte schulte.e...@gmail.com 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
, stupid of me. Thanks for sending this alert, I've just pushed up a
change which should fix this problem. We now wait to set the file modes
until after all blocks are tangled and after the post-tangle-hook has
been run.
Thanks,
--
Eric Schulte
http://cs.unm.edu/~eschulte
Org-mode version 8.0.3 (release_8.0.3-215-g8e1e6f @
/home/eschulte/src/org-mode/lisp/)
--
Eric Schulte
http://cs.unm.edu/~eschulte
Michael Brand michael.ch.br...@gmail.com writes:
Hi Eric
On Sat, Jun 8, 2013 at 8:03 PM, Eric Schulte schulte.e...@gmail.com wrote:
I've just pushed up a commit which should fix this problem. The
org-babel-current-exec-src-block-head variable wasn't bound during
export.
Confirmed, thanks
To demonstrate, run M-: (org-element-context) with the point at the
beginning of the following, and notice that the second ) is not
included in the returned string.
call_foo(bar=(+ 2 2))
Cheers,
--
Eric Schulte
http://cs.unm.edu/~eschulte
the ambiguity, but I'm not strongly committed either way.
I'll happily commit whatever is generally appealing.
--
Eric Schulte
http://cs.unm.edu/~eschulte
401 - 500 of 2930 matches
Mail list logo