[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Orthogonality of blocks
From: |
Sebastien Vauban |
Subject: |
Re: [O] Orthogonality of blocks |
Date: |
Wed, 28 Dec 2011 08:10:24 +0100 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.91 (windows-nt) |
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
- [O] Orthogonality of blocks, Charles Turner, 2011/12/27
- Re: [O] Orthogonality of blocks, Eric Schulte, 2011/12/27
- Re: [O] Orthogonality of blocks, Christian Moe, 2011/12/27
- Re: [O] Orthogonality of blocks, Nick Dokos, 2011/12/27
- Re: [O] Orthogonality of blocks, Torsten Wagner, 2011/12/27
- Re: [O] Orthogonality of blocks, Jambunathan K, 2011/12/27
- Re: [O] Orthogonality of blocks, Jambunathan K, 2011/12/28
- Re: [O] Orthogonality of blocks,
Sebastien Vauban <=
- Re: [O] Orthogonality of blocks, Charles Turner, 2011/12/28
- Re: [O] Orthogonality of blocks, Jambunathan K, 2011/12/29
- [O] Enhancing table cell alignments and commenting columns (was Re: Orthogonality of blocks), Jambunathan K, 2011/12/29
- Re: [O] Enhancing table cell alignments and commenting columns (was Re: Orthogonality of blocks), Jambunathan K, 2011/12/29
- Re: [O] Enhancing table cell alignments and commenting columns (was Re: Orthogonality of blocks), Jambunathan K, 2011/12/29
- Re: [O] Orthogonality of blocks, Jambunathan K, 2011/12/29
Re: [O] Orthogonality of blocks, Eric S Fraga, 2011/12/30