Modifying a Style Template Definition: A Simple Example

Now that you've seen a simple example of how a style template definition works, let's look at a simple example of modifying one. We're going to create a new style template that produces output just like the Default style template does, except that our new one uses a different font for the titles.

The fonts in the previous example were defined in a class called "fonts." The full list of fonts is shown in Figure 13.7. To modify a specific font, we use PROC TEMPLATE. A DEFINE statement names our new style template, and a PARENT= statement indicates that the new style template will be based on the Default style template definition. The name of our new template is DefaultNewTitle.

PROC TEMPLATE; ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.