I am using ODF PDF, and I trying to figure out a way to turn off bold in titles. Here are the things I've tried. In all of these cases, the title is still bold. Footnotes, however, are not bold. Any suggestions?
title1 height = 8pt font = 'Arial' justify = left 'title ' justify = right "more title ";
ods escapechar = '`'; title1 height = 8pt font = 'Arial' justify = left '`{style [fontWeight=light]}title ' justify = right "more title ";
proc template; define style pearlEdit; parent = styles.pearl; style fonts / 'TitleFont2' = ("Arial" , 8pt) 'TitleFont' = ("Arial" , 8pt) 'StrongFont' = ("Arial" , 8pt) 'EmphasisFont' = ("Arial" , 8pt) 'FixedEmphasisFont' = ("<monospace>, Courier" , 8pt) 'FixedStrongFont' = ("<monospace>, Courier" , 8pt) 'FixedHeadingFont' = ("<monospace>, Courier" , 8pt) 'BatchFixedFont' = ("SAS Monospace, <monospace>, Courier", 8pt) 'FixedFont' = ("<monospace>, Courier" , 8pt) 'headingEmphasisFont' = ("Arial" , 8pt) 'headingFont' = ("Arial" , 8pt) 'docFont' = ("Arial" , 8pt); end; run;
ods pdf file = "My PDF.pdf" style = pearlEdit;
I figured it out! I was plotting a graph using sgplot, and the titles were becoming part of the graph, using the style for the graph rather than the document. I added noGTitle and noGFootnote to my ODS PDF statement, and now the constant bold is gone.
It might be a bug that bold cannot be turned off with gTitle.
Sorry if I wasted anyone's time.
I figured it out! I was plotting a graph using sgplot, and the titles were becoming part of the graph, using the style for the graph rather than the document. I added noGTitle and noGFootnote to my ODS PDF statement, and now the constant bold is gone.
It might be a bug that bold cannot be turned off with gTitle.
Sorry if I wasted anyone's time.
If you don't need the Title behavior of repeating for different procedures or the use of the #By directives you might try "
1) no title at all
2) ODS Text or Proc ODSTEXT to place text before a graph object.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.