##., ##.. etc. notation to insert outline numbering sequences (1, 1.1, 2, 2.1) in topic's text.
Use ---#, ---##, etc., to generate numbered headings.
##... (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.1.1.1.1 |
| ##...... | 1.1.1.1.1.1 | 1.1.1.1.1.1 |
| ##....... | 1.1.1.1.1.2 | 1.1.1.1.1.2 |
| Chapter ##a#. | Chapter 1 | Chapter 1 |
| Section ##a#.. | Section 1.1 | Section 1.1 |
| Subsection ##a#... | Subsection 1.1.1 | Subsection 1.1.1 |
| Req ##a#....: | Req 1.1.1.1: | Req 1.1.1.1: |
| Req ##a#....: | Req 1.1.1.2: | Req 1.1.1.2: |
| Subsection ##a#... | Subsection 1.1.2 | Subsection 1.1.2 |
| Req ##a#....: | Req 1.1.2.1: | Req 1.1.2.1: |
| Req ##a#....: | Req 1.1.2.2: | Req 1.1.2.2: |
| ##a#....a) | a) | a) |
| ##a#....a) | b) | b) |
| Req ##a#....: | Req 1.1.2.3: | Req 1.1.2.3: |
| Section ##a#.. | Section 1.2 | Section 1.2 |
| Chapter ##a#. | Chapter 2 | Chapter 2 |
| Section ##a#.. | Section 2.1 | Section 2.1 |
| Section ##a#.. | Section 2.2 | Section 2.2 |
%<plugin>_<setting>%, i.e. %EXPLICITNUMBERINGPLUGIN_SHORTDESCRIPTION%
##., ##.. etc. notation to insert outline numbering sequences (1, 1.1, 2, 2.1) in topic's text. Support also numbered headings.
data/debug.txt) ExplicitNumberingPlugin.zip in your twiki installation directory. Content: | File: | Description: |
|---|---|
data/TWiki/ExplicitNumberingPlugin.txt | Plugin topic |
lib/TWiki/Plugins/ExplicitNumberingPlugin.pm | Plugin Perl module |
configure in your TWiki installation, and enable the plugin in the {Plugins} section.
| Plugin Author: | TWiki:Main/MartinVlach |
| Copyright: | © 2003, Lynguent, Inc. © 2006, TWikiContributor |
| License: | GPL (GNU General Public License ) |
| Plugin Version: | 21 Nov 2006 |
| Change History: | |
| 21 Nov 2006: | Added reset to specific number based on suggestion by 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 |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.1 |
| 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 |
|
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Daya Bay? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.ExplicitNumberingPlugin. |