Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
----------------------------------------------------------------
statrep.dtx
statrep_macros.sas
statrep_tagset.sas
statrepmanual.tex

Copyright (c) 2015 SAS Institute Inc.
Copyright (c) 2026 Martial Phélippé-Guinvarc'h

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3c
of this license or (at your option) any later version.
The latest version of this license is in
http://www.latex-project.org/lppl.txt
and version 1.3c or later is part of all distributions of LaTeX
version 2005/12/01 or later.

This work has the LPPL maintenance status 'maintained'.

The Current Maintainer of this work is Martial Phélippé-Guinvarc'h.
Contact: Martial dot Phelippe-GuinvarcH at univ-lemans dot fr

The original version was developed by Tim Arnold (SAS Institute).
This is an independent update and is not officially supported
by SAS Institute Inc.

This work consists of the files:
statrep.dtx
statrep_macros.sas
statrep_tagset.sas
statrepmanual.tex
quickstart.tex
and the derived files:
statrep.ins
statrep.sty
longfigure.sty
statrep.cfg
statrep.pdf
statrepmanual.pdf

----------------------------------------------------------------
The LaTeX Project Public License
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Expand Down
Binary file added Quickstart/quickstart.pdf
Binary file not shown.
37 changes: 32 additions & 5 deletions supplement/quickstart.tex → Quickstart/quickstart.tex
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
\documentclass{article}
\usepackage{statrep}
\usepackage{../statrep}
\usepackage{parskip,xspace}
\newcommand*{\Statrep}{\mbox{\textsf{StatRep}}\xspace}
\newcommand*{\Code}[1]{\texttt{\textbf{#1}}}
\newcommand*{\cs}[1]{\texttt{\textbf{\textbackslash#1}}}
\setcounter{secnumdepth}{0}
\title{Example and Tutorial for the \Statrep Package}
\author{Tim Arnold and Warren F. Kuhfeld\\SAS Institute Inc., Cary, NC}
\date{April 25, 2012}
\author{Martial Phélippé-Guinvarc'h\\Le Mans Université\\\texttt{martial.phelippe-guinvarch@univ-lemans.fr}\\
\smallskip
{\small Based on the original work by Tim Arnold and Warren F. Kuhfeld (SAS Institute Inc. 2015)}}
%\author{Tim Arnold and Warren F. Kuhfeld\\SAS Institute Inc., Cary, NC}
\date{April 28, 2026}
\begin{document}
\maketitle
\section{Introduction}
Expand Down Expand Up @@ -71,8 +74,11 @@ \section{Step 1: Create Your \LaTeX\ Document}
red 104 red 91 red 132 red 78 red 107
red 101 red 92
;

\end{Datastep}



The purpose of the \Code{Sascode} environment is to generate output.
The statements in the following \Code{Sascode} environment perform an
analysis that uses the ANOVA procedure (PROC ANOVA).
Expand All @@ -83,6 +89,24 @@ \section{Step 1: Create Your \LaTeX\ Document}
In this example, all output that is generated by the analysis is stored in the ODS document
\Code{wineA}.

\begin{Sascode}[store=quickstart]
PROC SQL NOPRINT;
SELECT MEAN(VisitLength)
INTO :MeanOfVisitLength
FROM Wine;
QUIT;

PROC PRINT DATA=WINE(OBS=3);
RUN;

%STATREPMACROVAR(MeanOfVisitLength)
\end{Sascode}

\Listing[store=quickstart,
dest=latex,
caption={Proc print, with a mean \textbackslash MeanOfVisitLength= \MeanOfVisitLength }]{quickstart}


...descriptive text that introduces the analysis...

\begin{Sascode}[store=wineA]
Expand All @@ -102,7 +126,7 @@ \section{Step 1: Create Your \LaTeX\ Document}
The \cs{Listing} tag selects three output tables from the \Code{wineA} ODS document:
\Code{ClassLevels}, \Code{NObs}, and \Code{OverallANOVA}

\Listing[store=wineA,
\Listing[store=wineA,fontsize=small,
objects=ClassLevels NObs OverallANOVA,
caption={Analysis of Variance for Visit Length}]{tsta}

Expand Down Expand Up @@ -142,7 +166,10 @@ \section{Step 3: Execute the SAS Program}
By default, tabular output files are created in the `lst' subdirectory and
graphic output files are created in the `png' subdirectory.

\section{Step 4: Recompile Your \LaTeX\ Document}
The file \texttt{quickstart\_VarSAStoTex.tex} is automatically generated
by the SAS program and contains \verb|\def| commands of the form
\verb|\def\MacroName{value}|. These definitions are loaded at compile time
and can be used directly in the \LaTeX\ document.\section{Step 4: Recompile Your \LaTeX\ Document}

The last step is to recompile your document with pdf\LaTeX.
As in the first compilation, you can use a \LaTeX-aware editor such
Expand Down
1 change: 1 addition & 0 deletions Quickstart/quickstart_VarSAStoTex.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
\def \MeanOfVisitLength { 96,28}
Loading