Org mode: Table Data ⇒ Code ⇒ Results

Quick example of how to use table data in a source block with Bash:

#+name: data
| 1 |
| 2 |
| 3 |
| 4 |

#+name: code
#+begin_src sh :var arg=data :results output
printf "%s\n" "${arg[@]}"
#+end_src

#+RESULTS: code
#+begin_EXAMPLE
1
2
3
4
#+end_EXAMPLE

Here is how the block expands using org-babel-expand-src-block:

unset arg
declare -a arg=( '1' '2' '3' '4' )
printf "%s\n" "${arg[@]}"

Choosing Between Code and Verbatim Markup In Org Mode

Its helped me to standardize my approach to marking up techie language. Keeping it simple the content is either programming stuff or everything else tech related. Sufficiently vauge you see: I write down examples to keep it straight in my head. Here you go:

Continue reading “Choosing Between Code and Verbatim Markup In Org Mode”

Try Out Org2Blog v1.1.0 Using This Package

Right now you can’t try out an Org2Blog v1.1.0 package from MELPA because it isn’t yet building using Org2Blog’s new recipe. Eventually the pull request will get merged. Once it does I will push the changes. However, you can still try out v1.1.0 using a package.

If you’ve been waiting to try Org2Blog v1.1.0 using a package then you can download it here just download the tar file. After downloading it you can install it from Emacs by typing M-x package-install-file and then choosing the file org2blog-master.tar you just downloaded.

The package manager should install the required packages but if it doesn’t it will warn you and you can manually install them. Depending on how you configured package-archives and package-archive-priorities everything should go just fine. Let me know if it doesn’t.

Checkout the README.org now included within the package.

Happy blogging

Interested in testing Org2Blog v1.1.0?

Org2Blog v1.1.0 has some improvements to it. The README has a lot more in it. There is a user interface (Hydra) now that makes all of the features very visible and easy to use. Some code was refactored and some features were implemented and completed. There are a lot more status and other messages to help make sense of what the application is doing. There is a Test Plan and notes about Contributing.

Tonight I finished coding and testing Org2Blog 1.1.0 as far as I can take it. You know the point where you lose the ability to see the artifacts anymore? That is where I am. Everything seems to work, I’ve been using it and “it works on my computer” lol. It is ready for folks that feel like trying out the new version. Folks who are patient and curious and pretty OK with bugs ranging from the dumb to the painful along with suggesting improvements for better documentation and even new functionality might enjoy this sort of thing.

The source code is here. If you want to try it out from a package here is the latest build.

Blogging With Emacs? From Org2Blog? to WordPress

Blogging from Org2Blog to WordPress just works and that is just about all there is to it. All of the markup works. Even MathJax works:

Brad told me that this is the most beautiful equation in mathematics:

Euler’s Formula: \(e^{ \pm i\theta } = \cos \theta \pm i\sin \theta\)

Thank you Brad.

https://raw.githubusercontent.com/grettke/wisdomandwonder/master/post/2019-02-01-01.org is this post itself ??.

Start using it https://github.com/org2blog/org2blog!