emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* TOC in HTML export - how to change formatting of ToDo levels?
@ 2013-05-20 23:22 David Rogoff
  2013-05-21  7:50 ` Sebastien Vauban
  0 siblings, 1 reply; 3+ messages in thread
From: David Rogoff @ 2013-05-20 23:22 UTC (permalink / raw)
  To: emacs-orgmode

Hi all.

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.

Thanks!

 David

FYI, running emacs 24.3.1 on RHEL 5.3 and org-mode 7.9.3f

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

* Re: TOC in HTML export - how to change formatting of ToDo levels?
  2013-05-20 23:22 David Rogoff
@ 2013-05-21  7:50 ` Sebastien Vauban
  0 siblings, 0 replies; 3+ messages in thread
From: Sebastien Vauban @ 2013-05-21  7:50 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

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

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

* Re: TOC in HTML export - how to change formatting of ToDo levels?
@ 2013-05-21 18:15 David Rogoff
  0 siblings, 0 replies; 3+ messages in thread
From: David Rogoff @ 2013-05-21 18:15 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

> 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


Thanks for the info.  This will help a bit but still doesn't address the TOC code throwing out the actual ToDo states of the headlines and making everything either .todo or .done.

 David

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

end of thread, other threads:[~2013-05-21 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21 18:15 TOC in HTML export - how to change formatting of ToDo levels? David Rogoff
  -- strict thread matches above, loose matches on Subject: below --
2013-05-20 23:22 David Rogoff
2013-05-21  7:50 ` Sebastien Vauban

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