On 10/20/10 7:16 PM, Bernt Hansen wrote:
Jeff Horn<jrhorn...@gmail.com>  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.

|<l>  |<l>  |<r>  |
| A   | B   |   C |
| 1   | 2   |   3 |
| 12  | 13  | 300 |
| 9   | 11  |   4 |


That's what I find. Ironically, the HTML exporter even includes a =colgroup= with a local =align= attribute set on each =col=, but they all get set to ~align="right"~ despite the settings in the table. Not that it matters; e.g. Firefox doesn't honor colgroup formatting anyway.

As a CSS workaround for this particular example, you could add this to the header lines:

: #+style: <style>tr td + td + td {text-align: right;}</style>

-- but it would clearly be nicer if the exporter honored the settings.

Yours,
CM

_______________________________________________
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

Reply via email to