From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: TOC in HTML export - how to change formatting of ToDo levels? Date: Tue, 21 May 2013 09:50:58 +0200 Message-ID: <86bo84kbz1.fsf@somewhere.org> References: <30770A50-8E4E-40DA-BD6A-1CFEB2F5C3CF@therogoffs.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi David, David Rogoff wrote: > I've just started diving back into org-mode. I'm mostly using it for ToDo / > Status tracking. I've been trying to change the format of the TOC entries with > little success. I've figured out how to use org-export-html-style to change > the CSS markup for my customized ToDo levels, but that just affects the > formatting in the body of the document. The table of contents appears to > ignore that. I've been digging through org-html.el and the TOC formatting > (around line 1474) looks to be mostly card-coded with almost no variables to > control anything. Any ToDo status of done is not marked up at all and anything > else is just marked as class "todo" instead of the actual class of the item. > > Am I missing something? The only solution I've found is to write a script to > fix the HTML after exporting. Any better solution? It's a very big ToDo list > and I (and others who will look at the document) want to see the actual status > (preferably with the CSS font/text markups) in the TOC to know which items to > look into for further details. You should be able to customize the todo class only within the TOC context with such a rule: --8<---------------cut here---------------start------------->8--- #table-of-contents .todo { ... } --8<---------------cut here---------------end--------------->8--- Best regards, Seb -- Sebastien Vauban