emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@science.uva.nl>
To: Wanrong Lin <wanrong.lin@gmail.com>
Cc: org-mode list <emacs-orgmode@gnu.org>
Subject: Re: Feature request: HTML export, TODO keyword face
Date: Fri, 13 Feb 2009 08:25:10 +0100	[thread overview]
Message-ID: <315D4F52-53BC-4D2D-BFCE-EF23BF404FDC@uva.nl> (raw)
In-Reply-To: <49930417.8070005@gmail.com>

[-- Attachment #1.1: Type: text/plain, Size: 1034 bytes --]

Hi Wanrong,

On Feb 11, 2009, at 6:00 PM, Wanrong Lin wrote:

> Hi,
> Right now in the HTML export the TODO keywords have either  
> class="todo", or class="done". That loses all the face properties in  
> the original TODO keywords. I think the TODO keywords faces are  
> important visual aids to differentiate different types of TODO  
> items, so I just wonder whether it is possible to keep the faces in  
> the HTML.
> Thank you for considering the above.

Yes, this makes sense.  I now add, to each TODO keyword, an
additional class named after the keyword.  For example:

   <span class="todo kwd-WAITING">WAITING</span>

So each todo keyword gets class "todo" or "done" depending on which
general type it is.  And in addition it gets itself, prefixed with
"kdw-", as class.

So go to your CSS file and configure like this:

.todo { font-weight:bold; }
.done { font-weight:bold; }
.TODO { color:red; }
.WAITING { color:orange; }
.DONE { color:green; }

Thanks to Sebastian Rose for the multiple-classes trick.

- Carsten

[-- Attachment #1.2: Type: text/html, Size: 1567 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.

      reply	other threads:[~2009-02-13  7:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-11 17:00 Feature request: HTML export, TODO keyword face Wanrong Lin
2009-02-13  7:25 ` Carsten Dominik [this message]

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:

  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=315D4F52-53BC-4D2D-BFCE-EF23BF404FDC@uva.nl \
    --to=dominik@science.uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=wanrong.lin@gmail.com \


* 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


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).