07-07-2015 06:09 AM
I have a report which is generated by combination of multiple reporting and graph procedure like proc ghcart, gplot , report, greplay and gkpi , boxplot. SAS has some default sytle to TITLE and FOOTNOTE for some procedure . Like BOLD , ITALIC and specific font type and size .
I want to use same font/type/color throughout report . Also do not want bold title by default . how to do this?
I have 'note' and 'ods pdf text=' also and want to have control on text there also. Can any one suggest method to do this? Specially I want to UN'BOLD' the titles and footnotes which comes as default for procs.
07-07-2015 06:32 AM
Well, you can put style information in a title/footnote part, e.g.
title j=c f='SAS Monospace' h=8pt 'Title';
However if you want it to be consitent then you need to write a style template. Right click on the output in the output window of SAS 9.3 for example and select templates. In there you will see default ones, printer, rtf etc. You can either copy these or inherit from them.
I would also suggest you move to sgplot, and GTL (Graph Template Language) to experience the full latest technology.
07-08-2015 01:03 PM
It was helpful but I find it difficult to know which class from style will be for which part. Class for title is not same across procs . I did not get class for title using proc boxplot.
07-09-2015 04:21 AM
Unfortunately we all find it difficult to work with templates, and tagsets for that matter. There seems to be no documentation for them as far as I can tell, its a matter of taking what is there - defaults template - and modifying it until you get the result you need. Also, as I suggest, move to sgplot, and sgrender (GTL), far more flexibility.
07-09-2015 10:01 AM
One way would be to store the text options you want to use in a macro variable, such as ...
%let titlstuf=font='albany amt' color=red height=14pt;
And then any time you have a title/footnote/note/etc you want to have those text options, then use that macro variable in them, such as ...
title1 &titlstuf ls=1.5 "Here is my title";
footnote &titlstuf "Here is my footnote";
proc gplot data=sashelp.class;
note &titlstuf move=(15pct,80pct) "Here is my note";