|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Toc macro doesn't workHello,
The indentation of the result of toc macro doesn't work I create a simple example and if you look the result you can see that has soon the h4 tag is reach the toc doesn't indent correctly. Any Idea ? Olivier <?xml version="1.0" encoding="ISO-8859-15"?> <document> <properties> <author>me</author> <title>title</title> </properties> <body> <macro name="toc"> <param name="section" value="0"/> </macro> <section name="TITLE 1"> <subsection name="SUB TITLE 1.1"> bla bla... </subsection> <subsection name="SUB TITLE 1.2"> bla bla...</subsection> <subsection name="SUB TITLE 1.3"> bla bla...</subsection> <h4 name= "SUB SUB TITLE 1.3.1"> bla bla</h4> <h4 name= "SUB SUB TITLE 1.3.2"> bla bla</h4> <h4 name= "SUB SUB TITLE 1.3.3"> bla bla</h4> <subsection name="SUB TITLE 1.4"> bla bla...</subsection> </section> <section name="TITLE 2"> <subsection name="SUB TITLE 2.1"> bla bla... </subsection> <subsection name="SUB TITLE 2.2"> bla bla...</subsection> <subsection name="SUB TITLE 2.3"> bla bla...</subsection> <h4 name= "SUB SUB TITLE 2.3.1"> bla bla</h4> <h4 name= "SUB SUB TITLE 2.3.2"> bla bla</h4> <h4 name= "SUB SUB TITLE 2.3.3"> bla bla</h4> <subsection name="SUB TITLE 2.4"> bla bla...</subsection> </section> </body> </document> |
|
|
|
|
|
Re: Toc macro doesn't workTwo remarks:
- the <h4> tag doesn't have a name attribute, it should be: <h4>SUB SUB TITLE 1.3.1</h4> bla bla... - the <subsection> should enclose the whole block it contains, just like section: <subsection name="SUB TITLE 2.3"> bla bla... <h4>SUB SUB TITLE 2.3.1</h4> <h4>SUB SUB TITLE 2.3.2</h4> <h4>SUB SUB TITLE 2.3.3</h4> </subsection> - the above makes the indentation work for the first section. However, there is another bug that makes subsequent sub-sections disappear from the toc, ie in section 2 the sub-sub-sections are missing; if you add an identical section 3, the sub-sections are missing, etc. I'll have a look, it's probably a stupid thing to fix... -Lukas olivier.beyler@... wrote: > Hello, > The indentation of the result of toc macro doesn't work > I create a simple example and if you look the result you can see that > has soon the h4 tag is reach the toc doesn't indent correctly. > Any Idea ? > Olivier > > <?xml version="1.0" encoding="ISO-8859-15"?> > <document> > <properties> > <author>me</author> > <title>title</title> > </properties> > <body> > <macro name="toc"> > <param name="section" value="0"/> > </macro> > <section name="TITLE 1"> > <subsection name="SUB TITLE 1.1"> > bla bla... > </subsection> > <subsection name="SUB TITLE 1.2"> bla bla...</subsection> > > <subsection name="SUB TITLE 1.3"> bla bla...</subsection> > > <h4 name= "SUB SUB TITLE 1.3.1"> bla bla</h4> > <h4 name= "SUB SUB TITLE 1.3.2"> bla bla</h4> > <h4 name= "SUB SUB TITLE 1.3.3"> bla bla</h4> > <subsection name="SUB TITLE 1.4"> bla bla...</subsection> > </section> > <section name="TITLE 2"> > <subsection name="SUB TITLE 2.1"> bla bla... </subsection> > <subsection name="SUB TITLE 2.2"> bla bla...</subsection> > > <subsection name="SUB TITLE 2.3"> bla bla...</subsection> > > <h4 name= "SUB SUB TITLE 2.3.1"> bla bla</h4> > <h4 name= "SUB SUB TITLE 2.3.2"> bla bla</h4> > <h4 name= "SUB SUB TITLE 2.3.3"> bla bla</h4> > <subsection name="SUB TITLE 2.4"> bla bla...</subsection> > > </section> > > </body> > </document> > |
| Free embeddable forum powered by Nabble | Forum Help |