From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Re: Orthogonality of blocks Date: Tue, 27 Dec 2011 22:12:32 +0100 Message-ID: <4EFA34C0.3000200@christianmoe.com> References: <4EFA208B.6040905@gmail.com> <87zkedkaz5.fsf@gmx.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RfeEK-0005Pk-K9 for emacs-orgmode@gnu.org; Tue, 27 Dec 2011 16:06:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RfeEJ-0001Fr-L8 for emacs-orgmode@gnu.org; Tue, 27 Dec 2011 16:06:40 -0500 Received: from b1.hitrost.net ([91.185.211.67]:29513) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RfeEJ-0001Ct-Fy for emacs-orgmode@gnu.org; Tue, 27 Dec 2011 16:06:39 -0500 In-Reply-To: <87zkedkaz5.fsf@gmx.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org, Charles Turner On 12/27/11 9:37 PM, Eric Schulte wrote: > Charles Turner writes: > >> Problem: I have two code blocks (#+BEGIN_SRC .. #+END) and I want to >> display them side by side on the page, perhaps within an org table. (...) > Note that what you describe is likely possible using the existing > exporter and writing some custom CSS to control how the serial content > is displayed on the page. The "display" css style would be relevant > here. Yes, pre.src {display: table-cell;} will do it in HTML. Full example follows below. I'll leave LaTeX to those in the know... 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