Modifying the Color of Your Titles

Because there are so many ways to modify color settings, it can get a bit confusing. This first example is very simple so you can see what is going on.

The default template Styles.Default uses dark text on a light background for titles and footnotes. For a different look, we can reverse those settings. In Styles.Default, fgA is set to the color cx002288, and bgA is set to the color cxE0E0E0. To reverse the settings, you just have to exchange those two values. The following code shows how to define a new template where the color_list style element now has these new settings:

PROC TEMPLATE; DEFINE STYLE ReverseColors; PARENT=Styles.Default; CLASS color_list / 'fgB2' = cx0066AA 'fgB1' = cx004488 'fgA4' = cxAAFFAA ...

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.