henry atting <nsmp...@online.de> wrote:

> That is what I am searching for: Is there a markup rule that puts org
> tables centered on the resulting page when exported as html.
> Seems that #+BEGIN_CENTER – #+END_CENTER does not do this, marking a
> table like that solely leads to an error message:
> 
> progn: Args out of range: 84, 906
> 
> 

Version info: Org-mode version 6.29trans
              GNU Emacs 23.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 
2009-08-09 on gamaville.dokosmarshall.org

I don't get an error using #+BEGIN_CENTER/#+END_CENTER, but otoh I also
don't get a centered table: it's meant for centered paragraphs I think.

The align= attribute for a table is deprecated and I don't know what
the currently recommended method is (probably CSS - but I don't know much
about that). But if you don't mind using deprecated attributes, and assuming
you want *every* table centered, then customizing

    org-export-table-header-tags

to add 

    align="center"

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  |
`----

HTH,
Nick


        


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

Reply via email to