emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] export table html centered


From: Carsten Dominik
Subject: Re: [Orgmode] export table html centered
Date: Sun, 16 Aug 2009 07:06:26 +0200

Hi Henry, Nick,

another way would be this:

#+STYLE: <style>table.center {margin-left:auto; margin- right:auto;}</style>

    * A centered table

    #+ATTR_HTML: class="center"
    | a | b | c |
    |---+---+---|
    | 1 | 2 | 3 |

    * An uncentered table

    | a | b | c |
    |---+---+---|
    | 1 | 2 | 3 |


You can also configure org-export-html-table-tag to add the class="center"
if you want to center all tables.

HTH

- Carsten

On Aug 16, 2009, at 3:13 AM, Nick Dokos wrote:

Nick Dokos <address@hidden> wrote:

...  But if you don't mind using deprecated attributes, and assuming
you want *every* table centered, then customizing

   org-export-table-header-tags

...

Correction: that should be

    org-export-html-table-tag

Sorry about that - the BIND version below is correct.

should do it. You can also use #+BIND to do it per-file:

,----
| #+BIND: org-export-html-table-tag "<table align=\"center\" border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">"
| | foo | bar |
| |-----+-----|
| | 1   | 2   |
| | 2   | 5   |
| | 3   | 10  |
`----

Thanks,
Nick


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode





reply via email to

[Prev in Thread] Current Thread [Next in Thread]