As I mentioned in my post Emacs: The Ultimate Editor?, one of the things I love about Emacs is Org mode, which provides excellent facilities for working with plain text and exporting it to a variety of other formats. Recently I’ve used Org mode to prepare a number of tables within documents that I then export to and compile to PDF. Key here is Org’s ability to easily add or remove rows and columns, sort rows, and even transpose a table (see below). This blog is written in Org mode and exported to WordPress using org2blog.
A couple of months ago, version 8 of Org was released. It has many improvements over earlier versions but also some changes in syntax. In particular, the export engine has been rewritten. These changes are quite likely to break older Org files. Indeed the release notes say Org 8.0 is the most disruptive major version of Org.
Here is a list of problems I’ve experienced and the fixes. I’m currently using Org 8.0.3.
- Export to Beamer didn’t work until I added
to my .emacs.
- org2blog was broken in Org 8. A new branch for Org 8 was released at https://github.com/ptrv/org2blog/tree/org-8-support. In my tests
org2blog/wp-post-subtreedid not work properly: the title was being copied as a section heading. This was quickly fixed by author Peter Vasil earlier this week and org2blog is now working fine for me with Org 8.
- The syntax for table alignments has changed. In Org <8:
#+ATTR_LaTeX: align = |l|...
In Org 8:
#+ATTR_LaTeX: :align |l|...
Finally, here are a couple of useful, but easy to miss, features of Org.
A new command
org-table-transpose-table-at-point in Org 8 provides the array transpose function. With the cursor in the table
M-x org-table-transpose-table-at-point produces
This could be particularly useful in a file, provided
orgtbl-mode is being used, as there is no easy way to transpose a table.
I’m not sure if this is new to ORG 8, but in any case it’s new to me. Type
<s followed by
tab and an empty source block magically appears:
Very useful! The following table shows all the available expansions:
|----------+------------------| | Sequence | Expands to | |----------+------------------| | <s | #+BEGIN_SRC | | <e | #+BEGIN_EXAMPLE | | <q | #+BEGIN_QUOTE | | <v | #+BEGIN_VERSE | | <V | #+BEGIN_VERBATIM | | <c | #+BEGIN_CENTER | | <l | #+BEGIN_LaTeX | | <L | #+LaTeX | | <h | #+BEGIN_HTML | | <H | #+HTML | | <a | #+BEGIN_ASCII | | <A | #+ASCII: | | <i | #+INDEX: | | <I | #+INCLUDE: | |----------+------------------|