##.,
##..
etc. notation to insert outline numbering sequences (1, 1.1, 2, 2.1) in topic's text. Also support numbered headings.
##.
, ##..
etc. notation to insert outline numbering sequences (1, 1.1, 2, 2.1) in topic's text.
Use ---#
, ---##
, etc., to generate numbered headings.
Use ##5.
, ##.
, ##.
to start a numbering sequence at 5
##...
(with 1-6 dots). The notation is replaced anywhere in the topic. The level number corresponding to the number of dots increases with each use. Each time a level is used, all higher levels are reset to 0.
##name#...
for sequence name
. Named sequences have independent numbering.
n
into the tag. For example, ##name#2...
resets numbering sequence name
to 2
. The sequence is initialized from the indicated level on. 0
re-initializes the sequence at all levels. This comes in handy when using a sequence within headers that are also used in a %TOC%. In that case, start the first heading using something like ---+ Chapter ##0. Introduction
. You can then safely use the number notation in headings.
##...a
+
character in headings is replaced by #
, the headings are numbered. Heading numbers are derived from the unnamed sequence and can, therefore, be affected by the syntax above. 0
for the skipped levels.
0
to indicate the skipped level.
Source | Rendered | Expected |
---|---|---|
##. | ##. | 1 |
##.. | ##.. | 1.1 |
##... | ##... | 1.1.1 |
##.... | ##.... | 1.1.1.1 |
##..... | ##..... | 1.1.1.1.1 |
##...... | ##...... | 1.1.1.1.1.1 |
##....... | ##....... | 1.1.1.1.1.2 |
Chapter ##a#. | Chapter ##a#. | Chapter 1 |
Section ##a#.. | Section ##a#.. | Section 1.1 |
Subsection ##a#... | Subsection ##a#... | Subsection 1.1.1 |
Req ##a#....: | Req ##a#....: | Req 1.1.1.1: |
Req ##a#....: | Req ##a#....: | Req 1.1.1.2: |
Subsection ##a#... | Subsection ##a#... | Subsection 1.1.2 |
Req ##a#....: | Req ##a#....: | Req 1.1.2.1: |
Req ##a#....: | Req ##a#....: | Req 1.1.2.2: |
##a#....a) | ##a#....a) | a) |
##a#....a) | ##a#....a) | b) |
##a#....a) | ##a#....a) | c) |
##A#....A) | ##A#....A) | A) |
##A#....A) | ##A#....A) | B) |
##A#....A) | ##A#....A) | C) |
Req ##a#....: | Req ##a#....: | Req 1.1.2.3: |
Section ##a#.. | Section ##a#.. | Section 1.2 |
Chapter ##a#. | Chapter ##a#. | Chapter 2 |
Section ##a#.. | Section ##a#.. | Section 2.1 |
Section ##a#.. | Section ##a#.. | Section 2.2 |
%<plugin>_ <setting>%
, i.e. %EXPLICITNUMBERINGPLUGIN_SHORTDESCRIPTION%
Note: This plugin does not obtain preference settings from this topic. Settings should be entered in the TWikiPreferences or Web Preferences topic. The following settings can be used.
* #Set EXPLICITNUMBERINGPLUGIN_BOLD = 1
* #Set EXPLICITNUMBERINGPLUGIN_ALPHASEQ = a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z * #Set EXPLICITNUMBERINGPLUGIN_ALPHASEQ = z,y,x,w,v,u,t,s,r,q,p,o,n,m,l,k,j,i,h,g,f,e,d,c,b,a * #Set EXPLICITNUMBERINGPLUGIN_ALPHASEQ = α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ
data/debug.txt
) This plugin provides minimal debugging information
* #Set EXPLICITNUMBERINGPLUGIN_DEBUG = 1
configure
interface (Go to Plugins->Find More Extensions) .zip
or .tgz
archives
perl <module>_installer
)
configure
and enable the module, if it is a plugin.
,v
files in your existing install (take care not to lock the files when you check in)
Plugin Author: | TWiki:Main.MartinVlach, TWiki:Main.ThomasWeigert (21 Nov 2006) |
Copyright: | © 2003, Lynguent, Inc. © 2006, ProjectContributor © 2006-2010 TWiki:TWiki/TWikiContributor |
License: | GPL (GNU General Public License) |
Plugin Version: | 19806 (2010-11-09) |
Plugin Release: | 1.6 |
Change History: | |
22 Feb 2010: | Internal changes compatible with trunk; various enhancements - added alphabet setting for alpha sequence; documentation enhancements |
4 Jun 2009: | Added a bold preference option; (TWiki:Main.SallyHoughton) |
3 Mar 2009: | Exclude textareas from rendering to improve compatibility with TWiki:Plugins.EditChapterPlugin. (TWiki:Main.GeorgeClark); |
12 Feb 2009: | Fixed regular expression to parse enumerated headings (TWiki:Main.MichaelDaum); Added support for upper-case alphabetic enumerations (TWiki:Main.DarrenElkerton) |
21 Nov 2006: | Added reset to specific number based on suggestion by TWiki:Main.SteveWampler. Added support of numbered headers. Proper handling in table of content. |
17 Sep 2003: | Added alpha-labeled lists. |
12 Aug 2003: | Initialize sequences in startRenderingHandler. Thank you TWiki:Main.IngoKarkat. |
29 Jul 2003: | Initial version |
CPAN Dependencies: | none |
Other Dependencies: | none |
Perl Version: | 5.8.0 |
Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/ExplicitNumberingPlugin |
Feedback: | http://TWiki.org/cgi-bin/view/Plugins/ExplicitNumberingPluginDev |