BookmarkSubscribeRSS Feed
jdibber
Calcite | Level 5

Hello,

 

Using ^{super 1} embedded in variables, titles and column headers produces a superscript number that is very small.  The below post describes a method for increasing the superscript size in titles.  It works in footnotes and column labels, as well. 

 

title1 "^{style[just=c font_size=14pt font_face=Courier]Heading}^{style [just=c font_size=12pt font_face=Courier]^{super a}}";

 

https://communities.sas.com/t5/General-SAS-Programming/Changing-font-size-of-superscript-characters/...

 

Unfortunately, I could not find a way to change the font size if the superscript code is embedded in a variable.  Can this be done?

 

many thanks!

1 REPLY 1
jdibber
Calcite | Level 5

Solution found...or so it seems

 

To change font size of superscript embedded in a variable

 

data rpt;

     var2 = strip(var1)||"^S={fontsize=10pt}^{super 1}";

run ;

 

To change font size of superscript in heading label and footnote in the proc report

 

proc report data=rpt ;

     column var2 ;

     define var2 / display style(column)=[just=center width=10%]
                           style(header)=[just=center]
                           "Text^{style [fontsize=10pt]^{super 1}}" ;

 

footnote j=l  "^{style [fontsize=10pt ]^{super 1}}Footnote text..." ;

run ;

 

The table body font size is 8pt.  Increasing the superscript to 10pt slightly increases the line spacing b/t footnotes.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1461 views
  • 0 likes
  • 1 in conversation