emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Re: export table html centered


From: henry atting
Subject: [Orgmode] Re: export table html centered
Date: Sun, 16 Aug 2009 12:22:42 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

On So, Aug 16 2009, Carsten Dominik wrote:

> 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

Hi Nick, hi Dominik,

as I have my own stylesheet I did not deal with the #+STYLE option to
much. But it's very helpful, great.

Many thanks
henry




reply via email to

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