* [export] Tables in ox-reveal export
@ 2014-02-19 15:43 Alexander Vorobiev
2014-02-21 2:52 ` Yujie Wen
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Vorobiev @ 2014-02-19 15:43 UTC (permalink / raw)
To: emacs-orgmode
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [export] Tables in ox-reveal export
2014-02-19 15:43 [export] Tables in ox-reveal export Alexander Vorobiev
@ 2014-02-21 2:52 ` Yujie Wen
0 siblings, 0 replies; 2+ messages in thread
From: Yujie Wen @ 2014-02-21 2:52 UTC (permalink / raw)
To: Alexander Vorobiev; +Cc: emacs-orgmode
[-- 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 --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-02-21 2:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 15:43 [export] Tables in ox-reveal export Alexander Vorobiev
2014-02-21 2:52 ` Yujie Wen
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).