Re: A question about SAS output in lyx
Thank you very much. I look through roughly and find it very helpful! Joyce 在 2013-9-5,上午1:34,Jacob Bishop 写道: > On Mon, Sep 2, 2013 at 10:36 PM, Zhan Joyce wrote: > Dear all: > > I've a problem inserting the SAS output into my lyx file. I use ODS system in > SAS and get a tex file. Then I try to use the program listing to add it into > lys file but failed. What should I do with it? Thank you very much. I'm so > frustrated with this problem for googling one day! > > As Liviu was trying to point out, the file you sent uses LaTeX commands that > have not been defined. I think you need to get the sas style file, which SAS > should give you. You can either put this in the same place as your .lyx file > or install sas.sty as a package, and reconfigure LyX. Then, you will need to > put \usepackage{sas} in your preamble, and maybe also \usepackage{longtable}. > Then, you should be able to include the .tex file in your LyX document. For > more information, see the sas webpage: > http://support.sas.com/rnd/base/ods/odsmarkup/latex.html Also, I ran across > a document that gives some pretty detailed instructions. It was evidently > written by a fellow named Carl Schwarz. See: > http://people.stat.sfu.ca/~cschwarz/Stat-650/Notes/PDF/ChapterSASTricks.pdf > > That should hopefully be enough to get you going. > > Jacob
Re: A question about SAS output in lyx
On Mon, Sep 2, 2013 at 10:36 PM, Zhan Joyce wrote: > Dear all: > > I've a problem inserting the SAS output into my lyx file. I use ODS system > in SAS and get a tex file. Then I try to use the program listing to add it > into lys file but failed. What should I do with it? Thank you very much. > I'm so frustrated with this problem for googling one day! > As Liviu was trying to point out, the file you sent uses LaTeX commands that have not been defined. I think you need to get the sas style file, which SAS should give you. You can either put this in the same place as your .lyx file or install sas.sty as a package, and reconfigure LyX. Then, you will need to put \usepackage{sas} in your preamble, and maybe also \usepackage{longtable}. Then, you should be able to include the .tex file in your LyX document. For more information, see the sas webpage: http://support.sas.com/rnd/base/ods/odsmarkup/latex.html Also, I ran across a document that gives some pretty detailed instructions. It was evidently written by a fellow named Carl Schwarz. See: http://people.stat.sfu.ca/~cschwarz/Stat-650/Notes/PDF/ChapterSASTricks.pdf That should hopefully be enough to get you going. Jacob
Re: A question about SAS output in lyx
On Wed, Sep 4, 2013 at 4:25 AM, Zhan Joyce wrote: > Dear all: > > I've a problem inserting the SAS output into my lyx file. I use ODS system in > SAS and get a tex file. Then I try to use the program listing to add it into > lyx file but failed. > Others will give you better advice, but at the very least you need to define the sascontents command and the sastable environment in your document's preamble. Check the SAS documentation on how to do that. Liviu > What should I do with it? Here I add the tex file from SAS output. Thank you > very much for the help. I'm so frustrated with this problem for googling two > days! > > > Joyce > > > 在 2013-9-3,下午4:41,Liviu Andronic 写道: > >> Dear Joyce, >> Please use 'Reply all' to send the message to the list. >> >> Liviu >> >> On Tue, Sep 3, 2013 at 7:35 PM, Zhan Joyce wrote: >>> Sure. Here it is. Thank you very much for help~ >>> >>> >>> Joyce >>> >>> >>> >>> 在 2013-9-3,上午2:00,Liviu Andronic 写道: >>> Dear Zhan, On Tue, Sep 3, 2013 at 6:36 AM, Zhan Joyce wrote: > Dear all: > > I've a problem inserting the SAS output into my lyx file. I use ODS > system in SAS and get a tex file. > It would help if you sent us a minimal example of such a .tex file. Liviu > Then I try to use the program listing to add it into lys file but failed. > What should I do with it? Thank you very much. I'm so frustrated with > this problem for googling one day! > > > Joyce -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail >>> >>> >> >> >> >> -- >> Do you know how to read? >> http://www.alienetworks.com/srtest.cfm >> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader >> Do you know how to write? >> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail > > -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
A question about SAS output in lyx
Dear all: I've a problem inserting the SAS output into my lyx file. I use ODS system in SAS and get a tex file. Then I try to use the program listing to add it into lyx file but failed. What should I do with it? Here I add the tex file from SAS output. Thank you very much for the help. I'm so frustrated with this problem for googling two days! Joyce output-to-LaTeX-fragment02.tex Description: Binary data 在 2013-9-3,下午4:41,Liviu Andronic 写道: > Dear Joyce, > Please use 'Reply all' to send the message to the list. > > Liviu > > On Tue, Sep 3, 2013 at 7:35 PM, Zhan Joyce wrote: >> Sure. Here it is. Thank you very much for help~ >> >> >> Joyce >> >> >> >> 在 2013-9-3,上午2:00,Liviu Andronic 写道: >> >>> Dear Zhan, >>> >>> >>> On Tue, Sep 3, 2013 at 6:36 AM, Zhan Joyce wrote: Dear all: I've a problem inserting the SAS output into my lyx file. I use ODS system in SAS and get a tex file. >>> It would help if you sent us a minimal example of such a .tex file. >>> >>> Liviu >>> >>> Then I try to use the program listing to add it into lys file but failed. What should I do with it? Thank you very much. I'm so frustrated with this problem for googling one day! Joyce >>> >>> >>> >>> -- >>> Do you know how to read? >>> http://www.alienetworks.com/srtest.cfm >>> http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader >>> Do you know how to write? >>> http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail >> >> > > > > -- > Do you know how to read? > http://www.alienetworks.com/srtest.cfm > http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader > Do you know how to write? > http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Re: A question about SAS output in lyx
On 2013-09-03, Liviu Andronic wrote: > Dear Zhan, > On Tue, Sep 3, 2013 at 6:36 AM, Zhan Joyce wrote: >> Dear all: >> I've a problem inserting the SAS output into my lyx file. I use ODS >> system in SAS and get a tex file. >> Then I try to use the program listing to add it into lys file but >> failed. This is the way to go, if you want to show the TeX source. However, I suppose you want it to be compiled and "pretty printed". >> What should I do with it? This depends on the actual file: The SAS/ODS system should have documentation on what usually to do with the files (include in a LaTeX source file, convert as standalone file, ...). Depending on this, the correct method to use it with LyX differs. > It would help if you sent us a minimal example of such a .tex file. Günter
Re: A question about SAS output in lyx
Dear Zhan, On Tue, Sep 3, 2013 at 6:36 AM, Zhan Joyce wrote: > Dear all: > > I've a problem inserting the SAS output into my lyx file. I use ODS system in > SAS and get a tex file. > It would help if you sent us a minimal example of such a .tex file. Liviu > Then I try to use the program listing to add it into lys file but failed. > What should I do with it? Thank you very much. I'm so frustrated with this > problem for googling one day! > > > Joyce -- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
A question about SAS output in lyx
Dear all: I've a problem inserting the SAS output into my lyx file. I use ODS system in SAS and get a tex file. Then I try to use the program listing to add it into lys file but failed. What should I do with it? Thank you very much. I'm so frustrated with this problem for googling one day! Joyce