ez.no / exponential / documentation / reference / template operators / pdf / toc
pdf(toc, hash( contentText, toc_header_text,
[ size, size_array, ]
[ dots, boolean, ]
[ indent, indent_array ] ) )}
| Name | Type | Description | Required |
|---|---|---|---|
| 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 |
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
{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 ) ) )}
log in or create a user account to comment.
Comments