BookmarkSubscribeRSS Feed
xxformat_com
Barite | Level 11

Hi,

I was wondering why the length of the line is not sufficient when the textindent option is used and how to fix it.

The same issue also occurs in ods rtf.

 

indent_pdf.JPG

 

ods pdf file="&demo./reporting/test.pdf";
proc odstext;
   list; 
      item 'First example';
      item 'Second example';
      item 'Third example';
   end;
run;

proc odstext;
   list / style={textindent=10} ;
      item 'First example';
      item 'Second example';
      item 'Third example';
   end;
run;

ods pdf close;

Best Regards,

Véronique

2 REPLIES 2
JosvanderVelden
SAS Super FREQ

I don't know what is happening here. Result window does not wrap for me. The pdf file does have the wrapped items as you mention.

 

If I use a dummy item without spaces (see code below) the wrapping does not happen.

ods pdf file="&demo./reporting/test.pdf";

proc odstext;
   list; 
      item 'First example';
      item 'Second example';
      item 'Third example';
   end;
run;

proc odstext;
   list / style={textindent=25} ;
/* long dummy item */
      item '_____________________________________________________';
      item 'First example';
      item 'Second example';
      item 'Third example';
   end;
run;

ods pdf close;

Maybe this helps in the investigation.

 

Regards, Jos

 

xxformat_com
Barite | Level 11

There are three workarounds which work in my PDF but It's far from great as the same output cannot be expected in other destinations like the HTML destination.

 

- use marginleft= (usually used to define the global option style attribute) instead of textindent=

- use textindent= + asis=on

- use textindent= + width=

 

By the way, if someone know how to indent both bullet points and related text (not just the text) in a clean way, feel free to share the syntax.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1840 views
  • 0 likes
  • 2 in conversation