From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: org-reveal questions Date: Thu, 3 Dec 2015 11:07:18 +0200 Message-ID: References: <87wpue5cq9.fsf@ucl.ac.uk> <8737x2ashh.fsf@ucl.ac.uk> <87y4dqc9ud.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c088908c67b980525fab7ba Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4PrJ-0008FW-1g for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 04:07:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4PrD-00069h-KV for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 04:07:24 -0500 Received: from mail-yk0-x233.google.com ([2607:f8b0:4002:c07::233]:34907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4PrD-00069X-Eh for emacs-orgmode@gnu.org; Thu, 03 Dec 2015 04:07:19 -0500 Received: by ykba77 with SMTP id a77so78304054ykb.2 for ; Thu, 03 Dec 2015 01:07:18 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: org mode --94eb2c088908c67b980525fab7ba Content-Type: text/plain; charset=UTF-8 Thx John (again sorry for late response) the html block example dosent seem to work for me , i tried adding the block before the first header and below the first header with no success. does this go into the property drawer or literally as a html code block? best Z On Mon, Nov 23, 2015 at 4:55 AM, John Hendy wrote: > On Sun, Nov 22, 2015 at 3:58 PM, Matt Price wrote: > > > > > > On Sun, Nov 22, 2015 at 11:47 AM, Xebar Saram 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 > > > --94eb2c088908c67b980525fab7ba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thx = John (again sorry for late response)

the html block exam= ple dosent seem to wo= rk for me , i tried adding the block before the first header and below the = first header with no success. does this go into the property drawer or lite= rally as a html code block?

best

Z

On Mon, Nov 23, 2015 at 4:55 AM, John Hendy <jw.hendy@gmail.com&g= t; wrote:
On Sun,= Nov 22, 2015 at 3:58 PM, Matt Price <moptop99@gmail.com> wrote:
>
>
> On Sun, Nov 22, 2015 at 11:47 AM, Xebar Saram <zeltakc@gmail.com> wrote:
>>
>> Thanks so much Eric
>>
>> this works great!
>>
>> but i found that i have to prepend the #+ATTR_HTML: :class left be= fore
>> 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 re= place
>
> p.left {...}
>
> simply with p {}
>
> To do it for a whole section -- I think you mean a whole slide? -- I t= hink
> 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:
- ht= tp://stackoverflow.com/questions/21019476/how-can-i-get-left-justified-para= graphs-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
>

--94eb2c088908c67b980525fab7ba--