---
title: "p.title.toc-preface"
description: "## Syntax **p.title.toc-preface** ## Purpose The p.title.toc-preface annotation is used to tag an element as being the title of preface content within a document. A preface element exists in the bookmap’s metadata and contains a reference to the associated DITA…"
url: "https://www.stilo.com/docs/migrate/book/p-title-toc-preface/"
updated: "2023-12-11"
category: Annotations / Book, Map and Bookmap
tags:
  - Annotations
---

# p.title.toc-preface

## Syntax

**p.title.toc-preface**

## Purpose

The p.title.toc-preface annotation is used to tag an element as being the title of preface content within a document. A preface element exists in the bookmap’s metadata and contains a reference to the associated DITA file. Content tagged as a preface will be located within the frontmatter section of a bookmap.

 

This annotation should be applied to the heading of the section where you wish to begin a preface. It will contain all following content until the next frontmatter notice, part, chapter, appendix, or backmatter element is created. Any content tagged as a preface will appear before frontmatter notices.

 

This annotation is not applied to the table of contents entry.

## Example

The following is an example of a time when you might want to use the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-p.title_.toc-preface0.png)

 

The following is an example of a rule that will apply the annotation

![](https://www.stilo.com/wp-content/uploads/2023/12/stilo-dita-xml-annotation-p.title_.toc-preface1.png)

The following is the DITA XML output for the rule:

<preface>

<topicref href="Preface.dita"/>

</preface>
