From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yujie Wen Subject: Re: [export] Tables in ox-reveal export Date: Fri, 21 Feb 2014 10:52:54 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2a478ec638e04f2e1b7ef Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGgES-0007Qc-7S for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 21:52:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGgEQ-0007av-Vm for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 21:52:56 -0500 Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:60656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGgEQ-0007ab-Px for emacs-orgmode@gnu.org; Thu, 20 Feb 2014 21:52:54 -0500 Received: by mail-qc0-f171.google.com with SMTP id x3so4881910qcv.16 for ; Thu, 20 Feb 2014 18:52:54 -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: Alexander Vorobiev Cc: emacs-orgmode --001a11c2a478ec638e04f2e1b7ef Content-Type: text/plain; charset=ISO-8859-1 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 : > 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 would produce > centered tables. Is it possible to have ox-reveal use that additional > attribute and/or other table-formatting directives? > > Thanks, > Alex > > --001a11c2a478ec638e04f2e1b7ef Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi, Alexander,

=A0 Y= ou can specify the appearance of tables in an extra .css file and tell ox-r= eveal 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=A0 The paragraph.

| Col0 | Col1=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 | Co= l2 |
|------+----------------+------|
| Cell | Something long | Cell |
| Cell | xx=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0 | Cell |
--------------------------------------------

<= br>
table.css
--------------------------------------------
.reve= al table {
=A0 =A0 margin-left: auto;
=A0 =A0 margin-right: auto;
}
---------------------------------------= -----

=A0 Then the table is rendered automatically by the brow= ser in center.

Regards,
Yujie


2014-02-19 23:43 GMT+08:00 Alexander Vor= obiev <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.co= m/questions/20583341/tables-and-div-elements-are-not-centred-in-reveal-js
that defining tables with <table class=3D"reveal"> would pr= oduce
centered tables. Is it possible to have ox-reveal use that additional
attribute and/or other table-formatting directives?

Thanks,
Alex


--001a11c2a478ec638e04f2e1b7ef--