From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Feature request: HTML export, TODO keyword face Date: Fri, 13 Feb 2009 08:25:10 +0100 Message-ID: <315D4F52-53BC-4D2D-BFCE-EF23BF404FDC@uva.nl> References: <49930417.8070005@gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary="===============0141098811==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXsQM-0006hi-ML for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXsQJ-0006gU-8x for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:22 -0500 Received: from [199.232.76.173] (port=59377 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXsQJ-0006gP-3o for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:19 -0500 Received: from mail-fx0-f16.google.com ([209.85.220.16]:38166) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LXsQI-0005DN-NK for emacs-orgmode@gnu.org; Fri, 13 Feb 2009 02:25:18 -0500 Received: by mail-fx0-f16.google.com with SMTP id 9so2768799fxm.18 for ; Thu, 12 Feb 2009 23:25:18 -0800 (PST) In-Reply-To: <49930417.8070005@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Wanrong Lin Cc: org-mode list --===============0141098811== Content-Type: multipart/alternative; boundary=Apple-Mail-4-652156557 --Apple-Mail-4-652156557 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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: WAITING 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 --Apple-Mail-4-652156557 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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=3D"todo", or class=3D"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=3D"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
= --Apple-Mail-4-652156557-- --===============0141098811== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0141098811==--