I'm learning to use R/Sweave/LaTeK to write my stat reports. Is there a way
to have an executive summary in the beginning while still having the
analysis code embedded? For example, a study has three independent
objectives so I want my report to have three sections. Ideally the code
chunk that answers the first objective would be embedded in the first
section and so on. However I want a table that summarizes the results from
all three objectives at the beginning of the report. Is there a way to
generate a summary after the three sections but tell LaTeK to publish it
first? Possibly by rearranging the sections/pages?
Currently I'm doing all the coding in a big block up front but that waste
much of the advantage of weaving to me.
If the right answer is 'post to a latek board' I'd be happy to get that
feedback as well.
Thank, Karen
_________________________________________________________________
*******************************************************************
IMPORTANT MESSAGE FOR RECIPIENTS IN THE U.S.A.: This message may constitute
an advertisement of a BD group's products or services or a solicitation of
interest in them. If this is such a message and you would like to opt out of
receiving future advertisements or solicitations from this BD group, please
forward this e-mail to optoutbygroup at bd.com.
*******************************************************************This
message (which includes any attachments) is intended only for the designated
recipient(s). It may contain confidential or proprietary information and may
be subject to the attorney-client privilege or other confidentiality
protections. If you are not a designated recipient, you may not review, use,
copy or distribute this message. If you received this in error, please
notify the sender by reply e-mail and delete this message. Thank you.
*******************************************************************
Corporate Headquarters Mailing Address: BD (Becton, Dickinson and Company) 1
Becton Drive Franklin Lakes, NJ 07417 U.S.A.
*******************************************************************
Sweave and executive summaries
3 messages · Karen_Byron at bd.com, Michael Kubovy, Dieter Menne
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20090415/8cfa80ba/attachment-0001.pl>
<Karen_Byron <at> bd.com> writes:
I'm learning to use R/Sweave/LaTeK to write my stat reports. Is there a way to have an executive summary in the beginning while still having the analysis code embedded?
Thanks to Ulrich Dietz from the German latex forum, I have an excellent solution that can write summaries (for the top) and appendixes. It is pure latex, but it main power comes when using it with rnw/Sweave. <http://groups.google.de/group/de.comp.text.tex/browse_thread/thread/8830a37d45dfca8e/5b3c72557b10e32b> The idea is to have sections that are written out to a file similarly to bibtex, and are collected later. You can download a minimal self- running example from http://www.menne-biomed.de/uni/appcol2.tex (Make sure that you do not ask any more latex related questions here, you are running the risk of receiving a flame mail by higher authorities) % -------- incomplete example ----- \begin{document} \section{first section} First paragraph. \printsummary % Does what is says <<results=tex>>. cat("This is main text") @ \begin{appendx} % appendix was taken <<results=tex>>. cat("This goes to appendix") @ \end{appendx} \begin{summary} <<results=tex>>. cat("This goes to summary") @ \end{summary} <<results=tex>>. cat("Another main text") @ \printappendix \end{document}