emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Peter Westlake <peter.westlake@pobox.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [Feature request] CSS tag classes for headlines
Date: Fri, 1 Jan 2010 11:07:28 +0100	[thread overview]
Message-ID: <87BB4B34-8DB2-4D35-84EF-43FB94695A95@gmail.com> (raw)
In-Reply-To: <1259954201.11776.1348498933@webmail.messagingengine.com>

Hi Peter,

this is a quite open-ended request, to add classes based on
TODO keywords/Tags, maybe timestamps etc.

Maybe the best solution would be to do this in postprocessing, for
example using a hook like org-export-html-final-hook:

http://orgmode.org/worg/org-configs/org-hooks.php#sec-1.76

HTH

- Carsten

On Dec 4, 2009, at 8:16 PM, Peter Westlake wrote:

> Would it be possible to give exported headlines a class based on their
> tag or TODO?
>
> For instance, instead of just labelling the tag, like this:
>
> <h2 id="sec-10">Windows builds fail with "Error 66"<span
> class="tag"><span class="CLOSED">CLOSED</span></span></h2>
>
> I would like to change the appearance of the whole headline:
>
> <h2 id="sec-10" class="headline-tag-CLOSED">Windows builds fail with
> "Error 66"<span class="tag"><span
> class="CLOSED">CLOSED</span></span></h2>
>
> The use case is that I need to put a list of bugs up on the wall,  
> and it
> would be nice if closed ones could be greyed out. In fact, the whole  
> div
> containing the headline and text could be given a class, and child
> elements could be identified using CSS selecters.
>
> <div id="outline-container-10" class="outline-2 outline-2-CLOSED">
>
> Peter.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

  reply	other threads:[~2010-01-01 10:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04 19:16 [Feature request] CSS tag classes for headlines Peter Westlake
2010-01-01 10:07 ` Carsten Dominik [this message]
2010-01-04 13:51   ` Peter Westlake

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=87BB4B34-8DB2-4D35-84EF-43FB94695A95@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=peter.westlake@pobox.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).