Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-26 Thread Baoqiu Cui
Carsten Dominik writes: > On Oct 25, 2010, at 11:52 PM, Baoqiu Cui wrote: > >> Sebastian Rose writes: >> >>> Carsten Dominik writes: OK, I will use class. I could make a special case for the docbook exporter.. >>> >>> +1 >> >> +1 for making a "special case for the docbook exporte

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Carsten Dominik
OK, I think this change is now done. Thank you all for sharing your expertise! - Carsten On Oct 25, 2010, at 11:39 PM, Sebastian Rose wrote: Christian Moe writes: Maybe someone with a browser where colgroups actually do work (Opera!) can check 1. if they only work with the align attribut

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Carsten Dominik
On Oct 25, 2010, at 11:52 PM, Baoqiu Cui wrote: Sebastian Rose writes: Carsten Dominik writes: OK, I will use class. I could make a special case for the docbook exporter.. +1 +1 for making a "special case for the docbook exporter". :-) (DocBook documents can be rendered in differe

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Baoqiu Cui
Sebastian Rose writes: > Carsten Dominik writes: >> OK, I will use class. I could make a special case for the docbook >> exporter.. > > +1 +1 for making a "special case for the docbook exporter". :-) (DocBook documents can be rendered in different formats, some of which (like PDF) may know

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Sebastian Rose
Christian Moe writes: > Maybe someone with a browser where colgroups actually do work (Opera!) can > check > > 1. if they only work with the align attribute, and not with CSS, and > > 2. whether they still work (take precedence) now that the individual cells are > aligned with CSS for their class

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Christian Moe
[Veering off-topic, just to round off a discussion] On 10/25/10 4:55 PM, Sebastian Rose wrote: How refer to all right-aligned `td' elements in a certain tables without some special attribute anyway. Fair point. (In an ideal world, as long as the whole column is right-aligned it should be en

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Christian Moe
Actually, I have one more question: The exporter does now (in addition to setting classes for individual fields) Should this be classes instead of align attributes as well? Thanks! - Carsten Maybe someone with a browser where colgroups actually do work (Opera!) can check 1. if they on

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Sebastian Rose
Carsten Dominik writes: > OK, I will use class. I could make a special case for the docbook > exporter.. +1 >> Having to set /anything/ on each cell just to align a column is not optimal >> either, but since some browsers don't honor colgroups, it's the most robust >> way. How refer to

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Carsten Dominik
On Oct 25, 2010, at 3:13 PM, Christian Moe wrote: On 10/25/10 11:08 AM, Carsten Dominik wrote: On Oct 25, 2010, at 10:51 AM, Christian Moe wrote: On 10/25/10 6:36 AM, Baoqiu Cui wrote: I am wondering if there is any special reason to use "class" instead of "align". If not, can we change th

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Carsten Dominik
On Oct 25, 2010, at 3:13 PM, Christian Moe wrote: On 10/25/10 11:08 AM, Carsten Dominik wrote: On Oct 25, 2010, at 10:51 AM, Christian Moe wrote: On 10/25/10 6:36 AM, Baoqiu Cui wrote: I am wondering if there is any special reason to use "class" instead of "align". If not, can we change th

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Christian Moe
On 10/25/10 11:08 AM, Carsten Dominik wrote: On Oct 25, 2010, at 10:51 AM, Christian Moe wrote: On 10/25/10 6:36 AM, Baoqiu Cui wrote: I am wondering if there is any special reason to use "class" instead of "align". If not, can we change the elisp code to use "align"? I believe the "align"

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Giovanni Ridolfi
Carsten Dominik writes: > > I am actually using right now: > > th.right { text-align:center; } > th.left { text-align:center; } > th.center { text-align:center; } > > because is seem right to me that a table header is centrally > aligned even if the fields are lift or right aligned. yes, s

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Carsten Dominik
On Oct 25, 2010, at 11:02 AM, Giovanni Ridolfi wrote: Carsten Dominik writes: I am actually using right now: th.right { text-align:center; } th.left { text-align:center; } th.center { text-align:center; } because is seem right to me that a table header is centrally aligned even if t

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Carsten Dominik
On Oct 25, 2010, at 10:51 AM, Christian Moe wrote: On 10/25/10 6:36 AM, Baoqiu Cui wrote: I am wondering if there is any special reason to use "class" instead of "align". If not, can we change the elisp code to use "align"? I believe the "align" attribute is slated for obsoletion in HTML5

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Christian Moe
On 10/25/10 6:36 AM, Baoqiu Cui wrote: I am wondering if there is any special reason to use "class" instead of "align". If not, can we change the elisp code to use "align"? I believe the "align" attribute is slated for obsoletion in HTML5, on the grounds that it's better handled by CSS. ht

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-25 Thread Carsten Dominik
On Oct 23, 2010, at 9:28 PM, Sebastian Rose wrote: Carsten Dominik writes: 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; } I am actually using right now: th.right { text-a

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-24 Thread Baoqiu Cui
Carsten Dominik writes: > 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? Thanks for supporting this new feature. DocBook exporter does not really s

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-23 Thread Sebastian Rose
Carsten Dominik writes: > 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 {

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-23 Thread Sebastian Rose
Carsten Dominik writes: >> 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 l

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-23 Thread Sebastian Rose
Carsten Dominik writes: >> OK, found it. It was in my .emacs which I didn't use for ages... >> >> But: >> >> > /> >> >> must be: >> >> > /> >> >> >> i.e. "" and "" have to occur only once each and >> wrap the "" definitions. >> >> The after each "" happens only for the second >> table. > > Hi

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Carsten Dominik
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

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Carsten Dominik
On Oct 22, 2010, at 9:30 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

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Sebastian Rose
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 >>>

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Sebastian Rose
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 >>>

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Carsten Dominik
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 variable

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Sebastian Rose
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-t

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Carsten Dominik
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. - Carsten On Oct

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Sebastian Rose
Carsten Dominik writes: >> | | | | >> | 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 fi

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-22 Thread Carsten Dominik
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

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-21 Thread Sebastian Rose
Sebastian Rose writes: > Carsten Dominik writes: >> On Oct 21, 2010, at 9:36 AM, Christian Moe wrote: >> >>> On 10/21/10 2:25 AM, Sebastian Rose wrote: >>> (...) > > | | | | > | A | B | C | > | 1 | 2 | 3 | > | 12 | 13 | 300 | > | 9 | 11 | 4 | >>>

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-21 Thread Sebastian Rose
Carsten Dominik writes: > On Oct 21, 2010, at 9:36 AM, Christian Moe wrote: > >> On 10/21/10 2:25 AM, Sebastian Rose wrote: >> (...) | | | | | A | B | C | | 1 | 2 | 3 | | 12 | 13 | 300 | | 9 | 11 | 4 | >>> >>> >>> I get >>> >>> >>> >>> >>> as e

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-21 Thread Carsten Dominik
On Oct 21, 2010, at 9:36 AM, Christian Moe wrote: On 10/21/10 2:25 AM, Sebastian Rose wrote: (...) | | | | | A | B | C | | 1 | 2 | 3 | | 12 | 13 | 300 | | 9 | 11 | 4 | I get align="right" /> as expected. That's interesting. From the same example I get align="ri

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-21 Thread Christian Moe
On 10/21/10 2:25 AM, Sebastian Rose wrote: (...) | | | | | A | B | C | | 1 | 2 | 3 | | 12 | 13 | 300 | | 9 | 11 | 4 | I get as expected. That's interesting. From the same example I get /> ...using freshly pulled 7.01trans. What might account for the difference?

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-20 Thread Sebastian Rose
Bernt Hansen writes: > 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 colum

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-20 Thread Jeff Horn
On Wed, Oct 20, 2010 at 3:04 PM, Christian Moe wrote: > #+style: tr td + td + td {text-align: right;} Thanks Christian, this workaround is OK for me at the moment since I'm just making this change in one file. +1 (naturally) for the exporter honoring column alignment settings. -- Jeffrey Horn

Re: [Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-20 Thread Christian Moe
On 10/20/10 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 a

[Orgmode] Re: Aligning Columns in HTML Export Tables

2010-10-20 Thread Bernt Hansen
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 (lef