Opened 7 years ago

Closed 7 years ago

#4521 closed enhancement (fixed)

PageOutline support

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


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 (1)

numberedheadlines-outline.diff (2.6 KB) - added by JoshuaH 7 years ago.
Numbered headlines PageOutline patch

Download all attachments as: .zip

Change History (9)

comment:1 Changed 7 years ago 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.

Changed 7 years ago by JoshuaH

Numbered headlines PageOutline patch

comment:2 Changed 7 years ago by JoshuaH

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

comment:3 Changed 7 years ago by rjollos

  • Cc ryano@… added; anonymous removed

comment:4 Changed 7 years ago by rjollos

  • Cc rjollos added; ryano@… removed

comment:5 Changed 7 years ago 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.

comment:6 Changed 7 years ago 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

comment:7 Changed 7 years ago by martin_s

  • Status changed from new to assigned

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

comment:8 Changed 7 years ago by martin_s

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [6852])

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 Comment

Modify Ticket

as closed The owner will remain martin_s.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.