HELP: Yet Another Literate Emacs Configuration!

HELP is the culmination of everything that I’ve learned about literate programming (LP) in Org-Mode—written with the intent to share it with others in total and complete respect and consideration of you and the value of your time. No platitude here: time is precious.

With that in mind here is a breakdown of the sections you might be interested in (and should ignore):

Continue reading “HELP: Yet Another Literate Emacs Configuration!”

bash: update_terminal_cwd: command not found resolution

When you run Bash under shell in Emacs on macOS then update_terminal_cwd is never defined and after every command you get the error message bash: update_terminal_cwd: command not found making the shell unusable.

The simplest solution is to define update_terminal_cwd when it isn’t defined.

Here is the code:

if [ -z “$(type -t update_terminal_cwd)” ] || [ “$(type -t update_terminal_cwd)” != “function” ]; then
update_terminal_cwd() {
true
}
fi

MathJax Support In Org2Blog

Use MathJax with Org2Blog.

Thank you Jon for showing how to set this up in this post and this post and this post.

The only addition is that these instructions uses a more actively maintained plugin.

  • Test it out using these (and more) examples
    • The word LaTeX in Math Mode (notice the italics)
      • \(\LaTeX\)
    • The word LaTeX in Text Mode (notice the lack of italics)
      • \(\mathrm{\LaTeX}\)
    • Inline
      • \(\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}\)
    • Equation
      • \[\sum_{i=0}^n i^2 = \frac{(n^2+n)(2n+1)}{6}\]

Reproducible Research, Literate Programming and Inter-Language Programming with Babel

Babel is about letting many different languages work together. Programming languages live in blocks inside natural language Org-mode documents. A piece of data may pass from a table to a Python code block, then maybe move on to an R code block, and finally end up embedded as a value in the middle of a paragraph or possibly pass through a gnuplot code block and end up as a plot embedded in the document.

My current approach is to use multiple languages, build scripts, intermediate files to share data, and finally weave it together inside of LaTeX. The babel way looks intriguing, with excellent support (via Emacs modes) for numerous languages. Very exciting.

2014-02-14

This paper might pique your interest.