<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Text justification option ? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4452#M1819</link>
    <description>Hi all.&lt;BR /&gt;
&lt;BR /&gt;
I'm currently looking for a style attribute similar to JUST= which would justify paragraphs on both left and right ; it seems that I only can left-justify (ending up in irregular line lengths on the right, just as this post) or right-justify (similar problem on the left).&lt;BR /&gt;
If not provided in SAS, maybe some PDF inline formatting option is available (this is for providing PDF reports including text) ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for any suggestion, trick, or satanic rite to achieve my goal.&lt;BR /&gt;
Olivier</description>
    <pubDate>Fri, 31 Aug 2007 12:39:08 GMT</pubDate>
    <dc:creator>Olivier</dc:creator>
    <dc:date>2007-08-31T12:39:08Z</dc:date>
    <item>
      <title>Text justification option ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4452#M1819</link>
      <description>Hi all.&lt;BR /&gt;
&lt;BR /&gt;
I'm currently looking for a style attribute similar to JUST= which would justify paragraphs on both left and right ; it seems that I only can left-justify (ending up in irregular line lengths on the right, just as this post) or right-justify (similar problem on the left).&lt;BR /&gt;
If not provided in SAS, maybe some PDF inline formatting option is available (this is for providing PDF reports including text) ?&lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance for any suggestion, trick, or satanic rite to achieve my goal.&lt;BR /&gt;
Olivier</description>
      <pubDate>Fri, 31 Aug 2007 12:39:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4452#M1819</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-08-31T12:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Text justification option ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4453#M1820</link>
      <description>Hi, Olivier:&lt;BR /&gt;
  I don't know the PDF way to do full justify. There must be one, but I only know of an RTF and HTML way.&lt;BR /&gt;
 &lt;BR /&gt;
  The RTF way involves the RTF control string &lt;B&gt;'\qj'&lt;/B&gt; and the HTML way involves either the align="justify" attribute or the "text-align: justify" CSS property value. These 2 methods do not really involve ODS style attributes -- they are the "vanilla" methods specified by each markup language. However, the methods DO need an ODS style attribute to work -- I have to tell ODS that I know what I'm doing in using the special characters (like \ or { for RTF) or the &amp;lt; and &amp;gt; for HTML. So I have to set PROTECTSPECIALCHARS=OFF.&lt;BR /&gt;
 &lt;BR /&gt;
Here's some code to test. Just a few notes. If your browser does not use align=justify, then you'll have to try the text-align: justify which belongs to CSS. Also, I prefer not to break long text strings over a line when I'm assigning a long character variable. So I'm assigning my long text via macro variables. If you already have a variable with "big text" to justify, then you'll only need to add the RTF control strings or HTML tags to your variable value.&lt;BR /&gt;
 &lt;BR /&gt;
For more information about the RTF spec:&lt;BR /&gt;
&lt;A href="http://kobesearch.cpan.org/htdocs/RTF-Writer/Cookbook.html" target="_blank"&gt;http://kobesearch.cpan.org/htdocs/RTF-Writer/Cookbook.html&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
For more info about HTML and CSS and justifying text blocks:&lt;BR /&gt;
&lt;A href="http://www.westciv.com/style_master/academy/css_tutorial/index.html" target="_blank"&gt;http://www.westciv.com/style_master/academy/css_tutorial/index.html&lt;/A&gt; (or any basic HTML/CSS reference book)&lt;BR /&gt;
&lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
options nodate nonumber center;&lt;BR /&gt;
   &lt;BR /&gt;
%let rt0 = %nrstr(\li180\ri1440\fi480\qj);&lt;BR /&gt;
%let t1 = %nrstr(Twas brillig and the slithy toves did gyre and gimble in the wabe. );&lt;BR /&gt;
%let t2 = %nrstr(All Mimsy were the borogroves and the momeraths outgrabe. );&lt;BR /&gt;
%let t3 = %nrstr(Beware the Jabberwock my son, the jaws that bite the claws that snatch. );&lt;BR /&gt;
%let t4 = %nrstr(Beware the Jubjub bird and shun the frumious Bandersnatch. );&lt;BR /&gt;
%let t5 = %nrstr(He took his vorpal sword in hand: Long time the manxome foe he sought -- );&lt;BR /&gt;
%let t6 = %nrstr(So rested he by the Tumtum tree, And stood awhile in thought. );&lt;BR /&gt;
%let t7 = %nrstr(And, as in uffish thought he stood, The Jabberwock, with eyes of flame, );&lt;BR /&gt;
%let t8 = %nrstr(Came whiffling through the tulgey wood, And burbled as it came! );&lt;BR /&gt;
   &lt;BR /&gt;
data jabber;&lt;BR /&gt;
length var $1000;&lt;BR /&gt;
bigrtf = "{\pard &amp;amp;rt0 &amp;amp;t1.&amp;amp;t2.&amp;amp;t3.&amp;amp;t4.&amp;amp;t5.&amp;amp;t6.&amp;amp;t7.&amp;amp;t8 \par}"; &lt;BR /&gt;
bightml = "&amp;lt;div align='justify'&amp;gt;&amp;amp;t1.&amp;amp;t2.&amp;amp;t3.&amp;amp;t4.&amp;amp;t5.&amp;amp;t6.&amp;amp;t7.&amp;amp;t8&amp;lt;/div&amp;gt;";&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
ods rtf file='c:\temp\jabber.rtf';&lt;BR /&gt;
proc print data=jabber ;&lt;BR /&gt;
var bigrtf / style(data)={protectspecialchars=off};&lt;BR /&gt;
run;&lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
   &lt;BR /&gt;
ods html file='c:\temp\jabber.html';&lt;BR /&gt;
proc print data=jabber;&lt;BR /&gt;
var bightml / style(data)={protectspecialchars=off};&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
 &lt;BR /&gt;
ods html file='c:\temp\jabber2.html';&lt;BR /&gt;
proc print data=jabber;&lt;BR /&gt;
var bightml / style(data)={protectspecialchars=off htmlstyle="text-align: justify;"};&lt;BR /&gt;
run;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 31 Aug 2007 14:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4453#M1820</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-31T14:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Text justification option ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4454#M1821</link>
      <description>Hi Cynthia.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for the tips ; unfortunately, this is really PDF that I need to produce using SAS.&lt;BR /&gt;
So I will hope that someone reading this would know the PDF instruction for full justification, similar to the \qj instruction in RTF. I don't succeed in finding a document describing PDF as the RTF cookbook you're mentionning.&lt;BR /&gt;
&lt;BR /&gt;
Anyway, thanks a lot for taking time on my problem.&lt;BR /&gt;
Olivier</description>
      <pubDate>Fri, 31 Aug 2007 15:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4454#M1821</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2007-08-31T15:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Text justification option ?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4455#M1822</link>
      <description>Hi:&lt;BR /&gt;
  Your best bet for PDF help is Tech Support. If they don't know the answer, they can ask the PDF/ODS developers.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
ps...PDF was once explained to me as a very "low level" text formatting language. It is supposed to replicate the process of sending your document to a printer, only instead of a physical printer, the document was going to a file. Supposedly commands in PDF are akin to "move x fractions of a dimension to the right from the left margin. move y fractions of a dimension down from the top margin.  draw the letter H in the font of Helvetica at 10 pt size. draw the letter E in the font of Helvetica at 10 pt size. draw the letter L in the font of Helvetica at 10 pt size. draw the letter L in the font of Helvetica at 10 pt size. draw the letter O in the font of Helvetica at 10 pt size." etc, etc. That's how it was explained to me as the reason why I couldn't find any "markup" tutorials similar to HTML or RTF language tutorials.</description>
      <pubDate>Fri, 31 Aug 2007 15:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Text-justification-option/m-p/4455#M1822</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-31T15:35:30Z</dc:date>
    </item>
  </channel>
</rss>

