Changes between Version 23 and Version 24 of NumberedHeadlinesPlugin
- Timestamp:
- Oct 29, 2017, 8:14:41 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NumberedHeadlinesPlugin
v23 v24 22 22 You can mix both unnumbered and numbered headlines on the same wiki page. Headlines from first order (1x`#` on each side) to sixth order (6x`#` on each side) are supported. An own ID can be given by adding `=idname`, of which idname should be a valid XHTML name. 23 23 24 == Bugs/Feature Requests25 26 Existing bugs and feature requests for NumberedHeadlinesPlugin are27 [report:9?COMPONENT=NumberedHeadlinesPlugin here].28 29 If you have any issues, create a30 [/newticket?component=NumberedHeadlinesPlugin new ticket].31 32 [[TicketQuery(component=NumberedHeadlinesPlugin&group=type,format=progress)]]33 34 == Download35 36 Download the zipped source from [export:numberedheadlinesplugin here].37 38 == Source39 40 You can check out NumberedHeadlinesPlugin from [/svn/numberedheadlinesplugin here] using Subversion, or [source:numberedheadlinesplugin browse the source] with Trac.41 42 == Installation43 44 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page.45 46 == Configuration47 48 To enable this plugin put the following into your `trac.ini` configuration file:49 {{{#!ini50 [components]51 tracnumberedheadlines.* = enabled52 }}}53 54 The following options can be added to select if:55 * headlines in outlines (`PageOutline`, `TocMacro`) should be numbered (#4521, #5241)56 * numbering should start at the second level (`##`/`h2`) not at the first level (#4907)57 58 Example where default values are shown:59 {{{#!ini60 [numberedheadlines]61 numbered_outline = true62 numbering_starts_at_level_two = false63 }}}64 65 == Example66 67 24 === Normal Usage 68 25 … … 70 27 {{{ 71 28 = Introduction = 29 72 30 # Chapter 1 # 73 31 ## Section 1.1 ## … … 76 34 ## Section 1.2 ## 77 35 ### Subsection 1.2.1 ### 36 78 37 === Unnumbered === 38 79 39 ### Subsection 1.2.2 ### 80 40 # Chapter 2 # … … 88 48 will be displayed like this: 89 49 90 {{{ 91 #!html 92 <div style="border: thin solid ; padding-left: 1cm; width: 30em"> 50 {{{#!html 51 <div style="border: 2px solid darkred; padding-left: 1cm; width: 30em"> 93 52 <h1>Introduction</h1> 94 53 <h1>1. Chapter 1</h1> … … 111 70 However with the config options `numbering_starts_at_level_two = true` it will be displayed without the first level numbers: 112 71 113 {{{ 114 #!html 115 <div style="border: thin solid ; padding-left: 1cm; width: 30em"> 72 {{{#!html 73 <div style="border: 2px solid darkred; padding-left: 1cm; width: 30em"> 116 74 <h1>Introduction</h1> 117 75 <h1>Chapter 1</h1> … … 141 99 ## Section ## 142 100 }}} 101 143 102 is now displayed as: 144 {{{ 145 #!html 146 <div style="border: thin solid ; padding-left: 1cm; width: 30em"> 103 {{{#!html 104 <div style="border: 2px solid darkred; padding-left: 1cm; width: 30em"> 147 105 <h1> Title </h1> 148 106 <h2> 1. Section </h2> … … 172 130 will lead to the following: 173 131 174 {{{ 175 #!html 176 <div style="border: thin solid ; padding-left: 1cm; width: 30em"> 132 {{{#!html 133 <div style="border: 2px solid darkred; padding-left: 1cm; width: 30em"> 177 134 178 135 <h1 id="FirstChapter">1. First Chapter</h1><p> … … 202 159 }}} 203 160 204 Headlines without text but with a number will be notdisplayed at all, ie no HTML code generated, but the number is used as normal. This gives the user the possibility to change higher level heading numbers for following lower level headline without inserting empty headlines. Please note that for technical reasons there needs to be a space after the number and another one before the leading `#`, which makes two leading spaces:161 Headlines without text but with a number will not be displayed at all, ie no HTML code generated, but the number is used as normal. This gives the user the possibility to change higher level heading numbers for following lower level headline without inserting empty headlines. Please note that for technical reasons there needs to be a space after the number and another one before the leading `#`, which makes two leading spaces: 205 162 206 163 {{{ … … 212 169 213 170 will be displayed as: 214 {{{ 215 #!html 216 <div style="border: thin solid ; padding-left: 1cm; width: 30em"> 171 {{{#!html 172 <div style="border: 2px solid darkred; padding-left: 1cm; width: 30em"> 217 173 218 174 <h2 id="Section">1.1. Section</h2><p> … … 223 179 </div> 224 180 }}} 181 182 == Bugs/Feature Requests 183 184 Existing bugs and feature requests for NumberedHeadlinesPlugin are 185 [report:9?COMPONENT=NumberedHeadlinesPlugin here]. 186 187 If you have any issues, create a 188 [/newticket?component=NumberedHeadlinesPlugin new ticket]. 189 190 [[TicketQuery(component=NumberedHeadlinesPlugin&group=type,format=progress)]] 191 192 == Download 193 194 Download the zipped source from [export:numberedheadlinesplugin here]. 195 196 == Source 197 198 You can check out NumberedHeadlinesPlugin from [/svn/numberedheadlinesplugin here] using Subversion, or [source:numberedheadlinesplugin browse the source] with Trac. 199 200 == Installation 201 202 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 203 204 == Configuration 205 206 To enable this plugin put the following into your `trac.ini` configuration file: 207 {{{#!ini 208 [components] 209 tracnumberedheadlines.* = enabled 210 }}} 211 212 The following options can be added to select if: 213 * headlines in outlines (`PageOutline`, `TocMacro`) should be numbered (#4521, #5241) 214 * numbering should start at the second level (`##`/`h2`) not at the first level (#4907) 215 216 Example where default values are shown: 217 {{{#!ini 218 [numberedheadlines] 219 numbered_outline = true 220 numbering_starts_at_level_two = false 221 }}} 222 225 223 226 224 == Recent Changes