views:

25

answers:

0

I have "section.autolabel" set to 1 with a max.depth of 2. So, my section (sect1, sect2, sect3, ...) titles are as follows:

1. Introduction
1.1 All about it
1.2 Some more all abouts

These are generated as pure text (ie: "1.1 All about it") without any formatting specifically for the numbering and the title separately.

What I would like to do is separate the two components into two separate regions and keep the numbering far to the left and the title more right-ish, in line with the body text start indent. So something like this:

1.       Introduction

1.1      All about it.

         Yakkety smakkety with a blue blah blah. And then
         they lived happily ever after.

1.2      Some more all abouts 

         Etc.

I'm generating FO output and using the DocBook 5 + DocBook NS XSL with a rapidly growing customization layer.

So, I guess this question is two fold:

  1. What can I override to have control of the title generation? I'm a bit confused the flow inside fo/sections.xsl and how it fits together?

  2. How would I introduce a fixed-width inline element to give the numbers and title their needed spacing? I've been messing around with some fo:inline-containers, fo:block-containers but none of it is producing the result I want.