Table of Contents

Syntax #


Purpose #

The p.example annotation is used to identify information that demonstrates or further explains a topic. This ensures that examples remain separated from the main body text.

Examples #

The following is an example of a time where you might want to use the p.example annotation:

The following is an example of a rule that will apply p.example:

In this example, the context class exampleText is set to true by a rule applying a title annotation to the preceding paragraph.

The following is an example of the DITA output you would get from this annotation.

 <p>To solve y = 3(4) + 2, first multiply 3 and 4 together to get 12. Then add 2 to get y = 14.</p>