From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: export table html centered Date: Sun, 16 Aug 2009 07:06:26 +0200 Message-ID: <6AF0BA90-9287-40BF-97E7-81A65BA92F56@gmail.com> References: <877hx5ow0g.fsf@online.de> <15041.1250365819@gamaville.dokosmarshall.org> <19718.1250385230@gamaville.dokosmarshall.org> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McXwy-0005H2-AV for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 01:06:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McXws-0005DG-Th for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 01:06:34 -0400 Received: from [199.232.76.173] (port=54525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McXws-0005D6-KC for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 01:06:30 -0400 Received: from mail-ew0-f207.google.com ([209.85.219.207]:46089) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McXws-0002oR-6O for emacs-orgmode@gnu.org; Sun, 16 Aug 2009 01:06:30 -0400 Received: by ewy3 with SMTP id 3so49259ewy.42 for ; Sat, 15 Aug 2009 22:06:28 -0700 (PDT) In-Reply-To: <19718.1250385230@gamaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode@gnu.org, henry atting 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 > > > _______________________________________________ > 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