BookmarkSubscribeRSS Feed
Obsidian | Level 7

I’m using ODS graphics in SAS University Edition under Windows 10 to prepare figures for a journal article. I’m annotating some of the figures (with SG Annotation), and I would like to use italics in some of the annotations. But, so far, I’ve been unable to get this to work with vector graphics.


The attached program illustrates the problem.


Is there a way to import vector graphics from SAS University Edition into Word with italics in annotations?


Thank you for your help,


Don Macnaughton

Super User

So, SVG is not an option with RTF. 

For RTF the valid options are:


EMF (default), PNG, JPEG, JPG, JFIF


The PNG didn't seem bad to me when embedded and it did keep the italics. I didn't try all the options, but you can play around. I do know that there are some issues with using the Arial font families, if you search on here you'll find a post that details the issues (from Cynthia Zender).


Here's the doc link that states the type vs ODS output.  I use ODS RTF statements because then I can control the file name and other things if necessary.  This also means I can navigate to the myfolders, set up during installation, to see my files. No need to 'download' files anywhere. 


ods rtf file='/folders/myfolders/output.rtf';
ods graphics / imagefmt=png; 
ods escapechar='@';


data anno;
%sgtext(label="Here's some italic text with a subscript:", 
		textsize=14, textfont="Times New Roman", 
		x1=20, Y1=50,
      anchor="LEFT", width=70);
%sgtextcont(label=" b@{sub 'i'}", textstyle="ITALIC");

data _one_;
input x y;
1 2
3 4

proc sgplot sganno=anno;
  scatter x=x y=y;

ods rtf close;

I'm sure some of the SAS guys will comment, and probably have the correct answer but wanted to give you some options until they come along and correct me once again 😉



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg



Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2 in conversation