Date: Tue, 13 Feb 1996 18:29:57 GMT
Reply-To: "Paul A. Thompson" <pat@po.CWRU.Edu>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: "Paul A. Thompson" <pat@PO.CWRU.EDU>
Organization: Case Western Reserve University, Cleveland, OH (USA)
Subject: Re: Pretty reports -- SAS/Unix
In a previous article, Mike_Zraly@ABTASSOC.COM (Mike Zraly) says:
>I would think your best bet is to combine SAS with groff (aka GNU
>troff, from the Free Software Foundation). groff allows you to import
>encapsulated PostScript directly, and its suite of preprocessors
>(gtbl, geqn, gpic) allow you to format reasonably complex tables,
>equations, and pictures with relative ease. So I would use SAS to
>create encapsulated PostScript for the graphs, and use data _null_
>processing to generate the specification for tables, then let groff
>and friends worry about the formatting.
>
I use SAS, TeX/LaTeX and a macro which I wrote. This macro transforms
SAS tables (a table is just a rectangular bunch of data, which is another
name for a SAS dataset) into LaTeX code. My macro will write one table
to one file, 5 tables to 1 file, or 300 tables to 300 files. It will do
BY variables (where the first row of the BY is labeled, and the rest not).
It formats data as it goes to the file, as you define. Then, after running
SAS, you compile LaTeX and it incorporates the file (of course, you need
an \input in your LaTeX source).
--
Paul Thompson, Ph.D. |
Department of Psychiatry |
Case Western Reserve Univ|
Cleveland, OH 44106 |
|