SAS and L A T E X - a Perfect Match?
Juha-Pekka Perttola, F. Hoffmann-La Roche · 2008
Improved flexibility in creating PDF documents from SAS ® can be obtained by making use of L AT E X. In this paper I will discuss a way to author PDF files through L AT E X by using SAS macros to write the L AT E X source code. This setup allows combining SAS code, log, output and graphs with freely written textual content. All L AT E X functionality is available to create complex PDF documents directly from the SAS Program Editor. In addition, any update in the underlying data and possible changes to results thereof will be directly reflected in the document upon recompilation. L AT E X is a widely used and freely available document preparation system. It can typeset a wide variety of documents including presentation slides. L AT E X is highly customizable and especially powerful in writing technical documentation and mathematical text. Using this framework I will also demonstrate that it is possible to use SAS macros to typeset SAS/IML ® matrices directly to the PDF document, create L AT E X PSTricks graphics from SAS, construct compendiums to store content from various applications and perform image transformations on the basis of SAS data.