Modify

Opened 15 years ago

Closed 15 years ago

#4521 closed enhancement (fixed)

PageOutline support

Reported by: weltweitehrlich Owned by: Martin Scharrer
Priority: normal Component: NumberedHeadlinesPlugin
Severity: normal Keywords:
Cc: Ryan J Ollos 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 (1)

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

Download all attachments as: .zip

Change History (9)

comment:1 Changed 15 years ago by Martin Scharrer

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 15 years ago by JoshuaH

Numbered headlines PageOutline patch

comment:2 Changed 15 years ago by JoshuaH

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

comment:3 Changed 15 years ago by Ryan J Ollos

Cc: ryano@… added; anonymous removed

comment:4 Changed 15 years ago by Ryan J Ollos

Cc: Ryan J Ollos added; ryano@… removed

comment:5 Changed 15 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 15 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 15 years ago by Martin Scharrer

Status: newassigned

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

comment:8 Changed 15 years ago by Martin Scharrer

Resolution: fixed
Status: assignedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Martin Scharrer.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.