emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-reveal questions


From: John Hendy
Subject: Re: [O] org-reveal questions
Date: Sun, 22 Nov 2015 20:55:14 -0600

On Sun, Nov 22, 2015 at 3:58 PM, Matt Price <address@hidden> wrote:
>
>
> On Sun, Nov 22, 2015 at 11:47 AM, Xebar Saram <address@hidden> wrote:
>>
>> Thanks so much Eric
>>
>> this works great!
>>
>> but i found that i have to prepend the #+ATTR_HTML: :class left before
>> every line. is there a way to make it work for the whole section (under the
>> header) or for the whole document?
>
>
> If you want it to work for the whole document, you probalby want to replace
>
> p.left {...}
>
> simply with p {}
>
> To do it for a whole section -- I think you mean a whole slide? -- I think
> you would want
>
> .left p {...}
>
> in your css file, and to add a property to the containing header like so:
>
> :PROPERTIES:
> :HTML_CONTAINER_CLASS: left
> :END:
>
> You can add a property easily with C-c C-x p
>

I'm not sure if this is the same desired result, but I recently played
around with org-reveal and wanted it left-aligned, ending up finding
this:
- 
http://stackoverflow.com/questions/21019476/how-can-i-get-left-justified-paragraphs-in-reveal-js

So I added this before my first headline:

#+begin_html
.reveal .slides { text-align: left; }
.reveal .slides .section>* { margin-left: 0; margin-right: 0; }
#+end_html

Seems to work for my whole exported document, though again, I'm not
sure if that was exactly what you were trying to do (absolutely
everything seems to be left aligned now, title slide included).


John


> HTH,
> Matt
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]