Date: Fri, 10 Sep 2010 16:00:02 -0500 Joe Matise "SAS(r) Discussion" Joe Matise Re: Tab character To: mpajoh@odot.org text/plain; charset=ISO-8859-1

Do I correctly assume by your syntax (and my failing with same) that you mean "doesn't work"? :)

I think PDF just doesn't handle tabs. See: http://threebit.net/mail-archive/itext-questions/msg03478.html for example. Spaces seem to be the solution here...

-Joe

On Fri, Sep 10, 2010 at 3:53 PM, Masoud Pajoh <mpajoh@odot.org> wrote:

> I just tried and it does work, i.e. it just inserts \t characters in the > middle. Even with an escape character '^'. > I suppose that will work for an RTF destination. > > Thanks, > > Masoud > > > > > > "Terjeson, Mark" <Mterjeson@RUSSELL.COM> > Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> > 09/10/2010 03:46 PM > Please respond to > "Terjeson, Mark" <Mterjeson@RUSSELL.COM> > > > To > SAS-L@LISTSERV.UGA.EDU > cc > > Subject > Re: Tab character > > > > > > > Hi Masoud, > > Have you tried: > > %let Tab="\t"; > > Mark > > > > -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of > Masoud Pajoh > Sent: Friday, September 10, 2010 1:38 PM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Re: Tab character > > This, with spaces: > > %let Tab= " "; > > footnote1 j=l h=1.2 f="Comic Sans MS" > "^{super *} 2009 Specification." &Tab. "^{super > #} > Oversight." &Tab. > "^{super A} Authorized." &Tab. "^{super > !} Not Programmed."; > > works, I just wanted to see if '09'x can be used. > > Thanks, > > Masoud > > > > > Joe Matise <snoopy369@GMAIL.COM> > Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> > 09/10/2010 03:29 PM > Please respond to > Joe Matise <snoopy369@GMAIL.COM> > > > To > SAS-L@LISTSERV.UGA.EDU > cc > > Subject > Re: Tab character > > > > > > > Haha, indeed... maybe someday they'll get google goggles for sas-l posts > ;) > > From the fact that the ODS Listing does include the tab (but doesn't > display > it, which threw me off) I would venture to guess that it's possible PDF > doesn't have a way to display tabs (ie, they must be converted to > spaces). > If that is the case (and I am no expert in ODS PDF), one solution is to > insert several spaces (say as part of a macro variable) where you'd > prefer > to insert a tab - 4 or 5 is fairly common. > > -Joe > > On Fri, Sep 10, 2010 at 3:20 PM, Terjeson, Mark > <Mterjeson@russell.com>wrote: > > > See Joe, here's my afternoon brain slip: > > (square brackets below are missing from > > original brain download) > > > > You mention PDF as the destination, > > but I don't think [you mention] what engine you > > are using to get there(to the PDF)? > > > > Mark :o) > > > > -----Original Message----- > > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of > > Terjeson, Mark > > Sent: Friday, September 10, 2010 1:14 PM > > To: SAS-L@LISTSERV.UGA.EDU > > Subject: Re: Tab character > > > > Hi Masoud, > > > > Just like your test below, > > > > > > data test;a=1; > > run; > > title "Hello" "09"x "World."; > > proc print data=test; > > run; > > > > > > does work fine outputting a TAB in > > the appropriate place. > > > > You mention PDF as the destination, > > but I don't think what engine you > > are using to get there(to the PDF)? > > > > For example, if going to PDF via RTF > > you would need \tab right tab or > > \tab left tab or \tab 1" tab etc. > > > > Some other engines use octal \009 > > or hex \09 or \t or &#9 in html. > > > > I also recall using the escapecharacter > > and embedding formatting and special > > characters into the TITLE string for > > special outputs, but I think we need > > to know what engine is being used in > > between the TITLE statement and the PDF. > > > > Mark > > > > > > > > > > -----Original Message----- > > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of > > Masoud Pajoh > > Sent: Friday, September 10, 2010 12:53 PM > > To: SAS-L@LISTSERV.UGA.EDU > > Subject: Re: Tab character > > > > Using BYTE(09), as expected, does not shoe as tab in the PDF output. > > > > Thanks, > > > > Masoud > > > > > > > > > > Joe Matise <snoopy369@GMAIL.COM> > > Sent by: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU> > > 09/10/2010 02:16 PM > > Please respond to > > Joe Matise <snoopy369@GMAIL.COM> > > > > > > To > > SAS-L@LISTSERV.UGA.EDU > > cc > > > > Subject > > Re: Tab character > > > > > > > > > > > > > > "09"x is a hex number token (actually, 9)- not a character. Try > > BYTE('09'x) > > perhaps? Not sure about how that would interface with ODS PDF though. > > > > -Joe > > > > On Fri, Sep 10, 2010 at 2:02 PM, Masoud Pajoh <mpajoh@odot.org> wrote: > > > > > I am writing a pdf file. > > > I like to have a TAB character inserted several places like: > > > title "this is the" TAB " title, which" Tab " is a test"; > > > This: > > > title "this is the" "09"x " title, which" "09"x " is a test"; > > > does not work. > > > > > > What is the correct way. > > > > > > Masoud > > > > > >

Back to: Top of message | Previous page | Main SAS-L page