toc

Summary

Inserts table of contents into PDF document

Usage

pdf(toc, hash( contentText, toc_header_text,
                [ size, size_array, ]
                [ dots, boolean, ]
                [ indent, indent_array ] ) )}

Parameters

NameTypeDescriptionRequired
contentText string Table of contents header yes
size array Font size array. First element is header of level 1, etc. no
indent array Title indent, based on header level no
dots boolean Display dots between title name and page number or not. no

Returns

Description

The toc function must be called aftert all normal content has been added, and only be called one time. It will generate a Table of contents after the optional front page.

Available from 3.3 and newer

Examples

{pdf(toc, hash( size, array( 18, 16, 14, 12, 10 ),

               dots, true(),

contentText, "Content"|i18n("design/standard/content/pdf")|wash(pdf),

indent, array( 0, 4, 6, 8, 10 ) ) )}

Comments

log in or create a user account to comment.

Contents

Reference

Database diagram
Template operators
    PDF
       anchor
       createIndex
       filled_circle
       filled_rectangle
       footer
       footer_block
       frame_header
       frontpage
       header
       header_block
       image
       keyword
       line
       link
       newline
       newpage
       set_font
       set_margin
       strike
       table
       text
       text_box
       text_frame
       toc
       ul
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

14/05/2004
10:19:32 am
by Kåre Køhler Høvik

Last updated

14/05/2004
10:19:32 am
by Kåre Køhler Høvik

Authors

Kåre Køhler Høvik



This page is part of the Exponential documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.