Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

columns in reveal.js with org-mode

How can I create columns in org-mode when I export this via org-reveal?

I found this link RevealJS with Bootstrap Columns. This seems to work, but how can I do this when using org mode? *** are already reserved for the structure of the document.

like image 916
Revan Avatar asked Oct 15 '15 12:10

Revan


2 Answers

I found a solution in this presentation, where the column class is used.

To use it with org-reveal, I did the following:

#+REVEAL_HTML: <div class="column" style="float:left; width: 50%">
Column 1
#+REVEAL_HTML: </div>

#+REVEAL_HTML: <div class="column" style="float:right; width: 50%">
Column 2
#+REVEAL_HTML: </div>
like image 190
Renato Candido Avatar answered Oct 04 '22 07:10

Renato Candido


I could find one possible solution. Probably not the most elegant one.

Columns can be created with bootstrap columns. So, as extra css, bootstrap.css should be loaded.

In the org file header:

#+REVEAL_EXTRA_CSS: bootstrap.css

and at the specific position in the org file:

#+REVEAL_HTML: <div class='span6'>
...
#+REVEAL_HTML: </div>

#+REVEAL_HTML: <div class='span6'>
...
#+REVEAL_HTML: </div>

Is there a more elegant way to do this?

like image 32
Revan Avatar answered Oct 04 '22 07:10

Revan