[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sas-l
Subject:    Re: Composite Reports Using SAS?
From:       Paul Thompson <paul () WUBIOS ! WUSTL ! EDU>
Date:       2002-10-31 20:57:04
[Download RAW message or body]

I routinely do this using SAS and LaTeX.  SAS does the computation, and
formats tables using a macro I have written for LaTeX.  It also writes
graphs to files, EPSF.

LaTeX is run either from within SAS or standalone.  It sucks in each
table at the right place (this takes code).  It brings in the graphs at
the right places.  The text is inside the LaTeX file.

Here is a little cut-down example of the LaTeX code.

\documentclass[dvips]{article}
\usepackage{geometry,graphicx,pstricks,eso-pic,times,longtable,here,rotating,dcolumn}
\geometry{letterpaper,bmargin=.5in,tmargin=.5in,lmargin=.75in,rmargin=.75in}
\begin{document}

\pagestyle{headings}

\newcommand{\mx}[1]{$#1$}

\begin{center}
{\Large Statistical Report, MYBIG Study \\
  \strut Report date: \today  \strut}

\end{center}

\newcommand{\flnm}{a}
\renewcommand{\flnm}{/users/mybigsrc/prog/}

\section{Introduction}
The data which have accrued until \today were examined.

\section{Demographic Information}
Demographic information about MYBIG participants is shown below in Table
\ref{tab:demog}.  These categories are consistent with current NIH
policy about participation in clinical trials.

\input \flnm/demogrp

In registering participants in the MYBIG trial, important information
about the disease date is gathered.  Table \ref{tab:demost} presents
some information about several important statistics about the disease
and the initiation of the MYBIG trial.  In counting cases, cases
recruited between 2.5 and 10 months were considered ``compliant with
inclusion criteria.''

\newcolumntype{d}{D{.}{.}{2}}

\input \flnm/demostat

\newpage

\setcounter{table}{37}

\newpage

\begin{figure}[H]
\begin{center}
\includegraphics[scale=.75]{\flnm/wiggle/template.eps}
\caption{MYBIG Wiggle Test}
\label{fig:f20}
\end{center}
\end{figure}

\end{document}


John D. Chapman wrote:
> I need to create a composite report, by which I mean a report having
> multiple hetergeneous components such as graphs, data tables, blocks
> of text and embedded graphics (e.g., logo) all on the same page.  A
> bonus would be the ability to nave annotations and exception
> highlighting.  I would appreciate any thoughts on the most effective
> way to do this.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic