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: <style>pre.src {display: table-cell;}</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