[O] Babel prolog not working

2017-01-25 Thread Lawrence Bottorff
On my original system, as well on a built-from-scratch system, babel prolog won't work for me. I've got latest swi-prolog 7.4.0 installed, along with Emacs 25.1.1, and org 9.0.4, along with ob-prolog 20170102.953, and prolog (major mode) 1.22. Anything I put in a code block, e.g., #+BEGIN_SRC prol

[O] Can't install org-plus-contrib from org elpa

2017-01-25 Thread Lawrence Bottorff
I'm trying a clean install with this in my init.el (require 'package) (add-to-list 'package-archives '("melpa-stable" . "http://melpa-stable.milkbox.net/packages/";)) (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/";)) ;; Initialize all the ELPA packages (what is install

[O] Import and run tizk code in org-mode

2017-01-13 Thread Lawrence Bottorff
If I have an org-mode file where I want to embed a TikZ rendering at a certain place, I've found the simplest is just to throw something like this in where you want it, i.e., no latex code block necessary: \begin{figure} \centering \newlength\figureheight \newlength\figurewidth \se

Re: [O] HTML export for math markup

2017-01-10 Thread Lawrence Bottorff
On Tue, Jan 10, 2017 at 3:21 AM, Eric S Fraga wrote: > On Tuesday, 10 Jan 2017 at 00:13, Lawrence Bottorff wrote: > > This is the entirety of my header section. I'm sure there are > > redundancies etc. But again, the clean vanilla of Emacs 25.1.1 and > > org-mo

Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
org-html-with-latex is t and org-export-with-latex is also t. I don't have a org-html-format-latex, or at least nothing comes up with C-h v org-html-format-latex. Also, how does edebug work as you, Nick, described? On Mon, Jan 9, 2017 at 7:13 PM, Lawrence Bottorff wrote: > This is the

Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
STARTUP: showall #+STARTUP: align #+STARTUP: indent #+STARTUP: entitiespretty #+STARTUP: logdrawer On Mon, Jan 9, 2017 at 5:34 PM, Thierry Banel wrote: > Le 09/01/2017 16:28, Lawrence Bottorff a écrit : > > I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I export &g

Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
kos wrote: > Lawrence Bottorff writes: > > > I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I > export this to HTML, it produces png > > files for each markup and puts them in a subfolder ltximg. Is there any > way to skip this translating to > >

[O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
I've got an org file with Latex math markup, e.g. $x_2/y^3$. When I export this to HTML, it produces png files for each markup and puts them in a subfolder ltximg. Is there any way to skip this translating to pictures and just use MathJax directly. I've seen this

[O] Beginner's unluck with bibtex and org-mode

2017-01-07 Thread Lawrence Bottorff
I've got this in an org buffer: #+BIBLIOGRAPHY: ~/org/biblio/ref plain * Tests ** Test1 - This is a test \cite{pitman1997probability}. --- and this in ref.org (as well as a copy in ref.bib without the first variable line) -*- mode: bibtex; fill-column: 60 -*- @book{harrison2009handbook, titl

[O] Best diagram, image software?

2016-10-04 Thread Lawrence Bottorff
I know lots of you use Emacs and org mode to prepare scholarly books and papers, either doing the HTML or, more probably, the Latex export. Question: Let's say I want to produce a math text with Emacs/org-mode/Latex. What is the best way to make diagrams and images? I've seen things like Inkscape a

[O] Babel and clojure vars

2016-09-27 Thread Lawrence Bottorff
Once before I was wondering why :vars doesn't seem to work properly with clojure. This works: #+begin_src clojure :var a='(1 2 3 4 5) (count a) #+end_src #+RESULTS: : 5 as well as this #+begin_src emacs-lisp :var a=(number-sequence 1 5) a #+end_src #+RESULTS: num-seq-test1 | 1 | 2 | 3 | 4 | 5

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Lawrence Bottorff
gt; > Or, you might change the myfun1 source code block to return a list, > rather than a function (if I'm reading Clojure correctly): > > #+name: myfun1 > #+begin_source clojure > [8 9] > #+end_source > > hth, > Tom > > Lawrence Bottorff writes: > > >

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Lawrence Bottorff
Sorry, mis-typed: #+begin_src clojure :var i=myfun1 (map inc i) #+end_src On Sat, Sep 24, 2016 at 4:53 PM, Lawrence Bottorff wrote: > Not sure if you know Clojure, but here's what I've been toying with: > > #+name: my-test > #+begin_src clojure :var i=[1 2] >

Re: [O] Generate new babel code blocks and/or initialized code/data?

2016-09-24 Thread Lawrence Bottorff
un. . . ). What might be wrong with my Clojure attempt? I've tried (myfun1), myfun1, and myfun1() gives an error. On Tue, Sep 20, 2016 at 3:33 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > So I can run code for a REPL-type language like Cl

[O] Generate new babel code blocks and/or initialized code/data?

2016-09-20 Thread Lawrence Bottorff
So I can run code for a REPL-type language like Clojure in a babel code block and get "results," e.g., a Clojure code block takes in a vector of mappings and produces new "results": #+RESULTS[abc5c51bb569a82c19c4eea1c385c74e839922c7]: symmetrize-body-parts-test | :name | head| :size |

[O] ob-clojure?

2016-09-19 Thread Lawrence Bottorff
Is there an ob-clojure in elpa? If not should I use this ? LB

[O] Modules, libraries, eggs, etc.

2016-09-06 Thread Lawrence Bottorff
Racket has a nice module system whereby a module is kept in a plain text .rkt file. For example, #lang racket (provide print-cake) ; draws a cake with n candles (define (print-cake n) (show " ~a " n #\.) (show " .-~a-. " n #\|) (show " | ~a | " n #\space) (show "---~a---" n #\-)) (def

Re: [O] Scheme babel error

2016-08-30 Thread Lawrence Bottorff
ed to just be a source block execute of the function, whereas before it was the actual code -- as if the problem in ob-scheme.el had escaped and hidden somewhere new. How does one make an official bug report and/or fix? On Tue, Aug 30, 2016 at 1:16 PM, Nick Dokos wrote: > Lawrence Bottorff write

[O] Scheme babel error

2016-08-30 Thread Lawrence Bottorff
I'm using Racket with Geiser and I get this error: executing Scheme code block... => #f org-babel-scheme-execute-with-geiser: Invalid read syntax: "#" when in an org-mode file this code #+begin_src scheme :exports both :session ch3 (define (bool-imply2 x y) (or (not x) y)) #+end_src is run (C

Re: [O] Latex equation numbering on left instead of right

2016-08-15 Thread Lawrence Bottorff
; where the TagSide "left" can be changed after output by hand to "right", and that solves the problem. So how would I tell org-mode to make this change? Is there any control over MathJax from Emacs variables or my org-mode file? On Sun, Aug 14, 2016 at 7:25 PM, Lawrence

[O] Latex equation numbering on left instead of right

2016-08-14 Thread Lawrence Bottorff
I've got this \begin{align} n &= 0 \\ n &= m + 1 \end{align} in an org-mode buffer. When I produce a Latex output, the numbering n = 0 (1) etc. is properly placed on the right. But an HTML output places the numbering on the left. What do I need to do to have both HTML and Latex output place the

Re: [O] ipython not working in org mode

2016-06-29 Thread Lawrence Bottorff
gt; https://github.com/gregsexton/ob-ipython/issues/63 > > I had to change python-shell-interpreter to python from ipython. It's just > a temporary fix until they update the codebase. Hope that helps... > > Best, > Naupaka > > Date: Wed, 29 Jun 2016 10:58:46 -0400 >>

[O] ipython not working in org mode

2016-06-29 Thread Lawrence Bottorff
I've followed everything here (https://github.com/gregsexton/ob-ipython) in order to set up ipython in org mode. But I keep getting the error: ...executing Ipython code block... apply: Searching for program: no such file or directory, ipython when I try the sample code block #+BEGIN_SRC ipython

[O] Haskell source blocks?

2016-06-22 Thread Lawrence Bottorff
I'm guessing Haskell and org-mode Babel aren't really a great match? After installing haskell-mode, I've tried #+begin_src haskell doubleMe x = x + x #+end_src which isn't working . . . because it isn't allowed in the ghci? #+begin_src haskell let doubleMe x = x + x #+end_src works. However, #

Re: [O] org-mode on Windows Emacs doesn't offer html export

2016-03-19 Thread Lawrence Bottorff
Thanks for the advice. Yes, a stripped-down org file did work. Will troubleshoot till the culprit sinister is found. On Fri, Mar 18, 2016 at 9:46 AM, Fabrice Popineau < fabrice.popin...@supelec.fr> wrote: > > > 2016-03-18 14:35 GMT+01:00 Lawrence Bottorff : > >> Yes,

Re: [O] org-mode on Windows Emacs doesn't offer html export

2016-03-19 Thread Lawrence Bottorff
el-6812T7_/latex-6812ivv.pdf wasn't produced Not sure what this is about or what it has to do with exporting to html. LB On Fri, Mar 18, 2016 at 3:13 AM, Eric S Fraga wrote: > On Thursday, 17 Mar 2016 at 20:59, Lawrence Bottorff wrote: > > Yes, the title sums it up. I've just

[O] org-mode on Windows Emacs doesn't offer html export

2016-03-19 Thread Lawrence Bottorff
Yes, the title sums it up. I've just ported my .emacs.d, org stuff, etc. from my Linux to my work Windows 10, and I can't get the export to offer html or latex. Even org-export-html-to-html doesn't work, gives error message org-latex-compile: PDF file c:/Users/Admin/AppData/Local/Temp/babel-73881p

Re: [O] org-mode on Windows Emacs doesn't offer html export

2016-03-18 Thread Lawrence Bottorff
Yes, Eric, that's probably the case . . . and I just don't have my latex ducks in a row yet. I've been spoiled on Linux -- things just working. . . On Fri, Mar 18, 2016 at 1:30 PM, Eric S Fraga wrote: > On Friday, 18 Mar 2016 at 11:29, Lawrence Bottorff wrote: > > Thank

Re: [O] Org-mode: How to render latex inside ~code~

2016-02-27 Thread Lawrence Bottorff
Got it set (custom-set-variables ... '(org-pretty-entities t) ... but nothing changed. ~> (cons 1 nil) \to (1)~ still outputs the raw \to even though in the buffer it changes. On Sat, Feb 27, 2016 at 8:41 PM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff w

[O] Org-mode: How to render latex inside ~code~

2016-02-27 Thread Lawrence Bottorff
This seems a catch-22: I want to render code in an org-mode export (html or latex pdf) where the snippet below done as a ~code block > (cons 1 nil) \to (1) actually renders \to as a proper right arrow (yields). Of course if I do the snippet as inline latex $> (cons 1 nil) \to (1)$ I get the pro

Re: [O] Latex package nicefrac for HTML export

2016-02-19 Thread Lawrence Bottorff
has the slanted fraction look in HTML. On Fri, Feb 19, 2016 at 9:35 PM, Marcin Borkowski wrote: > > On 2016-02-19, at 22:26, Lawrence Bottorff wrote: > > > I've got Latex's *nicefrac *working fine for a Latex export. I've put > > > > #+LaTeX_HEADER: \

[O] Latex package nicefrac for HTML export

2016-02-19 Thread Lawrence Bottorff
I've got Latex's *nicefrac *working fine for a Latex export. I've put #+LaTeX_HEADER: \usepackage{nicefrac} at the top of my file, and this inlined $\pi = \nicefrac{C}{d}$ But for an HTML export, it's not seeing it, giving back π=\nicefracCd. Is there anything I can do to get my HTML export to

Re: [O] Embedding images in Org Mode for HTML export

2016-02-18 Thread Lawrence Bottorff
That seemed to work -- sometimes. But it's probably best to simply produce each graphic separately, then embed as a png in the org file. On Wed, Feb 17, 2016 at 8:54 AM, Eric S Fraga wrote: > On Tuesday, 16 Feb 2016 at 19:22, Lawrence Bottorff wrote: > > I&#x

[O] Embedding images in Org Mode for HTML export

2016-02-16 Thread Lawrence Bottorff
I've got this code: #+begin_src latex :packages '(("" "tikz")) :exports results :results output raw :file fsa.png \usetikzlibrary{backgrounds} \begin{tikzpicture} \draw (0,0) grid (10,5); \draw (0,0) node[below left] {$A$}; \draw (10,5) node[above right] {$B$}; \fill (0,0) circle (2pt);

Re: [O] ox-tufte-latex

2016-02-02 Thread Lawrence Bottorff
I found this , but I'm not getting it to work. I assume it's outdated? Will wait for this new effort of yours, Mr. Dye. this

[O] link to open new tab

2016-01-18 Thread Lawrence Bottorff
I've seen this discussion, but it doesn't really answer the question of how to have a link upon export to HTML do a :target _blank (new tab). The given answer #+ATTR_HTML: :target _blank works exactly once -- for the

[O] quote block interrupts text?

2016-01-03 Thread Lawrence Bottorff
I've got this ** The quick red fox #+BEGIN_QUOTE red foxes are great #+END_QUOTE jumped over the lazy brown dog. But when I export to HTML I see the 1.5 The quick red fox Red foxes are great. jumped over the lazy b

[O] Where are Babel code block results kept?

2015-12-06 Thread Lawrence Bottorff
I do this #+name: org-calc2 #+begin_src emacs-lisp :session :tangle yes :cache yes (calc-eval "deg(42@ 26' 36.42\")") #+end_src #+name:org-calc3 #+begin_src emacs-lisp (expt (string-to-number (org-sbe "org-calc2")) 2) #+end_src #+name:org-calc4 #+begin_src emacs-lisp (+ 1 (string-to-number (org-

[O] How does org mode write to a file?

2015-11-21 Thread Lawrence Bottorff
Excuse my elisp ignorance, but I've got this: #+name: elisp-unordered-ast #+begin_src emacs-lisp :file myastfile.ast (org-element-parse-buffer) #+end_src which works fine. Question: Where is the elisp code that does this writing of `org-element-parse-buffer` output to file? I'm stumped on how to

[O] All source block properties on one line -- or foldied?

2015-11-20 Thread Lawrence Bottorff
Is there a way to put all of these prelim header lines on one line, such as turning this #+NAME: named-block #+HEADER: :var data=2 #+BEGIN_SRC emacs-lisp (message "data:%S" data) #+END_SRC to, perhaps, this #+NAME: named-block; #+HEADER: :var data=2; #+BEGIN_SRC emacs-lisp (message "data:%S" dat

[O] Place skeleton code in source block template?

2015-11-19 Thread Lawrence Bottorff
I have customized the org-structure-template-alist to include a special version of an emacs-lisp source code block (attached to

[O] Capture and use export header numbering?

2015-11-04 Thread Lawrence Bottorff
When an outline tree of headers * top 1 ** something ** something ** something *** something something * something ** something is exported, say, to html, org-mode produces a numerical outline as deep as the options are set 1. top 1.1. something 1.2. something 1.3. something 1.3.1.

Re: [O] Babel: How to call code in one org file into another org file

2015-10-31 Thread Lawrence Bottorff
just as good, i.e., LOB seems hardly worth it. My whole motivation is to avoid having to scroll through endless code blocks all on the same level, rather, to have things more modular and distributed, a bit like DDLs in MS-land. On Sat, Oct 31, 2015 at 4:34 PM, Nick Dokos wrote: > Lawrence

Re: [O] How does Library of Babel actually work?

2015-10-31 Thread Lawrence Bottorff
to t and org babel should be happy. On Sat, Oct 31, 2015 at 3:53 PM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > New thread. Anyway, putting lisp/SLIME aside, I experimented with emacs > lisp -- and got > > the same results, i.e., no real LOB functionality, despite p

Re: [O] Babel: How to call code in one org file into another org file

2015-10-31 Thread Lawrence Bottorff
Yes, I experimented with this too -- and got it to work. But strangely, if you leave out the # eval: (org-babel-lob-ingest "./a.org") # eval: (org-babel-lob-ingest "./b.org") lines and do a regular `org-babel-lob-ingest` (or C-c C-v i) on those two files -- *it doesn't work. *Rather bizarre beha

[O] How does Library of Babel actually work?

2015-10-31 Thread Lawrence Bottorff
New thread. Anyway, putting lisp/SLIME aside, I experimented with emacs lisp -- and got the same results, i.e., no real LOB functionality, despite proper loading. I must be doing something wrong? I'll describe my process again: Load a.org and b.org into `org-babel-library-of-babel` with `org-babel

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
> > > I would use local variables for this--something like (untested): > > # eval: (org-babel-lob-ingest path/to/your/file) > # eval: (sbe "my-add") > # eval: (sbe "multi_x2") > > Computer savvy Org moders don't like eval because anything can happen, > but if you're willing to trust yourself, then

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
Org-mode version 8.3.2 (8.3.2-10-g00dacd-elpa @ ../.emacs.d/elpa/org-20151005/) Did you all see my post directly before? The whole LOB idea seems not to work with Lisp/SLIME. . .

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
In my init file I have (custom-set-variables . . . '(org-babel-lob-files (quote ("/home/hercynian/org/babeltest/a.org" "/home/hercynian/org/babeltest/ b.org"))) that, of course, lasted an Emacs reboot after I had set them with customization. But then right after Emacs reboot, looking

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
@John Kitchin: I can't seem to find a `org-babel-load-file`.

Re: [O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
files. Any way to have this happen automatically upon C-c C-c-ing my main org file? I found this <https://lists.gnu.org/archive/html/emacs-orgmode/2010-09/msg01172.html> discussion, but I don't believe it really addresses my wish. LB On Fri, Oct 30, 2015 at 8:55 PM, Thomas S. Dye

[O] Babel: How to call code in one org file into another org file

2015-10-30 Thread Lawrence Bottorff
There are many, many Babel examples, but I can't seem to find this functionality: A function in a Lisp code block in one org file is to be called from a Lisp code block in another org file. Is this possible? I know you can stick stuff into your personal "Library of Babel," but I just want to write

[O] Suppress export of Abstract block?

2015-10-23 Thread Lawrence Bottorff
How would I suppress the #+begin_abstract ... #+end_abstract block content, specifically for the HTML export? :exports none doesn't seem to work. I saw the drawer hide, but this a block, not a drawer Lb

[O] Bizarre C-c ' error

2015-10-21 Thread Lawrence Bottorff
I found this bizarre thing while doing some babel coding. I start by putting this template together #+name: leibniz_3 #+begin_src lisp :session :exports code :results silent #+end_src Then from this page I copy this code (some 40 lines d

Re: [O] Adding custom ordered list "bullet" symbols?

2015-10-15 Thread Lawrence Bottorff
> > ... assuming that OP is talking about latex export. > I assumed he was talking about the org buffer - we'll have to wait > and see who guessed correctly :-) > > -- > Nick > > Subtle. Yes, both would be nice, both in the buffer and as an HTML export. I put this (setq org-list-demote-modify-bull

Re: [O] Adding custom ordered list "bullet" symbols?

2015-10-15 Thread Lawrence Bottorff
uohy wrote: > There is a way using UTF-8 chars. https://github.com/sabof/org-bullets > > On Thu, Oct 15, 2015 at 2:07 PM, Lawrence Bottorff > wrote: > >> Would there be a way to add a \rightarrow (or other latex symbols) as an >> ordered list "bullet"? >> >> LB >> > >

[O] Adding custom ordered list "bullet" symbols?

2015-10-15 Thread Lawrence Bottorff
Would there be a way to add a \rightarrow (or other latex symbols) as an ordered list "bullet"? LB

Re: [O] Latex strikethrough or cancel?

2015-10-10 Thread Lawrence Bottorff
Actually I spoke too soon. Putting (setq org-html-mathjax-template (concat org-html-mathjax-template " MathJax.Hub.Register.StartupHook(\"TeX Jax Ready\",function () { MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions.macros,{ cancel: [\"Extension\",\"cancel\"], bcancel: [\"Extension\

Re: [O] Latex strikethrough or cancel?

2015-10-08 Thread Lawrence Bottorff
Yes, Nick, I put it in my init and it worked. Amazing to me is how an elisp concat just works, so I don't have to hack around with the org-html-mathjax-template (Too close to Halloween). Thanks, everyone. On Thu, Oct 8, 2015 at 3:12 PM, Nick Dokos wrote: > Nick Dokos writes: > > > ... > > You m

Re: [O] Latex strikethrough or cancel?

2015-10-08 Thread Lawrence Bottorff
Sticking this after my initialization #+ stuff finally worked: #+begin_html MathJax.Hub.Config({ TeX: {extensions: ["cancel.js"]}, tex2jax: { inlineMath: [ ['$','$'], ['\\(','\\)'] ], processEscapes: true } }); #+end_html although I, the eternal beginner, don't quite unders

[O] Latex strikethrough or cancel?

2015-10-07 Thread Lawrence Bottorff
I've got a fraction done this way in an org file: \[ \frac{1}{(2^3)(5)} \] and I'd like to strike though or cancel the (5) part. The Latex method I've found says do it this way: ... \usepackage[makeroom]{cancel} ... \[ \frac{1}{(2^3)\cancel{(5)}} \] But it's ignored and comes back verbatim

Re: [O] babel srcname? Calling Library of Babel code?

2015-10-06 Thread Lawrence Bottorff
Thanks for the info, T. Now, if I commit a file of source code blocks to be "library of babel," how do I then call them? Is there some sort of prefix? On Tue, Oct 6, 2015 at 5:15 AM, Thomas S. Dye wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > Not rea

[O] babel srcname? Calling Library of Babel code?

2015-10-05 Thread Lawrence Bottorff
Not really getting how to call code "meta-style" from other points -- in my file, in other files, in my "library of babel" file? I've tracked down bits and pieces here and there, but I'm missing the big picture. For example, this: #+srcname: python2_env #+begin_src emacs-lisp (setq org-babel-py

Re: [O] babel header arguments tutorial?

2015-09-27 Thread Lawrence Bottorff
I guess from a purely elisp perspective I'm baffled. How is #+begin_src emacs-lisp org-babel-default-header-args:Python #+end_src supposed to produce #+RESULTS: | (:session . foo) | as it supposedly does in the doc? It doesn't for me. (Where, e.g., would "foo" be coming from?) If it had worke

[O] babel header arguments tutorial?

2015-09-26 Thread Lawrence Bottorff
I see this and find the bottom section ("Setting language and file specific default header argument value") intriguing, however too cryptic. Can someone explain what's going on here and how to use it? LB

[O] emacs-lisp babel won't print

2015-09-25 Thread Lawrence Bottorff
If I do this: #+BEGIN_SRC emacs-lisp (setq animals '(gazelle giraffe lion tiger)) #+END_SRC #+RESULTS: | gazelle | giraffe | lion | tiger | and then this #+begin_src emacs-lisp (defun print-elements-of-list (list) "Print each element of LIST on a line of its own." (while list (print (ca

[O] latex \ulcorner not working?

2015-09-24 Thread Lawrence Bottorff
In my effort to get org mode just how I want it, I wanted to have some sort of way to distinguish "code," or just a single code-like word (symbol, command, etc.) inside a .org file. If I type the usual such as \beta or \lceiling, the system immediately snaps to the actual system. But \ulcorner and

Re: [O] babel for sml?

2015-09-23 Thread Lawrence Bottorff
ary. I did install it and it works, BTW. On Wed, Sep 23, 2015 at 2:10 PM, Ista Zahn wrote: > I don't understand. You see ob-sml, but you ask if there is no > support? From the looks of it, ob-sml provides babel language support > for Standard ML, no? > > Best, > Ista > > On

[O] babel for sml?

2015-09-23 Thread Lawrence Bottorff
Is there no babel language support for Standard ML? I see a ob-sml at elpa. . . LB

Re: [O] Another babel scheme issue

2015-09-16 Thread Lawrence Bottorff
I appreciate your efforts, ND. No silver bullet is just lying around, so I think I can live with this for the time being. Must learn elisp I. LB On Wed, Sep 16, 2015 at 9:56 PM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > Sort of. It doesn't give me a geiser d

Re: [O] Another babel scheme issue

2015-09-16 Thread Lawrence Bottorff
buffer, but it ignores the formatting. Same behavior with chicken. On Wed, Sep 16, 2015 at 3:30 PM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > ... > > However C- C-c-ing > > > > #+BEGIN_SRC scheme :session ch1 > > (write-file 'stdou

[O] Another babel scheme issue

2015-09-16 Thread Lawrence Bottorff
The patch to ob-scheme.el that Nick Dokos provided is working well. But another ob-scheme/geiser problem has come up. The code below #+name: letter #+header: #+begin_src scheme :exports both :session ch1 (require 2htdp/batch-io) (define (letter fst lst signature-name) (string-append (opening

Re: [O] Scheme code block gives false error message

2015-09-15 Thread Lawrence Bottorff
Ach, disregard that last bleating. Got it changed, and yes, it works -- for both guile and chicken. Thanks a ton, ND. But, yes, if there's a cool emacs way to take your diff and apply it I'd like to know. . . LB On Tue, Sep 15, 2015 at 5:25 PM, Lawrence Bottorff wrote: > . . . q

Re: [O] Scheme code block gives false error message

2015-09-15 Thread Lawrence Bottorff
. . . quick question, Nick (et al): how do I (enlightened beginner) apply the above patch? I'm using latest ELPA from org-mode repo. LB

Re: [O] Scheme code block gives false error message

2015-09-15 Thread Lawrence Bottorff
I've tried the Moebius workaround (see above). It seems to work, and #+begin_src scheme . . . seems to call my MIT scheme and do results just fine. But it ignores the idea of multiple sessions, which the geiser-based ob-scheme did so well and just has one MIT scheme "session." However it does not

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Lawrence Bottorff
On Mon, Sep 14, 2015 at 6:55 PM, Nick Dokos wrote: > > So it looks like Scheme is not a Babel language after all. > > What do you mean? There is an ob-scheme.el but it's buggy: I suspect > that every ob-*.el is buggy to some extent. Does that mean that every > language that babel supports is not

Re: [O] Scheme code block gives false error message

2015-09-14 Thread Lawrence Bottorff
So it looks like Scheme is not a Babel language after all. Is there a formal "bug report" to do? On Mon, Sep 14, 2015 at 1:39 PM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > I think this > > ( > https://mobiusengineering.wordpress.com/2015/01/11/

Re: [O] Scheme code block gives false error message

2015-09-13 Thread Lawrence Bottorff
around and see if it works. He also seems to believe Scheme is a second-class citizen in babel-land. On Sun, Sep 13, 2015 at 7:48 PM, Nick Dokos wrote: > Lawrence Bottorff writes: > > > Sorry, Nick, not following you. Could you elaborate more? As a rank > > beginner, I'm no

Re: [O] Scheme code block gives false error message

2015-09-13 Thread Lawrence Bottorff
Sorry, Nick, not following you. Could you elaborate more? As a rank beginner, I'm not sure what a backtrace is or how to produce one or how it read it. What do you mean by "master" and "maint"? On Sun, Sep 13, 2015 at 5:41 AM, Nick Dokos wrote: > Lawrence Bottorf

Re: [O] Scheme code block gives false error message

2015-09-12 Thread Lawrence Bottorff
Again, this code #+BEGIN_SRC scheme :session ch1 :exports both (define (bool-imply a b) (if (or (not a) b) #t #f)) #+END_SRC gives the error org-babel-scheme-execute-with-geiser: Invalid read syntax: "#" and this time attempting to use the function #+BEGIN_SRC scheme :session ch1 :exports bo

[O] Scheme code block gives false error message

2015-09-11 Thread Lawrence Bottorff
When I run this code: #+BEGIN_SRC scheme :session ch1 :exports both (define (check-it x) (cond ((string? x) (string-length x)) ((number? x) (if (<= x 0) x (sub1 x))) ((boolean? x) (if (and #t x) 10 20)) (else #f))) #+END_SRC I get this error message: org-babel-scheme-execute-wi

[O] Get editing window back?

2015-09-02 Thread Lawrence Bottorff
If I do a quick entry with C-c C-z, I get a nice separate window to do my entry in. Then I do C-c C-c to "commit" my entry. Q: Is there any way to get that separate editing window back to do more changes? LB

[O] Outline DOM?

2015-09-02 Thread Lawrence Bottorff
When I do an HTML export, I notice that my headings are all converted from stars to numbers -- rather deeply. Is there an underlying DOM-like object that you can glean the org buffer's hierarchical structure from? LB

Re: [O] Default html export css styles?

2015-09-01 Thread Lawrence Bottorff
So this default stuff is located in ox-html.el I'm guessing. If I wanted to override the default behavior of putting a border and a gray bar around a source code block, there really isn't a specific Org Export HTML customization entry for that. I'd just have to figure out how to override the specif

[O] Default html export css styles?

2015-09-01 Thread Lawrence Bottorff
When I do an HTML export of my org buffer, it produces a default css section in the head:

[O] Preface, user's guide, cataloging key?

2015-08-31 Thread Lawrence Bottorff
I'm currently using :LOGBOOK: at the very top of my org file to make a sort of daily pre-work tweet. That is, right under my top-level star-1 header. I'd also like a key or metadata or user's guide up at the top, too. For example, I have borrowed my Wordpress categories as my main header sections,

Re: [O] Set babel scheme to chicken?

2015-08-29 Thread Lawrence Bottorff
wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > I have a few schemes installed on my computer (MIT, guile, chicken), but > > when I run such code as this > > > > #+BEGIN_SRC scheme :session one > > (define (myadd x y) > >(+ x y)) &g

[O] Set babel scheme to chicken?

2015-08-29 Thread Lawrence Bottorff
I have a few schemes installed on my computer (MIT, guile, chicken), but when I run such code as this #+BEGIN_SRC scheme :session one (define (myadd x y) (+ x y)) #+END_SRC it works -- beautifully with multiple REPLs (as you name them in the :session) -- but it always grabs the guile. I'd like

Re: [O] install org-element, org-db

2015-08-28 Thread Lawrence Bottorff
place the output directly into my buffer without placing it in the #+RESULTS: output format? I see I can customize the #+RESULTS: word itself, and, of course, *:results raw* almost gets it, but still puts the #+RESULTS: label at the top. On Fri, Aug 28, 2015 at 4:27 PM, Rasmus wrote: > Lawre

[O] install org-element, org-db

2015-08-28 Thread Lawrence Bottorff
What's the best way to install latest org-element and org-db? They're not default, are they? They're not in ELPA.

Re: [O] Babel for eshell?

2015-08-23 Thread Lawrence Bottorff
ind eshell I can stay within org-mode within emacs for system stuff. Sure, I could put sh in blocks, but stepping up into scripting seems like a good practice to develop. On Wed, Aug 19, 2015 at 2:44 PM, Lawrence Bottorff wrote: > Is there any way to do literate Babel-style things with eshell? On

[O] Babel for eshell?

2015-08-19 Thread Lawrence Bottorff
Is there any way to do literate Babel-style things with eshell? Only shell (sh) seems to be listed among the languages. As I understand, eshell is just a wrapper around actual elisp expressions. For example, find-file foobar.txt is actually (find-file "foobar.txt") I'd like to do shell-like stu

Re: [O] babel scheme not working

2015-05-28 Thread Lawrence Bottorff
Yes, thanks, the :session did the trick. Is that documented somewhere? Also, it ignored my running MIT Scheme and fired up a Guile REPL in the next buffer. I guess it's doing something with Geiser, hence, Guile? On Thu, May 28, 2015 at 3:20 PM, Nick Dokos wrote: > Lawrence Bottorff

Re: [O] babel scheme not working

2015-05-28 Thread Lawrence Bottorff
The MIT scheme repl is running in the next buffer. . . On May 28, 2015 2:16 PM, "Nick Dokos" wrote: > Lawrence Bottorff writes: > > > . . . installed geiser via elpa -- and got some functionality. Although > a simple thing like > > > > #+BEGIN_SRC schem

Re: [O] babel scheme not working

2015-05-28 Thread Lawrence Bottorff
. . . installed geiser via elpa -- and got some functionality. Although a simple thing like #+BEGIN_SRC scheme (define (mydouble x) (+ x x)) #+END_SRC doesn't seem to remember from one block to the next. So, after defining the code above #+BEGIN_SRC scheme (mydouble 5) #+END_SRC gives an err

[O] babel scheme not working

2015-05-28 Thread Lawrence Bottorff
#+BEGIN_SRC scheme (define (mydouble x) (+ x x)) #+END_SRC produces org-babel-execute-src-block: Symbol's value as variable is void: geiser-default-implementation also, no indentation or color coding of any sort (maybe this isn't a feature yet?) LB

Re: [O] LOGBOOK notes for other drawers?

2015-05-23 Thread Lawrence Bottorff
. . . also, is there a way to have several notes in a drawer ordered oldest-first? On Sat, May 23, 2015 at 9:32 AM, Lawrence Bottorff wrote: > It seems that when I try to do a note (C-c C-z) I get an automatic LOGBOOK > drawer created with the new note put inside. Is there any way to p

[O] LOGBOOK notes for other drawers?

2015-05-23 Thread Lawrence Bottorff
It seems that when I try to do a note (C-c C-z) I get an automatic LOGBOOK drawer created with the new note put inside. Is there any way to place a note inside another type of drawer. I have a drawer like this: :PROPERTIES: :CUSTOM_ID: :SEMANTIC: :DESC: :END and I'd like to place notes -- one aft

[O] customize LOGBOOK note intro text?

2015-05-22 Thread Lawrence Bottorff
When I do C-c C-z to start a LOGBOOK entry note, the text reads "Note taken on", then the timestamp. Is there any way to customize the text -- or get rid of it and have just the timestamp? LB

[O] LOGBOOK entry lands outside LOGBOOK

2015-05-21 Thread Lawrence Bottorff
I'm using the C-c C-z to make what I though would be LOGBOOK entries, but they seem to appear outside the :LOGBOOK . . . :END: block, even though my cursor is positioned inside the block. What do I do to keep them inside? Also, I seem to have created this header: *** | |

<    1   2   3   >