emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andras Major <andras.g.major@gmail.com>
To: emacs-orgmode@gnu.org, Sebastien Vauban <wxhgmqzgwmuf@spammotel.com>
Subject: Re: making coloured tables
Date: Mon, 1 Aug 2011 06:53:43 +0200	[thread overview]
Message-ID: <CALPHr6x1fGWW7SLNDP8yStvprr6AUQhV_ZGvui62yzbS+PhvjA@mail.gmail.com> (raw)
In-Reply-To: <80zkjzlb50.fsf@somewhere.org>

Hi Sebastian,

> Andras Major wrote:
>> I'm really intrigued by org-mode's table and spreadsheet functionality
>> and would like to use it for those cases where I found excel and
>> gnumeric impractically cumbersome.
>>
>> What I want are two slightly diffent things:
>>
>> - Make tables that have cells with individual background colours when
>> exported as HTML or PDF.
>>
>> - Make tables that have cells with background colours and typeface
>> details (bold, italic, etc.) based on contents of either the cells
>> themselves or other cells in the table. (Example: mark all negative
>> numerical values of a table with a red background.)
>>
>> Furthermore, the colouring should be portable, i.e. independent of the
>> settings in .emacs.
>
> I add wishes on the above list. Maybe someone will be able to implement
> them,
> if they seem to make sense... So, here's my idea: having some automagic
> style
> (background) applied on the cells to distinguish:
>
> - the input cells (the ones you cannot delete... without troubles): they
> don't
>   have any formula associated with them
>
> - the final result cells: the ones with computed results
>
> - the other ones, whose content is computed, but serves as input to other
>   cells.
>
> Would these be in different colors, I think it would make the reading of
> tables much more efficient. And, as far as I know, this does not exist yet
> in
> tools like Excel -- though people can manually apply such color conventions.

I was thinking along slightly different lines. We have a customizable
<td> tag in HTML export already, but that customization isn't very
flexible. If we could have something like a <td> tag that can be set
from values in the table, or by Lisp code, then I think that would
solve my problems. It's important, however, that setting the export
tag must be local to the Org file so I can set it there instead of the
global .emacs.

  András

  parent reply	other threads:[~2011-08-01  4:53 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-27 15:33 making coloured tables Andras Major
2011-07-27 20:30 ` Sebastien Vauban
2011-07-28  7:17   ` Daniel Clemente
2011-07-28  7:29     ` Bastien
2011-08-01  4:53   ` Andras Major [this message]
2011-08-01  6:35     ` Sebastien Vauban
2011-08-01  7:30       ` Andras Major
2011-08-16 13:22         ` Bastien
2011-08-01  7:38       ` Rainer M Krug

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=CALPHr6x1fGWW7SLNDP8yStvprr6AUQhV_ZGvui62yzbS+PhvjA@mail.gmail.com \
    --to=andras.g.major@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.com \
    /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).