Usage Note 24314: How can I underline text when writing to PDF or RTF using FILE PRINT?
You can get underlining in RTF by using RTF control words with inline formatting. "\UL" starts the underlining, and "\UL0" stops the underlining.
If you are unsure whether your chosen ESCAPECHAR is a special character in RTF, set the style attribute PROTECTSPECIALCHARS=OFF so the escape character is ignored when the RTF control words are passed to the output. View
RTF output.
ods escapechar='^';
ods rtf file='underline.rtf';
data _null_;
file print;
/* syntax if ESCAPECHAR used has special meaning in RTF */
*text='^S={protectspecialchars=off}\ul Underline keywords\ul0 only.';
/* syntax if ESCAPECHAR used does not have special meaning in RTF */
text='^\ul Underline keywords^\ul0 for emphasis.';
put text;
run;
ods rtf close;
Beginning in SAS 9.2, a new technique for underlining in PDF will be available. In the meantime, if you are willing to use some other emphasis, such as boldface, you can use inline formatting for PDF. (This technique also works for the RTF destination.)
View
PDF output.
ods escapechar='~';
ods pdf file='C:\bold.pdf';
data _null_;
file print;
text='Use bold to highlight~S={font_weight=bold} important information~S={}.';
put text;
run;
ods pdf close;
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Type: | Usage Note |
| Priority: | low |
| Topic: | System Administration ==> Printing Third Party ==> Output ==> RTF SAS Reference ==> DATA Step SAS Reference ==> ODS (Output Delivery System) Third Party ==> Output ==> PDF
|
| Date Modified: | 2005-07-25 10:37:54 |
| Date Created: | 2005-07-21 23:00:39 |