Cookbook
In this section concrete applications are shown, with sample data, but with requirements that occur in practice. Three chapters (Table of Contents, Index, and Page X of Y) are implemented using the same mechanism with the XML element structure (chapter Creating XML Structures ).
Automatically generated directories
This chapter is dedicated to the creation of directories. There are basically two ways to create a directory. Therefore, the next section is about the built-in mechanism of markers (<Mark>), the following sections are about the way via <Element> and <Attributes> and manually saving the data for another pass.
In order for the Publisher to run through several times, the runs parameter must be set on the command line or in the configuration file, for example with sp --runs=2 (command line) or runs = 2 (configuration file). In the section Create table of contents in one go
a mechanism is shown how in some cases a directory can be created in only one run. |
Thumb Index
Creating thumb indexes on page edges
Multi-page PDFs
Embedding multi-page PDF files
Layout Optimization
Optimizing layouts using groups
Directories
Creating directories with markers
TOC in One Run
Creating a table of contents in a single pass
Page x of y
Displaying page numbers like 'Page 3 of 12'
Index Creation
Sorting and creating keyword indexes
