[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Carsten Dominik
Subject: Re: [Orgmode] Re: Aligning Columns in HTML Export Tables
Date: Fri, 22 Oct 2010 13:27:47 +0200

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

- Carsten

On Oct 22, 2010, at 1:20 PM, Sebastian Rose wrote:

Carsten Dominik <address@hidden> writes:
| <l> | <l> | <r> |
| 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 "<c>" 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 <c>, while it does honor
  <l> and <r>.  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.

Hi Carsten,

|   | A   | B    |    C |
|   | 1   | bar  | text |
|   | 12  | test |  300 |
|   | 9   | foo  |    4 |
| / | <>  | <>   |  <>  |

now gives me:

<table border="0" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<colgroup><col align="right" /></colgroup>
<colgroup><col align="left" /></colgroup>
<colgroup><col align="left" /></colgroup>

and I have no style attributes in the <td> tags.


- Carsten

reply via email to

[Prev in Thread] Current Thread [Next in Thread]