emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: Jeff Horn <jrhorn424@gmail.com>,
	Dan Davison <dandavison7@gmail.com>,
	Bernt Hansen <bernt@norang.ca>,
	Org-mode ml <emacs-orgmode@gnu.org>,
	Baoqiu Cui <cbaoqiu@yahoo.com>
Subject: Re: Re: Aligning Columns in HTML Export Tables
Date: Fri, 22 Oct 2010 13:27:47 +0200	[thread overview]
Message-ID: <F15AE2C0-87E5-48A2-9A23-43F9FA3E8AA0@gmail.com> (raw)
In-Reply-To: <87iq0u5v9v.fsf@gmx.de>

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 22, 2010, at 1:20 PM, Sebastian Rose wrote:

> Carsten Dominik <carsten.dominik@gmail.com> 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">
> <caption></caption>
> <colgroup><col align="right" /></colgroup>
> <colgroup><col align="left" /></colgroup>
> <colgroup><col align="left" /></colgroup>
> <thead>
>
>
> and I have no style attributes in the <td> tags.
>
>
>
>  Sebastian

- Carsten

  reply	other threads:[~2010-10-22 11:27 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-20 16:42 Aligning Columns in HTML Export Tables Jeff Horn
2010-10-20 17:16 ` Bernt Hansen
2010-10-20 19:04   ` Christian Moe
2010-10-20 20:11     ` Jeff Horn
2010-10-21  0:25   ` Sebastian Rose
2010-10-21  7:36     ` Christian Moe
2010-10-21  7:46       ` Carsten Dominik
2010-10-21 13:04         ` Sebastian Rose
2010-10-21 13:25           ` Sebastian Rose
2010-10-22  7:32   ` Carsten Dominik
2010-10-22 11:20     ` Sebastian Rose
2010-10-22 11:27       ` Carsten Dominik [this message]
2010-10-22 13:59         ` Sebastian Rose
2010-10-22 15:41           ` Carsten Dominik
2010-10-22 19:30             ` Sebastian Rose
2010-10-23  5:42               ` Carsten Dominik
2010-10-23 19:03                 ` Sebastian Rose
2010-10-22 19:37             ` Sebastian Rose
2010-10-23  5:53               ` Carsten Dominik
2010-10-23 19:20                 ` Sebastian Rose
2010-10-23 19:28                 ` Sebastian Rose
2010-10-25  6:48                   ` Carsten Dominik
2010-10-25  9:02                     ` Giovanni Ridolfi
2010-10-25  9:09                       ` Carsten Dominik
2010-10-25  4:36     ` Baoqiu Cui
2010-10-25  8:51       ` Christian Moe
2010-10-25  9:08         ` Carsten Dominik
2010-10-25 13:13           ` Christian Moe
2010-10-25 13:22             ` Carsten Dominik
2010-10-25 14:55               ` Sebastian Rose
2010-10-25 20:41                 ` Christian Moe
2010-10-25 21:52                 ` Baoqiu Cui
2010-10-26  5:11                   ` Carsten Dominik
2010-10-26 16:03                     ` Baoqiu Cui
2010-10-25 13:43             ` Carsten Dominik
2010-10-25 20:04               ` Christian Moe
2010-10-25 21:39                 ` Sebastian Rose
2010-10-26  5:12                   ` Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F15AE2C0-87E5-48A2-9A23-43F9FA3E8AA0@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=bernt@norang.ca \
    --cc=cbaoqiu@yahoo.com \
    --cc=dandavison7@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrhorn424@gmail.com \
    --cc=sebastian_rose@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).