emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Yujie Wen <yjwen.ty@gmail.com>
To: Alexander Vorobiev <alexander.vorobiev@gmail.com>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: [export] Tables in ox-reveal export
Date: Fri, 21 Feb 2014 10:52:54 +0800	[thread overview]
Message-ID: <CAHenMCFPPS=POR42Ei=3cFSKkiuEiUhnqyaoyqxV+DesQsc1kg@mail.gmail.com> (raw)
In-Reply-To: <CAGOCFPVo1vucVFUUZcDZCq2pjb6968-FFFtbOe4Hc8A+xJyERg@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1434 bytes --]

Hi, Alexander,

  You can specify the appearance of tables in an extra .css file and tell
ox-reveal to use that .css file by specifying #+REVEAL_EXTRA_CSS. For
example, say I have a table.org and a table.css in the same directory. The
contents of the two files are:

table.org
---------------------------------------------
#+REVEAL_EXTRA_CSS: ./table.css
* Head1
  The paragraph.

| Col0 | Col1           | Col2 |
|------+----------------+------|
| Cell | Something long | Cell |
| Cell | xx             | Cell |
--------------------------------------------


table.css
--------------------------------------------
.reveal table {
    margin-left: auto;
    margin-right: auto;
}
--------------------------------------------

  Then the table is rendered automatically by the browser in center.

Regards,
Yujie


2014-02-19 23:43 GMT+08:00 Alexander Vorobiev <alexander.vorobiev@gmail.com>
:

> Hi,
> Is it possible to control appearance of tables in reveal.js
> presentations created with ox-reveal? The resulting html tables appear
> on the left and I want to be able to have them centered.
>
> There is a comment at
>
> http://stackoverflow.com/questions/20583341/tables-and-div-elements-are-not-centred-in-reveal-js
> that defining tables with <table class="reveal"> would produce
> centered tables. Is it possible to have ox-reveal use that additional
> attribute and/or other table-formatting directives?
>
> Thanks,
> Alex
>
>

[-- Attachment #2: Type: text/html, Size: 2162 bytes --]

      reply	other threads:[~2014-02-21  2:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-19 15:43 [export] Tables in ox-reveal export Alexander Vorobiev
2014-02-21  2:52 ` Yujie Wen [this message]

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='CAHenMCFPPS=POR42Ei=3cFSKkiuEiUhnqyaoyqxV+DesQsc1kg@mail.gmail.com' \
    --to=yjwen.ty@gmail.com \
    --cc=alexander.vorobiev@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).