Sometimes I need to create tables in Emacs as it was in post describing comparison and arithmetic operations in Python and Erlang.
Over time I became aware of several means to create tables and export them in different formats in Emacs(at the moment I’m personally interested in plain ASCII and HTML):
- Excellent org-mode has built-in table editor which allows easily format tables in plain ASCII
- table.el with its advanced ability to construct table layout
Both modes (technically though Table mode in table.el is not mode) are part of modern Emacs and both allow export table in HTML format.
To quickly create tables personally I prefer table.el which provides also following features:
- A cell can be split horizontally and vertically.
- A cell can span into an adjacent cell.
Use C-h b in table to get self-descriptive information about table.el key bindings. In contrast to org-mode(or its orgtbl-mode minor mode) table.el has no special bindings to copy row/cell and yank it. But this is easily achieved by using usual region commands for rows and rectangular commands for cells.