- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 07-28-2020 03:26 PM
(1961 views)
I am writing a document in SAS and would like to double space my text. I am using PROC ODSTEXT to allow me more control of other elements. Is there anyway to set this as a feature of the output without having to manually identify line wraps and put in something like the following:
p " ";
or any other tedious hardcoding what I want?
An example of my code is below:
proc odstext pagebreak=no; h "{\scaps Note}" / style={fontfamily='Arial' fontweight=bold font_size=12pt just=c}; p ""; p "The analyses presented here provide only a brief summary of collected data, with the feasibility of a more detailed presentation limited by the extensive breadth and detail contained in the dataset. The principal investigator, Dr. X, is happy to provide further information or to discuss research partnership opportunities upon request."; run;
5 REPLIES 5
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Double space between paragraphs or lines within a paragraph?
BTW
p;
will place an empty paragraph. The literal text of " " you have been using isn't needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Within a paragraph. Thanks for the note on the other matter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
/* Create an rtf file and edit in Word*/ods _all_ close;
ods rtf file="~/img/test.rtf" ;
proc odstext;
p "{\pard \sl480\slmult1 The analyses presented here provide only a brief summary of collected data, with the feasibility
of a more detailed presentation limited by the extensive breadth and detail contained in the
dataset. The principal investigator, Dr. X, is happy to provide further
information or to discuss research partnership opportunities upon request. \par}"
/style=[fontsize=12pt fontfamily="Arial"];
run;
ods rtf close;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. Is there anyway to set this option so that it double spaces the whole document without having to do this to each p statement manually?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I am afraid not. you can search and replace the odstext p statement with the formatting text. Perhaps write SAS code to insert the codes