Howto generate index contents

View: New views
7 Messages — Rating Filter:   Alert me  

Howto generate index contents

by 61Sniper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,

I have a problem. I generated a pdf-file with docbook. My index content is so:

1. chapter1...............................1
    xxxxx....................................1
    xxxxx....................................2
    ...
2. chapter2...............................5
    xxxxx....................................6
    xxxxx....................................7
    ...
How can I generate an docbook such as below:

1. chapter1...............................1
    1.1 xxxxx..............................1
    1.2 xxxxx..............................2
    ...
2. chapter2...............................5
    2.1 xxxxx..............................6
    2.2 xxxxx..............................7

Can anyone help me?

Thanks

Re: Howto generate index contents

by Bob Stayton :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you are asking how to turn on section numbering for sections?  If
so, then set the stylesheet parameter section.autolabel to 1.  See this
reference for more information:

http://www.sagehill.net/docbookxsl/SectionNumbering.html

Or perhaps you just want the numbers in the TOC and not in the sections
themselves?

Bob Stayton
Sagehill Enterprises
bobs@...


----- Original Message -----
From: "61Sniper" <bahtiyar.yanik@...>
To: <docbook-apps@...>
Sent: Friday, January 25, 2008 3:50 AM
Subject: [docbook-apps] Howto generate index contents


>
> Hi guys,
>
> I have a problem. I generated a pdf-file with docbook. My index content is
> so:
>
> 1. chapter1...............................1
>    xxxxx....................................1
>    xxxxx....................................2
>    ...
> 2. chapter2...............................5
>    xxxxx....................................6
>    xxxxx....................................7
>    ...
> How can I generate an docbook such as below:
>
> 1. chapter1...............................1
>    1.1 xxxxx..............................1
>    1.2 xxxxx..............................2
>    ...
> 2. chapter2...............................5
>    2.1 xxxxx..............................6
>    2.2 xxxxx..............................7
>
> Can anyone help me?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Howto-generate-index-contents-tp15086168p15086168.html
> Sent from the docbook apps mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@...
> For additional commands, e-mail: docbook-apps-help@...
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


Re: Howto generate index contents

by 61Sniper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thank you very much. Your Link helped me. Just I have got another problem. How can I change the font size of the Title of sect1 Element?



Bob Stayton wrote:
I think you are asking how to turn on section numbering for sections?  If
so, then set the stylesheet parameter section.autolabel to 1.  See this
reference for more information:

http://www.sagehill.net/docbookxsl/SectionNumbering.html

Or perhaps you just want the numbers in the TOC and not in the sections
themselves?

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message -----
From: "61Sniper" <bahtiyar.yanik@googlemail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, January 25, 2008 3:50 AM
Subject: [docbook-apps] Howto generate index contents


>
> Hi guys,
>
> I have a problem. I generated a pdf-file with docbook. My index content is
> so:
>
> 1. chapter1...............................1
>    xxxxx....................................1
>    xxxxx....................................2
>    ...
> 2. chapter2...............................5
>    xxxxx....................................6
>    xxxxx....................................7
>    ...
> How can I generate an docbook such as below:
>
> 1. chapter1...............................1
>    1.1 xxxxx..............................1
>    1.2 xxxxx..............................2
>    ...
> 2. chapter2...............................5
>    2.1 xxxxx..............................6
>    2.2 xxxxx..............................7
>
> Can anyone help me?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Howto-generate-index-contents-tp15086168p15086168.html
> Sent from the docbook apps mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

Re: Howto generate index contents

by spr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Assume, you are looking for changing style in the TOC.

I use this for styling chapter, preface and appendix:

  <xsl:attribute-set
    name    = "toc.line.properties">
    <xsl:attribute
      name    = "font-weight">
      <xsl:choose>
        <xsl:when
          test  = "self::d:chapter | self::d:preface | self::d:appendix">
          <xsl:text>bold</xsl:text>
        </xsl:when>
        <xsl:otherwise>
          <xsl:text>normal</xsl:text>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:attribute>

  </xsl:attribute-set>

You may want to try for sect1. (you will need to use 'font-size' instead of 'font-weight')

~spr

61Sniper wrote:
Thank you very much. Your Link helped me. Just I have got another problem. How can I change the font size of the Title of sect1 Element?
~spr

Re: Howto generate index contents

by 61Sniper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I`m not looking for changing style in the TOC. I would like change the font-size of the chapter (title) and sect1 (title).
My font-size is to big. I think it is 30pt.

I have tried it with the following command:

<xsl:param name="sect1.title.font.size">18</xsl:param>




Assume, you are looking for changing style in the TOC.

I use this for styling chapter, preface and appendix:

  <xsl:attribute-set
    name    = "toc.line.properties">
    <xsl:attribute
      name    = "font-weight">
      <xsl:choose>
        <xsl:when
          test  = "self::d:chapter | self::d:preface | self::d:appendix">
          <xsl:text>bold</xsl:text>
        </xsl:when>
        <xsl:otherwise>
          <xsl:text>normal</xsl:text>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:attribute>

  </xsl:attribute-set>

You may want to try for sect1. (you will need to use 'font-size' instead of 'font-weight')

~spr

61Sniper wrote:
Thank you very much. Your Link helped me. Just I have got another problem. How can I change the font size of the Title of sect1 Element?


RE: Howto generate index contents

by Mauritz Jeanson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> -----Original Message-----
> From: 61Sniper
>
> I`m not looking for changing style in the TOC. I would like
> change the font-size of the chapter (title) and sect1 (title).
> My font-size is to big. I think it is 30pt.


http://www.sagehill.net/docbookxsl/TitleFontSizes.html#ChapterTitles
http://www.sagehill.net/docbookxsl/TitleFontSizes.html#SectionTitles

/MJ



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@...
For additional commands, e-mail: docbook-apps-help@...


RE: Howto generate index contents

by 61Sniper :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

thank you very much. I solved my problem with your Link. It is very easy and helpful.

Cheers




Mauritz Jeanson wrote:
> -----Original Message-----
> From: 61Sniper
>
> I`m not looking for changing style in the TOC. I would like
> change the font-size of the chapter (title) and sect1 (title).
> My font-size is to big. I think it is 30pt.


http://www.sagehill.net/docbookxsl/TitleFontSizes.html#ChapterTitles
http://www.sagehill.net/docbookxsl/TitleFontSizes.html#SectionTitles

/MJ



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org