From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Orthogonality of blocks Date: Wed, 28 Dec 2011 08:10:24 +0100 Message-ID: <80k45htbmn.fsf@somewhere.org> References: <4EFA208B.6040905@gmail.com> <87zkedkaz5.fsf@gmx.com> <4EFA34C0.3000200@christianmoe.com> <7612.1325028604@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: 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-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Nick, Nick Dokos wrote: > Here's one (rather less elegant than Christian's CSS magic) way > that preserves the HTML behavior: > > #+author: Christian Moe > #+title: Side by side code blocks > #+style: > > How to say hello in two languages: > > #+LaTeX: \begin{minipage}[t]{2.5in} > #+begin_src perl :results output > # Perl > sub say_hello { > print "Hello, world"; > } > > say_hello; > #+end_src > #+LaTeX: \end{minipage}\begin{minipage}[t]{2.5in} > #+begin_src python :results output > # Python > def say_hello(): > print("Hello, world") > > say_hello() > #+end_src > #+LaTeX: \end{minipage} > > Anybody for ODT? while preserving the HTML and LaTeX behavior? :-) BTW, > I use minted - I hope it works with listings but I have not tried it. The above, using my default settings for Listings: http://i.imgur.com/xooS3.png Best regards, Seb -- Sebastien Vauban