BookmarkSubscribeRSS Feed
Reeza
Super User

I'm creating headers and footers in my PDF document using title and footnote statements, with a style=Journal applied.

Is there a way to style the title/footnotes inline so that they're not bold and italic?

Otherwise I'm assuming I need to change the template?

ods escapechar="^";

options nodate nonumber topmargin=1in bottommargin=1in leftmargin=1in rightmargin=1in;

ods listing close;

ods pdf file="C:\temp\sample.pdf"

    startpage=never style=journal notoc ;

title j=l "^{style [fontsize=9pt]Part1 of header}" j=r "^{style [fontsize=9pt ]Part2 of header}";

title2 "^{style [just=l fontsize=9pt  ] Part3 of header}";

footnote "^{style [just=l fontsize=9pt ] ^{unicode 00A9} REEZA}";

proc print data=sashelp.class;

run;

ods pdf close;

1 REPLY 1
ballardw
Super User

You may not need to dig into the style elements and escape sequences quite so much.

From the online help example the following does all kinds of things with titles and they work when I create a PDF.

title1 "This is TITLE1" height=4;

title3 underlin=1

       "TITLE3 Is"

       color=red

       " Underlined";

title5 color=red

       angle=-90

       "TITLE5 is Angled -90";

title7 color=red

       rotate=25

       "TITLE7 is Rotated";

title8 color=green

       box=1

       "TITLE8 is Boxed";

title9 color=red

       box=3

       blank=yes

       bcolor=red

       color=blue

       angle=-25

       "TITLE9 is Angled in a Red Box";

title10 color=red

        box=1

        bcolor=blue

        move=(10,14)

        font=script

        "TITLE10 is in Script and "

        move=(10,10)

        height=2

        "is Partially Boxed, Positioned"

        move=(10,8)

        height=2

        "with Explicit Moves, and Overlaid by TITLE9";

   /* define footnote */

footnote justify=right "GTIENTI1 ";

/* display titles and footnote */

proc gslide;

run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1315 views
  • 0 likes
  • 2 in conversation