From: Carsten Dominik <carsten.dominik@gmail.com>
To: nicholas.dokos@hp.com
Cc: emacs-orgmode@gnu.org, henry atting <nsmp_01@online.de>
Subject: Re: export table html centered
Date: Sun, 16 Aug 2009 07:06:26 +0200 [thread overview]
Message-ID: <6AF0BA90-9287-40BF-97E7-81A65BA92F56@gmail.com> (raw)
In-Reply-To: <19718.1250385230@gamaville.dokosmarshall.org>
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 <nicholas.dokos@hp.com> 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.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
next prev parent reply other threads:[~2009-08-16 5:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-15 16:57 export table html centered henry atting
2009-08-15 19:50 ` Nick Dokos
2009-08-16 1:13 ` Nick Dokos
2009-08-16 5:06 ` Carsten Dominik [this message]
2009-08-16 10:22 ` henry atting
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6AF0BA90-9287-40BF-97E7-81A65BA92F56@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
--cc=nsmp_01@online.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).