Re: [O] Orthogonality of blocks

2011-12-30 Thread Eric S Fraga
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. > > Is this possible? It doesn't seem to be. I think it would be nice to > shove collapsed blocks into org table cells and have them

Re: [O] Orthogonality of blocks

2011-12-28 Thread Jambunathan K
If I look at the figures in the link provided, I am reminded of table.el tables. Put your different src blocks in table.el tables, this way even if you don't get fontification of src blocks atleast you will have a side-by-side output with both html and latex backends. Charles Turner writes: >

Re: [O] Orthogonality of blocks

2011-12-28 Thread Charles Turner
On 27/12/11 21:12, Christian Moe wrote: will do it in HTML. Full example follows below. I'll leave LaTeX to those in the know... Thanks. This was the "best" solution for me. I quote because the abstraction boundary between "how it's rendered" and "what I want to be rendered" is getting fuligi

Re: [O] Orthogonality of blocks

2011-12-27 Thread Sebastien Vauban
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: pre.src {display: table-cell;} > > How to say hello in two languages: > > #+LaTeX: \begin{mini

Re: [O] Orthogonality of blocks

2011-12-27 Thread Jambunathan K
> Use list-tables which is a Experimental-cum-ODT-only feature. See the > attachment. Additional note: List tables are also a feature of the XHTML backend. (add-to-list 'load-path "~/src/org-mode/contrib/lisp") M-x load-library RET org-xhtml RET M-x org-export-as-xhtml-and-open RET See the atta

Re: [O] Orthogonality of blocks

2011-12-27 Thread Jambunathan K
Nick Dokos writes: > Christian Moe wrote: > >> 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 w

Re: [O] Orthogonality of blocks

2011-12-27 Thread Torsten Wagner
Hi, just want to point out, there is orgs beamer support which can easily place blocks side by side. Worg has a tutorial about this. Torsten On Dec 28, 2011 8:30 AM, "Nick Dokos" wrote: > Christian Moe wrote: > > > On 12/27/11 9:37 PM, Eric Schulte wrote: > > > Charles Turner writes: > > > > >

Re: [O] Orthogonality of blocks

2011-12-27 Thread Nick Dokos
Christian Moe wrote: > 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 poss

Re: [O] Orthogonality of blocks

2011-12-27 Thread Christian Moe
Oh, right, it gets a bit more complicated if you want better control of the tabulated blocks, i.e. border separation and spacing between the table cells. Then you first need to wrap them in a . You could do that with literal HTML, or (my preference) with org-special-blocks. Use CSS to display t

Re: [O] Orthogonality of blocks

2011-12-27 Thread Eric Schulte
Christian Moe writes: > 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

Re: [O] Orthogonality of blocks

2011-12-27 Thread Christian Moe
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 writin

Re: [O] Orthogonality of blocks

2011-12-27 Thread Eric Schulte
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. > > Is this possible? It doesn't seem to be. I think it would be nice to > shove collapsed blocks into org table cells and have them

[O] Orthogonality of blocks

2011-12-27 Thread Charles Turner
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. Is this possible? It doesn't seem to be. I think it would be nice to shove collapsed blocks into org table cells and have them rendered in the usual fashion