From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Aligning Columns in HTML Export Tables Date: Fri, 22 Oct 2010 09:32:30 +0200 Message-ID: <53D6BE6F-C152-45DE-B01B-89D50B4848BC@gmail.com> References: <878w1svl7y.fsf@gollum.intra.norang.ca> 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 [140.186.70.92] (port=48021 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9C7C-00006I-MS for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 03:32:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9C7B-0000mc-8W for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 03:32:38 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:62468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9C7B-0000mK-40 for emacs-orgmode@gnu.org; Fri, 22 Oct 2010 03:32:37 -0400 Received: by ewy25 with SMTP id 25so287475ewy.0 for ; Fri, 22 Oct 2010 00:32:36 -0700 (PDT) In-Reply-To: <878w1svl7y.fsf@gollum.intra.norang.ca> 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: Bernt Hansen , Eric Schulte , Dan Davison , Baoqiu Cui Cc: Jeff Horn , Org-mode ml On Oct 20, 2010, at 7:16 PM, Bernt Hansen wrote: > Jeff Horn writes: > >> Is there a way to specify a particular column in org-mode that will >> be >> exported right-aligned in HTML? >> >> | A | B | C | >> | 1 | 2 | 3 | >> >> For the table above, I would like column C right aligned when I >> export >> to HTML, but the other column aligned in the default way (left >> aligned?). > > I think this is supposed to work but it seems the exporters do not > honour the alignment details. > > | | | | > | A | B | C | > | 1 | 2 | 3 | > | 12 | 13 | 300 | > | 9 | 11 | 4 | I have now fixed this issue, at least for the HTML exporter. 1. The HTML exporter now puts a style attribute onto each individual field to make sure the field is aligned correctly. Many Browsers need this, as pointed out by Sebastian. If you do not like this overhead, you can configure org-export-html-table-align-individual-fields. If you do, the alignment will still be noted in the column tags, handled correctly by Opera, but not by Firefox and Safari. 2. The HTML exporter will also honor a "" cookie. Note that this will not change anything inside an Org buffer - this would be complex to implement because of all the extra magic Org does with limited column width etc etc. 3. The LaTeX exporter does not yet honor , while it does honor and . The reason for this is that currently the vector remembering the alignment is a vector of booleans, and larger changes are necessary in order to allow for a third value. This will come, but I do not have the time today. Eric and Dan, please take note of this change and make sure that the Babel routines do not get in trouble by this new cookie. Baoqiu, (or any other users of the docbook exporter) I am not sure if the docbook format has suffered from this change, could you please run a few tests involving tables and report back? Jeff, thanks for kicking this threat off, this is a nice improvement. Cheers - Carsten Cheers > > Regards, > Bernt > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode