From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Orthogonality of blocks Date: Wed, 28 Dec 2011 11:00:04 +0530 Message-ID: <81mxad6z6r.fsf@gmail.com> References: <4EFA208B.6040905@gmail.com> <87zkedkaz5.fsf@gmx.com> <4EFA34C0.3000200@christianmoe.com> <7612.1325028604@alphaville.dokosmarshall.org> <81r4zp713f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33903) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rfm5q-00009h-Pr for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 00:30:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rfm5p-0005D7-LF for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 00:30:26 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:36391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rfm5p-0005D1-Ep for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 00:30:25 -0500 Received: by iacb35 with SMTP id b35so23131969iac.0 for ; Tue, 27 Dec 2011 21:30:24 -0800 (PST) In-Reply-To: <81r4zp713f.fsf@gmail.com> (Jambunathan K.'s message of "Wed, 28 Dec 2011 10:18:52 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org, mail@christianmoe.com, Eric Schulte , Charles Turner --=-=-= Content-Type: text/plain > Use list-tables which is a Experimental-cum-ODT-only feature. See the > attachment. Additional note: List tables are also a feature of the XHTML backend. (add-to-list 'load-path "~/src/org-mode/contrib/lisp") M-x load-library RET org-xhtml RET M-x org-export-as-xhtml-and-open RET See the attached HTML output for what you get. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=side-by-side.org Content-Description: side-by-side.org * Testing #+begin_list-table - Say Hello in Perl #+begin_src perl :results output # Perl sub say_hello { print "Hello, world"; } say_hello; #+end_src - Say Hello in Python #+begin_src python :results output # Python def say_hello(): print("Hello, world") say_hello() #+end_src #+end_list-table --=-=-= Content-Type: text/html Content-Disposition: inline; filename=side-by-side.html Content-Description: side-by-side.html side-by-side

side-by-side

Table of Contents

1 Testing

Say Hello in Perl

# Perl
		sub say_hello {
		print "Hello, world";
		}

		say_hello;
		

Say Hello in Python

# Python
		def say_hello():
		print("Hello, world")

		say_hello()
		

Date: 2011-12-28 10:54:15 India Standard Time

Author: Jambunathan K

Org version 7.8.02 with Emacs version 24

Validate XHTML 1.0
--=-=-= Content-Type: text/plain >> >>> hth, >>> Christian >>> >>> --- >>> >>> #+title: Side by side code blocks >>> #+style: >>> >>> How to say hello in two languages: >>> >>> #+begin_src perl :results output >>> # Perl >>> sub say_hello { >>> print "Hello, world"; >>> } >>> >>> say_hello; >>> #+end_src >>> #+begin_src python :results output >>> # Python >>> def say_hello(): >>> print("Hello, world") >>> >>> say_hello() >>> #+end_src >> >> -- --=-=-=--