emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How can I write side by side code comparison table


From: Jambunathan K
Subject: Re: [O] How can I write side by side code comparison table
Date: Thu, 11 Jul 2013 16:43:09 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Jisang Yoo <address@hidden> 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

Attachment: list-table.org
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]