emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature request: HTML export, TODO keyword face
@ 2009-02-11 17:00 Wanrong Lin
  2009-02-13  7:25 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: Wanrong Lin @ 2009-02-11 17:00 UTC (permalink / raw)
  To: org-mode list

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.

Wanrong

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Feature request: HTML export, TODO keyword face
  2009-02-11 17:00 Feature request: HTML export, TODO keyword face Wanrong Lin
@ 2009-02-13  7:25 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2009-02-13  7:25 UTC (permalink / raw)
  To: Wanrong Lin; +Cc: org-mode list


[-- 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.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-02-13  7:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-11 17:00 Feature request: HTML export, TODO keyword face Wanrong Lin
2009-02-13  7:25 ` Carsten Dominik

Code repositories for project(s) associated with this 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).