emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Hendy <jw.hendy@gmail.com>
To: Matt Price <moptop99@gmail.com>
Cc: Xebar Saram <zeltakc@gmail.com>, org mode <emacs-orgmode@gnu.org>
Subject: Re: org-reveal questions
Date: Sun, 22 Nov 2015 20:55:14 -0600	[thread overview]
Message-ID: <CA+M2ft-=9xE6pBYF8a+ycXX4Uy=Xs=F8a9VgS9bZtAn2H3RZOg@mail.gmail.com> (raw)
In-Reply-To: <CAN_Dec9YEjeG1Z0F5QLsjJOh8-ZdTXXTZWSA6SavOLSfqzLTMg@mail.gmail.com>

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 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	other threads:[~2015-11-23  2:55 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-23  5:16 org-reveal questions Xebar Saram
2015-10-23  6:18 ` Eric S Fraga
2015-10-23  6:45   ` Xebar Saram
2015-10-23  8:39     ` Eric S Fraga
2015-10-23  9:09       ` Fabrice Popineau
2015-10-23  9:20         ` Xebar Saram
2015-10-23 14:58           ` Matt Lundin
2015-10-23 16:08           ` Matt Price
2015-11-22 14:25             ` Xebar Saram
2015-11-22 15:50               ` Eric S Fraga
2015-11-22 16:47                 ` Xebar Saram
2015-11-22 21:58                   ` Matt Price
2015-11-23  2:55                     ` John Hendy [this message]
2015-12-03  9:07                       ` Xebar Saram
2015-12-04 14:55                         ` John Hendy
2015-12-04 15:49                           ` Xebar Saram
2015-12-04 18:52                             ` John Hendy
2015-12-03  9:10                     ` Xebar Saram
2015-10-23 13:27         ` Andreas Leha
2015-10-23 16:15   ` Matt Price
2015-10-25 20:46     ` Eric S Fraga
2015-10-25 22:01       ` Matt Price
2015-10-26 16:34         ` Matt Price
2015-10-27 14:41         ` Eric S Fraga
2015-10-26 15:43       ` Xebar Saram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CA+M2ft-=9xE6pBYF8a+ycXX4Uy=Xs=F8a9VgS9bZtAn2H3RZOg@mail.gmail.com' \
    --to=jw.hendy@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=moptop99@gmail.com \
    --cc=zeltakc@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).