I'm working on a docbook document which I am currently trying to process to PDF via FO.
The document is an <article>.
I'm generally copying the formatting of an existing set of Word documents.
In particular at the moment I'm looking at the appearance of the ToC pages.
In the standard stylesheets, each line of ToC is generated looking rather like
this :
1. Overview
..........................................................................................
3
2. Description
.......................................................................................
3
3. Applicable Documents
......................................................................... 3
4. Configuration procedure
...................................................................... 3
5. Starting up
.......................................................................................
3
5.1. Dependencies
.......................................................................... 3
5.1.1. Level 3 Heading
............................................................. 3
6. Features
..........................................................................................
3
6.1. Diagnostics
.............................................................................. 4
6.2. Test procedures
....................................................................... 4
7. Known Issues
...................................................................................
5
8. Version History
.................................................................................
5
ie the title string is immediately followed by the leader. No difference in
styling.
(the page numbers are aligned in the PDF document, even though they may not be
here.
The apearance I am looking for is more like the following :
Contents
.....................................................................................................
1<about:blank#_Toc354480557>
1 Overview.
................................................................................................
4<about:blank#_Toc354480558>
1.1 Description.
...................................................................................
4<about:blank#_Toc354480559>
1.2 Device firmware version.
..................................................................
4<about:blank#_Toc354480560>
1.3 Configuration.
................................................................................
4<about:blank#_Toc354480561>
1.3.1 The v1/v2 Location
..........................................................................
4<about:blank#_Toc354480562>
1.3.2 The V3 Location
............................................................................
5<about:blank#_Toc354480563>
1.3.3 The V4 Location
............................................................................
5<about:blank#_Toc354480564>
1.4 Driver compatibility.
........................................................................
5<about:blank#_Toc354480565>
1.5 Version.
.......................................................................................
5<about:blank#_Toc354480566>
1.5.1 Automatic Shutdown on Closing.
........................................................
5<about:blank#_Toc354480567>
1.6 Messaging System – If32.dll.
.............................................................
5<about:blank#_Toc354480568>
Again the page numbers should appear lined up. Not sure if the rest of this
will come through on this list.
The different section levels should have different styles.
The particular requirements here are :
1. Section numbers at each level are aligned.
2. Headings at each level are alligned.
3. Headings and section numbers at each level have different styles.
Can the styling can be done using existing attribute sets ? I can see that
such attibute sets exist for the actual section titles, but I can't see any for
the titles as shown in the ToC.
I am not sure how I can do the alignment.
I was thinking it might be doable using an fo:table, but there are a number of
separate alignment lines (columns) so that doesn't seem to me like a table.
I see that the default stylesheet does start each level at the same alignment.
But that only applies to the section numbers. The title text starts
immediately after the number, where I want that text also to be on a per-level
alignment.
Can anyone advise how I should approach this.
I believe the per-line formatting is done by template toc.line, from
fo/autotoc.xsl. But I'm not clear where the page is generated from.
Appreciatively,
Richard.
[Blue line]
Richard Kerry
BNCS Engineer
T: +44 (0)20
82259063[cid:A4FDD16-EA4B-4A5EE-A24E-984DDF44AF@MimeCtl]<about:blank#>
M: +44 (0)7812
325518[cid:A4FDD16-EA4B-4A5EE-A24E-984DDF44AF@MimeCtl]<about:blank#>
Room EBX 301, BBC Television Centre, Wood Lane, London, W12 7RJ
[email protected]<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=mailto%3arichard.kerry%40atos.net>
uk.atos.net<https://webmail.siemens-it-solutions.com/owa/redir.aspx?C=9fb20d019e3e4cb99344d708709a3177&URL=http%3a%2f%2fuk.atos.net%2fen-uk%2f>
[Atos logo]
This e-mail and the documents attached are confidential and intended solely for
the addressee; it may also be privileged. If you receive this e-mail in error,
please notify the sender immediately and destroy it. As its integrity cannot be
secured on the Internet, the Atos group liability cannot be triggered for the
message content. Although the sender endeavours to maintain a computer
virus-free network, the sender does not warrant that this transmission is
virus-free and will not be liable
attachment.ashx
Description: attachment.ashx
BsAt4ube4GblQIAAAAASUVORK5CYII=
Description: BsAt4ube4GblQIAAAAASUVORK5CYII=
attachment.ashx
Description: attachment.ashx
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
