OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK: What am I doing wrong?


On Wed, 28 Feb 2001, Skinner, Reed wrote:

> I hope this is the right list for this question. It's probably a dumb
> question, but I can't seem to get any of my documents to list the section
> numbers. For example, normally you would have something like the following:
> 
> 1.  Section1
>   1.1 ...
>   1.2 ...
>   1.3 ...
> 2. Section2
>   2.1 ...
>   2.1 ...
> 
> and so on. I can get the document to list the number of the main sections
> (1. Section1, etc.) but any individual sections I create under that aren't
> being listed with a 1.1 or 1.2, etc.
> 
> Here is the syntax that I'm using:
> 
> <chapter>
>     <title>...</title>
>       <sect1>
> 	 <title>...</title>
>           <para>...</para>      
>       </sect1>
>       <sect1>
>         <title>...</title>
> 	    <caution>
>            <para>...</para>
>           </caution>
>       </sect1>

	Try using the "section" tag instead of "sect1". Here's how I would
do it...

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<book>
  <title>Whatever</title>

  <chapter>
    <title>Section 1</title>  

    <section>
      <title>Section 1.1</title>  
      <para>To be written.</para>
    </section>

    <section>
      <title>Section 1.2</title>  
      <para>To be written.</para>
    </section>
  </chapter>
</book>


-=- Kevin Conder, http://KevinDumpsCore.com





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC