turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS/GRAPH and ODS Graphics
- /
- LaTeX equation in a title

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-30-2014 06:26 AM

Now and then when I create graphs I have the need of specifying a mathematical formulae either in the title or in the axis-label. My question is therefore is possible to somehow specify a LaTeX equation directly in the title statement. Something like

title1 font=?? '\int_{0}^{\infty} \frac{1}{Y(s)}dN(s)';

proc gplot data=...;

plot a*b;

run;

I most often use the device=pslepsf so that I get a epsfile, which may make the problem easier.

I hope someone have had the same problem and found a good solution. Thank you.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-30-2014 10:37 AM

Hi.

You will probably have to use Unicode value for whatever symbols you want to use.

Could you provide a picture of the equation you would like displayed?

Anca.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-30-2014 11:04 AM

This is the equation I would have i the title

though maybe together with some more text.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-30-2014 11:07 AM

I would just take that image and annotate it onto the graph!

I don't think there's going to be a graceful/robust way to have SAS draw equations like this (I could be wrong, of course!)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

01-30-2014 11:15 AM

You are probably right RobertAllisson, it is perhaps most easy to just include the image it self with the annotate facility.

My idea was though not to make SAS do the equation. But rather if it could use some kind of latex-plugin which produce some postscript code. And this code could perhaps be included into the epsfile drawn by proc gplot. If possible, then it would give a higher quality since the equation don't need to be converted to some other format.