[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Orthogonality of blocks
From: |
Christian Moe |
Subject: |
Re: [O] Orthogonality of blocks |
Date: |
Tue, 27 Dec 2011 22:12:32 +0100 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 |
On 12/27/11 9:37 PM, Eric Schulte wrote:
Charles Turner<address@hidden> 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: <style>pre.src {display: table-cell;}</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