From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atting Subject: Re: export table html centered Date: Sun, 16 Aug 2009 12:22:42 +0200 Message-ID: <87tz08hxcd.fsf@online.de> References: <877hx5ow0g.fsf@online.de> <15041.1250365819@gamaville.dokosmarshall.org> <19718.1250385230@gamaville.dokosmarshall.org> <6AF0BA90-9287-40BF-97E7-81A65BA92F56@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mcct2-0001dk-QN for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 06:22:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mccsx-0001bc-Es for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 06:22:52 -0400 Received: from [199.232.76.173] (port=51061 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mccsw-0001bJ-H7 for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 06:22:47 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:60092) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mccsv-0006Xv-Te for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 06:22:46 -0400 In-Reply-To: <6AF0BA90-9287-40BF-97E7-81A65BA92F56@gmail.com> (Carsten Dominik's message of "Sun, 16 Aug 2009 07:06:26 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org, henry atting On So, Aug 16 2009, Carsten Dominik wrote: > Hi Henry, Nick, > > another way would be this: > > #+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 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 ">> 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