Jisang Yoo <jisang.yoo...@gmail.com> writes:

> I can write a table:
>
> | Python | Emacs Lisp |
> |--------+------------|
> |        |            |
>
> and I can write two source code blocks:
>
> #+BEGIN_SRC python
>   a = [0, 1, 2]
>   a[0] += 10
> #+END_SRC
> #+BEGIN_SRC elisp
>   (setq a (vector 0 1 2))
>   (cl-incf (elt a 0) 10)
> #+END_SRC
>
> but I don't know how to combine the two-column table with the two
> source code blocks in a way that exports to code tables like in
> Emergency Elisp

The ODT exporter - I believe it is *the only* exporter - that has
something called list tables.  See attachments.  You can make a special
request to turn it on for other exporters.

As far as HTML export is concerned there are some special CSS tricks
that you can use.  Search for posts by Christian Moe and look for the
keywords "side-by-side", "list table" or something like that.  You will
see atleast 3-5 threads where this question has popped up.

Attachment: list-table.odt
Description: application/vnd.oasis.opendocument.text

#+attr_odt: :list-table t
- Python
  - Elisp
- 
  #+BEGIN_SRC python
    a = [0, 1, 2]
    a[0] += 10
  #+END_SRC
  - 
    #+BEGIN_SRC elisp
      (setq a (vector 0 1 2))
      (cl-incf (elt a 0) 10)
    #+END_SRC

Reply via email to