From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export table html centered Date: Sat, 15 Aug 2009 15:50:19 -0400 Message-ID: <15041.1250365819@gamaville.dokosmarshall.org> References: <877hx5ow0g.fsf@online.de> Reply-To: nicholas.dokos@hp.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McPI4-00041C-Hi for emacs-orgmode@gnu.org; Sat, 15 Aug 2009 15:51:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McPI0-0003zi-RX for emacs-orgmode@gnu.org; Sat, 15 Aug 2009 15:51:48 -0400 Received: from [199.232.76.173] (port=40039 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McPI0-0003zf-OY for emacs-orgmode@gnu.org; Sat, 15 Aug 2009 15:51:44 -0400 Received: from vms173011pub.verizon.net ([206.46.173.11]:44679) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McPHz-0006Bs-CL for emacs-orgmode@gnu.org; Sat, 15 Aug 2009 15:51:44 -0400 Received: from gamaville.dokosmarshall.org ([98.110.172.159]) by vms173011.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KOF006W8OFOHHF9@vms173011.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 15 Aug 2009 14:50:12 -0500 (CDT) In-reply-to: Message from henry atting of "Sat\, 15 Aug 2009 18\:57\:19 +0200." <877hx5ow0g.fsf@online.de> 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: henry atting Cc: emacs-orgmode@gnu.org henry atting 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 =E2=80=93 #+END_CENTER does not do this, markin= g a > table like that solely leads to an error message: >=20 > progn: Args out of range: 84, 906 >=20 >=20 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=3D 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=20 align=3D"center" should do it. You can also use #+BIND to do it per-file: ,---- | #+BIND: org-export-html-table-tag "" | | foo | bar | | |-----+-----| | | 1 | 2 | | | 2 | 5 | | | 3 | 10 | `---- HTH, Nick =20=20=20=20=20=20=20=20