04-02-2012 02:39 AM
I am writing text in
ods pdf text='
about the execution of your program. It can appear as a file on disk, a display';
i am getting output in this way
about the execution of your program. It can appear as a file on disk, a display
i am unable to justify the font ie align full
i am getting just=r /just=left / just=center
how can i align text full ie equally line as we normally justify in MS WORD
about the execution of your program. It can appear as a file on disk, a display on
04-06-2012 01:29 PM
I'm not exactly sure what your question is. If you want to justify ODS PDF TEXT= text strings, they are left justified by default. The only justification (or text alignment) options available to you are L, R, C and D (for decimal), as described here:
If you want "full" justification that requires font kerning, as described in this Wikipedia article:
"In typesetting, justification (can also be referred to as 'full justification') is the typographic alignment setting of text or images within a column or "measure" to align along both the left and right margin. Text set this way is said to be "justified".
In justified text, the spaces between words, and, to a lesser extent, between glyphs or letters (kerning), are stretched or sometimes compressed in order to make the text align with both the left and right margins. When using justification, it is customary to treat the last line of a paragraph separately by left or right aligning it, depending on the language direction. Lines in which the spaces have been stretched beyond their normal width are called loose lines, while those whose spaces have been compressed are called tight lines." from: http://en.wikipedia.org/wiki/Justification_(typesetting)
Generally, "full" justification is a function of word processing applications and document creation applications. SAS and ODS are not word processing applications, so they do not perform the stretching or compressing of text strings to achieve full justification of both the left and right margins.
SAS is usually creating tabular output. ODS TEXT= is an "additive" amount of text, usually designed to provide a caption or text above or underneath the main table. As explained in this previous posting, you have some possibilities for placement of the output, but for captions or ancillary text, mostly L, R or C are adequate justification options: https://communities.sas.com/thread/34067
As far as I know, nothing will accomplish "full" justification the way I think you want. For example, the attached screenshot was done entirely in Microsoft Word using the justification buttons on the top toolbar. You can see that the lines break approximately the same place, but the justification settings are different. SAS and ODS can only do Left, Right and Center for ODS TEXT= strings.
04-11-2012 08:57 AM
As I said, as far as I know, you cannot accomplish "full" justification. If you read the documentation, your only choices are left, right, center, or decimal. However, if you want a definitive answer, you might wish to open a track with Tech Support.