BookmarkSubscribeRSS Feed
ToddPM
Calcite | Level 5
Does anyone have any insight as to why the underlining that should appear under the text appears in different locations based on the height of the region it is in?

[pre]
OPTIONS NODATE NONUMBER ORIENTATION=portrait PAPERSIZE=letter;

ODS LISTING CLOSE;

ODS ESCAPECHAR='^';

ODS PDF FILE="underline.pdf" NOTOC;

ODS LAYOUT START x=0 pct y=0 pct width=100 pct height=100 pct;
PROC GSLIDE;
RUN;
QUIT;

ODS REGION x=0 in y=0 in width=5 in height=1 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]This underlined line of text is in a region that is 0 inches down and is 1 inch high.}";

ODS REGION x=0 in y=1 in width=1.5 in height=1 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]1 in. down, 1 in. high}";

ODS REGION x=1.5 in y=1 in width=1.5 in height=2 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]1 in. down, 2 in. high}";

ODS REGION x=3 in y=3 in width=1.5 in height=1 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]3 in. down, 1 in. high}";

ODS REGION x=4.5 in y=3 in width=1.5 in height=3 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]3 in. down, 2 in. high}";

ODS REGION x=6 in y=3 in width=1.5 in height=4 in;
ODS PDF TEXT="^{style [TEXTDECORATION=underline]3 in. down, 4 in. high}";

ODS LAYOUT END;

ODS _ALL_ CLOSE;
ODS LISTING;
[/pre]
2 REPLIES 2
Cynthia_sas
Diamond | Level 26
Hi:
ODS LAYOUT is still "pre-production", so you might want to check with Tech Support. I'm not exactly sure how text_decoration and ODS TEXT= work in the context of ODS LAYOUT and ODS REGION.

Since ODS LAYOUT is still "pre-production" if you open a track with Tech Support, they will be able to ask the ODS LAYOUT developers how/why and how to fix types of questions.

cynthia
ToddPM
Calcite | Level 5
FYI to anyone else grappling with this: don't knock yourself out trying to get it to work correctly; I've had it confirmed from SAS tech support that this is a defect.
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
  • 2 replies
  • 1595 views
  • 0 likes
  • 2 in conversation