Ticket #4521 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

PageOutline support

Reported by: weltweitehrlich Assigned to: martin_s
Priority: normal Component: NumberedHeadlinesPlugin
Severity: normal Keywords:
Cc: rjollos Trac Release: 0.11

Description

Using PageOutline marco on a wiki page like the example of NumberedHeadlinesPlugin will only generate the table of content for trac standard headines. Can you modify your plugin or provide you own macro to generate a TOC for numbered headlines as well?

Attachments

numberedheadlines-outline.diff (2.6 kB) - added by joshua.hoke@sixnet.com on 04/15/09 17:28:32.
Numbered headlines PageOutline? patch

Change History

01/28/09 12:32:03 changed by martin_s

I have to check how the PageOutline? macro is programmed. It probably scans for the === of the headlines, so changing the NumberedHeadlinesPlugin won't help. I think a new macro must be written, ie. a modified copy of PageOutline?.

I don't have much time at the moment. I will have a look at this when I find the time.

04/15/09 17:28:32 changed by joshua.hoke@sixnet.com

  • attachment numberedheadlines-outline.diff added.

Numbered headlines PageOutline? patch

04/15/09 17:30:16 changed by JoshuaH

I've attached a patch that adds PageOutline? support to the NumberedHeadlinesPlugin.

06/09/09 05:33:25 changed by rjollos

  • cc set to ryano@physiosonics.com.

06/09/09 05:34:20 changed by rjollos

  • cc changed from ryano@physiosonics.com to rjollos.

06/10/09 11:54:24 changed by anonymous

Seems like the functionality of the PageOutline? macro is close enough to that of the TOC macro that hopefully the patch could be slightly modified to make the TOC macro work with Numbered Headlines. See Ticket #5241.

06/10/09 12:04:25 changed by anonymous

When the PageOutline macro is used with the following arguments, the numbering occurs twice:

[[PageOutline(1-100,Table Of Contents,inline)]]
Table Of Contents

1. 1. Purpose
2. 2. Scope
3. 3. Definitions
4. 4. Reference Documents
5. 5. Responsibilities

10/25/09 16:58:42 changed by martin_s

  • status changed from new to assigned.

I applied the patch numberedheadlines-outline.diff in [6846].

10/25/09 20:37:49 changed by martin_s

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [6852])

tracnumberedheadlines/plugin.py
Added config file options to select if the headline should be numbered in an outline (like PageOutline or TocMacro) and if CSS should be used for the numbering or not. Fixes #5241 and #4521.


Add/Change #4521 (PageOutline support)




Change Properties
Action