From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Aligning Columns in HTML Export Tables Date: Sat, 23 Oct 2010 07:53:17 +0200 Message-ID: <7848164C-BDDA-4791-838B-2611670F4F46@gmail.com> References: <878w1svl7y.fsf@gollum.intra.norang.ca> <53D6BE6F-C152-45DE-B01B-89D50B4848BC@gmail.com> <87iq0u5v9v.fsf@gmx.de> <87mxq6jpkr.fsf@gmx.de> <87mxq6hvcj.fsf@gmx.de> 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=59067 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9X2h-0002oo-1r for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 01:53:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9X2f-0003TS-P2 for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 01:53:22 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:39328) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9X2f-0003TN-Fb for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 01:53:21 -0400 Received: by ewy25 with SMTP id 25so1006273ewy.0 for ; Fri, 22 Oct 2010 22:53:20 -0700 (PDT) In-Reply-To: <87mxq6hvcj.fsf@gmx.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: Sebastian Rose Cc: Org-mode ml On Oct 22, 2010, at 9:37 PM, Sebastian Rose wrote: > Carsten Dominik writes: >> On Oct 22, 2010, at 3:59 PM, Sebastian Rose wrote: >> >>> Carsten Dominik writes: >>>> Hi Sebastian, >>>> >>>> my guess would be that you have customized the td and th tags? >>>> If yes, >>>> please >>>> reset the customization, you need the new default values (which >>>> you then can >>>> still modify). >>>> >>>> Please check the variables org-export-table-header-tags and >>>> org-export-table-data-tags. >>> >>> >>> I've checked them, but they are not customized: >>> >>> Hide Org Export Table Data Tags: >>> Opening tag: >>> Closing tag: >>> State : STANDARD. >> >> This does look right. >> >>> >>> Hide Org Export Table Header Tags: >>> Opening tag: >>> Closing tag: >>> State : STANDARD. >> >> This does not look right, it should be >> >> Opening tag: >> Closing tag: >> >> >>> >>> >>> The export of the OPs table works as expected. But the table I've >>> sent >>> is different in that it just uses empty `<>' marks for grouping and >>> creating lines. >> >> While I do not think it is particularly nice that you >> try to fool the parser in this way :-/ >> it actually behaves quite well :-D >> >> Here is what I get when I export this table: >> >> ------------------------------------------------------------------------------------------- >> > frame="hsides"> >> >> > align="left" / >>> >> >> >> >> >> >> >> >> >>
A> style="text-align:left">BC
1bartext
12test300
9foo4
>> ------------------------------------------------------------------------------------------- >> >> >> The left/right comes from the analysis of the number of numbers >> in each column... >> >> So I must assume that maybe some of your files did not >> update correctly or you have some old compiled files... ? >> >> - Carsten > > Hi Carsten, > > > one more, sorry. > > > How about this (line-wrapped for readability): > > > > 1 > bar > text > > > instead of > > > 1 > bar > text > > > ?? > > > Combined with the ways to add IDs and classes to tables, we could > then style the > columns better. > > I would like to set this for right aligned tags as default: > > td.right { font-family:monospace;text-align:right; } OK, fair enough. But I don't think I will make the monospace the Org default, it looks a bit odd. BUt of cause you can change this. I have now in the default style: td, th { vertical-align: top; } th.right { text-align:right; } th.left { text-align:left; } th.center { text-align:center; } td.right { text-align:right; } td.left { text-align:left; } td.center { text-align:center; } Is there a way to write this more compactly? - Carsten