[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] babel for sml?

2015-09-23 Thread Lawrence Bottorff
> Ista > > On Wed, Sep 23, 2015 at 9:21 AM, Lawrence Bottorff <borg...@gmail.com> > wrote: > > Is there no babel language support for Standard ML? I see a ob-sml at > elpa. > > . . > > > > LB >

[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

[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

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

2015-08-28 Thread Lawrence Bottorff
: Lawrence Bottorff borg...@gmail.com writes: What's the best way to install latest org-element and org-db? They're not default, are they? They're not in ELPA. Don't know what org-db is. Re org-element you should probably use the one that comes with your org-package. IOW, you general org

[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

[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

[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"

[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] 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] 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,

[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

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] 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

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 <t...@tsdye.com> wrote: > Aloha Lawrence, > > Lawren

[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] 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 <e.fr...@ucl.ac.uk> wrote: > On Tuesday, 16 Feb 2016 at 19:22, Lawrence Bottorff wrote: > > I'v

[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] 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 <mb...@mbork.pl> wrote: > > On 2016-02-19, at 22:26, Lawrence Bottorff <borg...@gmail.com> wrote: > > > I've got Latex's *nicefrac *working fine for a Latex export.

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 <e.fr...@ucl.ac.uk> wrote: > On Friday, 18 Mar 2016 at 11:29, Lawrence Bottorff wrote: &

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

2016-03-19 Thread Lawrence Bottorff
/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 <e.fr...@ucl.ac.uk> wrote: > On Thursday, 17 Mar 2016 at 20:59, Lawrence Bottorff wrote: > > Yes, the title sums it up. I've

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 <borg...@gmail.com&

[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

[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

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

2016-08-15 Thread Lawrence Bottorff
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 Bottorff <

[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

Re: [O] ipython not working in org mode

2016-06-29 Thread Lawrence Bottorff
n this page worked for me: > 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

[O] :results raw for html export problem

2017-01-30 Thread Lawrence Bottorff
Here's some Lisp in an org file that I export to html #+begin_src lisp :exports both :results raw (write (setf my-array (make-array '(10 (terpri) ; goo.gl/lCcdDU / Function TERPRI, FRESH-LINE (setf (aref my-array 0) 25) (setf (aref my-array 1) 23) (setf (aref my-array 2) 45) (setf (aref

[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

Re: [O] Babel prolog not working

2017-01-25 Thread Lawrence Bottorff
I did an issue at https://github.com/ljos/ob-prolog. On Wed, Jan 25, 2017 at 9:38 PM, Thomas S. Dye <t...@tsdye.com> wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > On my original system, as well on a built-from-scratch system, babel > prolog > > w

[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

[O] Publishing versus normal exporting

2017-02-17 Thread Lawrence Bottorff
I'm looking at this which seems to suggest a difference between "publishing" and normal export (e.g., C-c C-e h o to get an HTML export). The Emacs configuration given here would

Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
Aaaag! I have every confidence that someday I'll stop making a fool of myself to you good people. . . . On Thu, Feb 23, 2017 at 2:55 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > Lawrence Bottorff <borg...@gmail.com> writes: > > > I set `debug-on-

Re: [O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
Thu, Feb 23, 2017 at 11:50 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > Lawrence Bottorff <borg...@gmail.com> writes: > > > I'm trying to create Logbook entries with C-c C-z -- which has worked > fine > > in the past. But now whenever I try I get >

[O] Logbook not working?

2017-02-23 Thread Lawrence Bottorff
I'm trying to create Logbook entries with C-c C-z -- which has worked fine in the past. But now whenever I try I get org-back-to-heading: Before first headline at position 1151 in buffer current.org . . . i.e., my entry doesn't show up anywhere. What have I inadvertently messed up? LB

[O] Babel doesn't like some Racket comments

2017-02-28 Thread Lawrence Bottorff
C-c C-c-ing this code #+begin_src scheme (define (foo x) ;just add one (+ 1 x)) ; comment #+end_src causes Racket (geiser) to freeze up. Sometimes I see a Code block evaluation complete. geiser-repl--maybe-send: Args out of range: 61, 62 -like message. The culprit is the *; comment *next

Re: [O] Babel doesn't like some Racket comments

2017-03-01 Thread Lawrence Bottorff
src it works: Welcome to Racket v6.8. racket@> A (set 1 3 2 4) racket@> On Wed, Mar 1, 2017 at 8:40 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > Lawrence Bottorff <borg...@gmail.com> writes: > > > C-c C-c-ing this code > > > > #+begin_sr

[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 #\-))

[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

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 <ndo...@gmail.com> wrote: > Lawr

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

2016-09-24 Thread Lawrence Bottorff
t 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 <t...@tsdye.com> wrote: > Aloha Lawrence, > > Lawrence Bottorff writes: > > > So I can run code for a REPL-type language like Clojure

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 <borg...@gmail.com> wrote: > Not sure if you know Clojure, but here's what I've been toying with: > > #+name: my-test > #+begin_src clojure :var i=

[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

[O] ob-clojure?

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

[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] 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
ge 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: > > > Not sure if you know Clojure, but

Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
l #+STARTUP: align #+STARTUP: indent #+STARTUP: entitiespretty #+STARTUP: logdrawer On Mon, Jan 9, 2017 at 5:34 PM, Thierry Banel <tbanelweb...@free.fr> 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 ex

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 <borg...@gmail.com>

Re: [O] HTML export for math markup

2017-01-09 Thread Lawrence Bottorff
ndo...@gmail.com> wrote: > Lawrence Bottorff <borg...@gmail.com> 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 a

[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

[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,

[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

Re: [O] HTML export for math markup

2017-01-10 Thread Lawrence Bottorff
an 10, 2017 at 3:21 AM, Eric S Fraga <e.fr...@ucl.ac.uk> 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 > &

[O] Justifying a formula

2017-03-07 Thread Lawrence Bottorff
Here's what I have in a buffer: * This basic pseudo-code tells of an internally-defined variable that holds, /accumulates/ as the recursion drills down: \begin{align*} sumprod(x) \equiv if \; eq(x,NIL) \; then \; 2.list(s,p) \\ else \\ \{let \; z = sumprod(cdr(x)) \\ 2.list(car(z) +

[O] org-babel-script-escape problem

2017-09-14 Thread Lawrence Bottorff
In a fresh org file I try this: #+begin_src scheme :session mainsession (define (mysquare x) (* x x)) #+end_src and get this: executing Scheme code block... => # : ‘org-babel-script-escape’ expects a string I'm using latest elpa everything (orgmode, geiser) with Racket v6.10.1 as of this

Re: [O] Strange latex symbol behavior on html export

2017-09-13 Thread Lawrence Bottorff
il.com> wrote: > Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > > > Hello, > > > > Lawrence Bottorff <borg...@gmail.com> writes: > > > >> Consider this markup: > >> > >> > >> * MATHEMATICS AUXILIARY &g

[O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
I'm playing with the tutorial for babel-gnuplot , however I keep getting this upon C-c C-c: #+begin_src gnuplot :exports code :file images/test1.png reset set title "Putting it All Together" set xlabel "X" set xrange

Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
oes display the plot image: . . . On Sat, Oct 14, 2017 at 1:30 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Hello, > > Lawrence Bottorff <borg...@gmail.com> writes: > > > I'm playing with the tutorial for babel-gnuplot > > <http://orgmode.org/wor

Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
That did it. Thanks. On Sat, Oct 14, 2017 at 1:58 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Lawrence Bottorff <borg...@gmail.com> writes: > > > I don't get the image displayed -- without manually taking out the > > > > #+RESULTS: line. I'm saying

[O] Strange latex symbol behavior on html export

2017-09-12 Thread Lawrence Bottorff
Consider this markup: * MATHEMATICS AUXILIARY ** deriving sines and cosines #+caption: Right triangle with two $\pi\big/4$ angles. [[file:images/45-45-triangle.png]] $\big/$ If I remove the second $\big/$, the first latex, $\pi\big/4$, in the caption will not

[O] exporting Racket images

2017-10-23 Thread Lawrence Bottorff
I'm using a nice package from a Racket user called MetaPict , however, I don't know how to export the image produced. Here's some Racket code calling MetaPict: #+begin_src scheme :session mainsession :exports both (require racket/draw metapict metapict/graph)

[O] "Reference Dump" rant

2017-11-21 Thread Lawrence Bottorff
As many might gather from seeing so many of my beginner posts, I'm not exactly a Sheldon Cooper type, i.e., someone who has the A-ha! angel standing by 24/7 with her hand on his shoulder. So today I thought I'd upgrade my knowledge of org-mode tables. So I go to the section of the "manual" on

Re: [O] "Reference Dump" rant

2017-11-21 Thread Lawrence Bottorff
utions are not uncommon and are certainly welcomed - in fact, > that is one of the nice things about org-mode, the extent to which > community contributions are accepted. > > regards, > > Tim > > Lawrence Bottorff <borg...@gmail.com> writes: > > > As many mi

Re: [O] "Reference Dump" rant

2017-11-21 Thread Lawrence Bottorff
Yes, Worg is great. If a user is really driven they can scarf up all the various tutorial bits and pieces and begin to have a clue. BTW, where can I get the source for the latest manual? On Tue, Nov 21, 2017 at 9:03 PM, Thomas S. Dye <t...@tsdye.com> wrote: > > Lawrence Bot

Re: [O] MathJax beyond org-html-mathjax-options?

2017-11-03 Thread Lawrence Bottorff
cancel.js? As you all know I'm not a "developer-class" poster here, so my questions often look dull-witted. Will try the patch once I learn a bit more diff in Emacs lore. . . . On Thu, Nov 2, 2017 at 9:12 AM, Rasmus <ras...@gmx.us> wrote: > Lawrence Bottorff <borg...@gmail.com&

[O] Bizarre gnuplot file creation error

2017-11-04 Thread Lawrence Bottorff
Trying the babel gnuplot the other day, I had trouble getting the results to C-c C-c to actually materialize in the place I'd given. Taking the example from the org-mode babel gnuplot page, (changing the location): #+begin_src gnuplot :exports both :file omnigraphics/omnig10.png reset set title

Re: [O] Bizarre gnuplot file creation error

2017-11-07 Thread Lawrence Bottorff
Still haven't tracked down the exact steps to reproduce this problem, but it happened again recently -- and starting a new emacs from the command line solved it, i.e., my usual daemon-run emacs seems to be "crudding up" somehow. On Sat, Nov 4, 2017 at 1:05 PM, Lawrence Bottorff <borg

[O] MathJax beyond org-html-mathjax-options?

2017-10-31 Thread Lawrence Bottorff
I'm trying to get a typical Latex strikethrough with MathJax in an HTML export, i.e., \cancel{thing} puts line through "thing". This tells me how. But I don't know how to include this MathJax markup in an org file for HTML export. If I forego

[O] Ad-hoc, mix-and-match tag hierarchies?

2018-02-01 Thread Lawrence Bottorff
Is it possible to have two or more tags that are "peers," i.e., all equal, not in a hierarchy, be in an ad-hoc, as-needed way be hierarchical? For example, I have the tags *org-mode, lisp, *and *emacs, *and I want to have a header with the tags * my header:emacs:org-mode:lisp: So the above

Re: [O] Ad-hoc, mix-and-match tag hierarchies?

2018-02-01 Thread Lawrence Bottorff
So a left-to-right listing of (colon-separated) tags after the heading cannot imply a higher-to-lower hierarchical order? So there is no hierarchy unless you create it, e.g., (setq org-tag-alist '((:startgrouptag) ("GTD") (:grouptags)

[O] Prompt org-capture for buffer?

2018-02-06 Thread Lawrence Bottorff
I've got this '(org-capture-templates (quote (("a" "Normal add" entry (file "~/org/notes.org") "* %(plainutc)\n%x%?" But it wants to put my captured things into ~/org/notes.org . Is there any way to have it prompt for which buffer to add to -- or even just put it in the active

[O] texi to org?

2018-02-18 Thread Lawrence Bottorff
Is there such a thing as a converter from a raw texi file to an org file? I'm experimenting with manual formats and would like to take texi/info files and convert them to org files. I've tried two approaches with pandoc, namely, html to org and text (markdown) to org -- and they've produced org

[O] Exploring picolisp

2018-02-25 Thread Lawrence Bottorff
I'm looking at picolisp -- and wondering how it works, or better, why it doesn't really work work with babel. First problem, I couldn't get any form of picolisp to work in Emacs -- until I stopped starting Emacs with emacsclient -c -a '' which sets up my daemon first. Got abstruse error -- and

[O] How to set org-tag-alist

2018-01-23 Thread Lawrence Bottorff
This describes a org-tag-alist for setting up globally a list of tags, but I'm not sure how to alter org-tag-alist. I'm used to doing an M-x customize-variable, but there is no org-tag-alist. Later on the page it has this form: (setq

[O] Soft return in footnote text?

2018-03-12 Thread Lawrence Bottorff
I'm getting carried away with a footnote and want to have it be many paragraphs long when I export it to HTML. I can put in latex math formulae, and that breaks things up. But is there a way to simply have separate text paragraph in an org-mode footnote? LB

[O] tangle versus org-babel-load-file

2018-04-03 Thread Lawrence Bottorff
I'm experimenting with Uncle Dave's config which is using a minimum init.el to launch config.org, which is full of elisp babel source blocks. Here's his relevant launching code: (when (file-readable-p "~/.emacs.d/config.org") (org-babel-load-file (expand-file-name "~/.emacs.d/config.org")))

Re: [O] Library of Babel confusion

2018-04-04 Thread Lawrence Bottorff
2018 at 4:44 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > Lawrence Bottorff <borg...@gmail.com> writes: > > > I've been trying to grok LOB again. So I've cloned the worg git and > > library-of-babel.el is one of the files. org-babel-lob-injest didn't > > work

Re: [O] Library of Babel confusion

2018-04-06 Thread Lawrence Bottorff
elisp code that is not in the form of a function. So I'm guessing "functions" cannot be #+call'ed, just "headless" elisp code. So what advantage does LOB offer? On Tue, Apr 3, 2018 at 5:39 PM, Berry, Charles <ccbe...@ucsd.edu> wrote: > > > > On Apr 3, 2018,

Re: [O] Library of Babel confusion

2018-04-10 Thread Lawrence Bottorff
n Fri, Apr 6, 2018 at 10:38 PM, Berry, Charles <ccbe...@ucsd.edu> wrote: > > > > On Apr 6, 2018, at 4:59 PM, Thomas S. Dye <t...@tsdye.com> wrote: > > > > [Tom's response covering the main issues deleted] > > > hth, > > Tom > > >

Re: [O] Library of Babel confusion

2018-04-11 Thread Lawrence Bottorff
abel-lob-ingest FILE) > > All the best, > Tom > > > Lawrence Bottorff writes: > > Thanks for the help. However, one mystery still remains: Why is this >> >> '(org-babel-lob-files (quote ("~/org/worg/library-of-babel.org"))) >> >> in my init.el'

[O] Library of Babel confusion

2018-04-03 Thread Lawrence Bottorff
I've been trying to grok LOB again. So I've cloned the worg git and library-of-babel.el is one of the files. org-babel-lob-injest didn't work, so I customized org-babel-lob-files and inserted .../worg/library-of-babel.el . . . and it did in fact get added to my init.el under the

[O] Suppress table when creating gnuplot on HTML export?

2018-02-27 Thread Lawrence Bottorff
I've got this: #+tblname: mydata | -2 | 0 | | -0.015 | 0 | || | | 0.015 | 1 | | 2 | 1 | ##+begin_src gnuplot :var data=mydata :exports results :file images/gap1.png #+begin_src gnuplot :var data=mydata :results output :file images/gap1.png reset set terminal png size 350,262

[O] Babel SML oddity

2018-11-13 Thread Lawrence Bottorff
I'm following a Coursera course that uses ML. I have SML up and running on Emacs 26.1/orgmode 9.1.14. So in an orgmode buffer I have #+begin_src sml val u = 1; val v = 2; val w = u + v; #+end_src and C-c C-c produces #+RESULTS[8b5...]: : val v = 2 : int while the REPL (*sml*) produces - val u

[O] Change HTML export metadata

2018-12-17 Thread Lawrence Bottorff
I've got this: Date: 2018-12-17T14:47:18 Author: me Created: 2018-12-17 Mon 14:51 Validate standard "metadata" coming at the end of whatever I html-export. I'm sure I can change this, right? Also, does anyone have a tutorial (or in-depth discussion) of org mode CSS lore for html export? One

[O] HTML :exports both problem

2018-11-18 Thread Lawrence Bottorff
Try this at home: #+begin_src lisp :results output :exports both (dotimes (i 4) (format t "~3d " i)) #+end_src #+RESULTS: : 0 1 2 3 #+name: #+begin_src lisp :exports both (defun multabl () (dotimes (x 20) (dotimes (y 20) (format t "~3d " (* (1+ x) (1+ y

Re: [O] HTML :exports both problem

2018-11-19 Thread Lawrence Bottorff
here a way to toggle that behavior? On Mon, Nov 19, 2018 at 3:16 AM Eric S Fraga wrote: > On Sunday, 18 Nov 2018 at 23:55, Lawrence Bottorff wrote: > > Try this at home: > > [...] > > > Am I missing something? > > I don't have lisp installed (or at least Emacs doesn't

[O] Easy templates broken with 9.2

2019-01-26 Thread Lawrence Bottorff
It seems my easy templates completion is being ignored. I'm 9.2 (9.2-41-g010a35-elpa ...). I've found a reference or two online but the fix, i.e., running (require 'org-tempo) only produced error messages. The "documentation" doesn't really say exactly what the new format is. Here's a sample of

Re: [O] local variables to initialize org buffer?

2019-03-31 Thread Lawrence Bottorff
Sure, but how should it be implemented? On Sun, Mar 31, 2019 at 9:33 PM Berry, Charles wrote: > Will `org-babel-load-file' suffice? > > HTH, > > Chuck > > > On Mar 31, 2019, at 7:05 PM, Lawrence Bottorff > wrote: > > > > I'm trying to figure out how to st

[O] logbook file?

2019-03-26 Thread Lawrence Bottorff
So I can add a logbook entry to my org file with C-c C-z and it goes into a logbook drawer on that file. Is there a way to associate that entry with an external file? That is, can I have all logbook entries automatically be written to, say, a logbook.org file. Or, is there a quick way to simply

[O] doi-utils, org-ref-bibtex: separate or included?

2019-03-23 Thread Lawrence Bottorff
I've got this code in my init: (use-package doi-utils :ensure t :after org) (use-package org-ref-bibtex :after org :init (setq org-ref-bibtex-hydra-key-binding "\C-cj")) I'm not sure where I got this code, but it errors out. There is no ELPA for these, correct? What's the best way to install

[O] Python with org-mode

2019-03-29 Thread Lawrence Bottorff
I've seen many "start using Python" parades, but what is the best way to use Python with org-mode, i.e., in babel source blocks? I'm on U18.10, which comes with standard 2 (2.7.15+) and 3 (3.6.7). But then I keep hearing about Anaconda. Your opinions, experiences, please. LB

[O] local variables to initialize org buffer?

2019-03-31 Thread Lawrence Bottorff
I'm trying to figure out how to start up slime and do org-babel-execute-buffer when I open a certain org-mode file full of Lisp source code blocks. I guess Local Variables: eval: (elisp-function) End: is discouraged. So I looked at in buffer settings

Re: [O] local variables to initialize org buffer?

2019-04-01 Thread Lawrence Bottorff
Mon, Apr 1, 2019 at 1:37 AM Eric S Fraga wrote: > On Sunday, 31 Mar 2019 at 21:05, Lawrence Bottorff wrote: > > I'm trying to figure out how to start up slime and do > > org-babel-execute-buffer when I open a certain org-mode file full of Lisp > > source code blocks. I guess >

[O] MathJax font confusion

2019-03-05 Thread Lawrence Bottorff
I'm trying to get odd behavior in an org-mode HTML export cleared up. (See this .) I've got this table { font-family: monospace; /* font-family:'eulermedium_18'; */ font-size: 1.05em; margin-left:5%; margin-right:auto; margin-top:0.5em;

[O] Definitive answer to org-mode export HTML versus LaTeX

2019-01-29 Thread Lawrence Bottorff
I keep being stymied by the apparent incompatibility of HTML and LaTeX export. Here's what I have in my .org file header: #+LATEX_CLASS: article #+LATEX_CLASS_OPTIONS: [american] #+LATEX_HEADER: \usepackage{tikz} #+LATEX_HEADER: \usepackage{commath} #+LATEX_HEADER: \usepackage{stackengine}

[O] (no subject)

2019-02-03 Thread Lawrence Bottorff
At the bottom of this is a description of adding a `org-store-link` inside of a babel code block edit called with C-c ' , however, it doesn't seem to work with C-c l , although M-x org-store-line does work. Or am I seeing, doing this wrong? LB

[O] Error in Literal Examples manual?

2019-02-04 Thread Lawrence Bottorff
At the bottom of this is a description of adding a `org-store-link` inside of a babel code block edit called with C-c ' , however, it doesn't seem to work with C-c l , although M-x org-store-line does work. Or am I seeing, doing this wrong? Sorry

[O] Manual available?

2019-02-04 Thread Lawrence Bottorff
Is the latest org-mode manual available as an org file? Is there a github for it somewhere? LB

[O] Prolog: REPL hangs

2019-06-04 Thread Lawrence Bottorff
Have a look at this over at stackoverflow. I'm once again playing the eternal product tester. This time Prolog, and it seems like an org-mode problem. Could be wrong, though. LB

<    1   2   3   >