search for: formatcom

Displaying 5 results from an estimated 5 matches for "formatcom".

Did you mean: formatc
2008 Jul 27
2
Colors in Sweave
...ne has had any luck changing the font colors of the code chunks. For instance, in my .Rnw preample I tried including: === \usepackage[usenames]{colors} \definecolor{darkred}{rgb}{0.545,0,0} \definecolor{midnightblue}{rgb}{0.098,0.098,0.439} \DefineVerbatimEnvironment{Sinput}{Verbatim}{fontshape=sl,formatcom={\color{midnightblue}}} \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom={\color{darkred}}} \DefineVerbatimEnvironment{Scode}{Verbatim}{fontshape=sl,formatcom={\color{blue}}} === which works in the sense that colors do show up in the processed pdf document, but extra spaces in between the i...
2011 Mar 07
2
Sweave with scan()-ed data
...ke this work? Below is the slide in question in an executable example: \documentclass[dvipsnames,pdflatex,compress,beamer]{beamer} \usepackage{Sweave} \definecolor{Sinput}{rgb}{1,0,0} \definecolor{Scode}{rgb}{0,0,0.56} \definecolor{Soutput}{rgb}{0,0,1} \DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom={\color{Sinput}},fontsize=\footnotesize,baselinestretch=0.9} \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom={\color{Soutput}},fontsize=\footnotesize,baselinestretch=0.85} \DefineVerbatimEnvironment{Scode}{Verbatim}{formatcom={\color{Scode}},fontsize=\small} \begin{document} \SweaveOpts{e...
2009 Jun 26
0
Modifying Sweave.sty to allow escapes with fancyvrb package in LaTeX
...n compiling with LaTeX (using attached test file) I get a LaTeX error (/usr/share/texmf-texlive/tex/latex/ae/t1aett.fd) ! Missing \endcsname inserted. <to be read again> \global l.25 } else y <- 4 The line in question is \DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom=\lstset{fancyvrb=true},commandchars=\\\{\}} Can anyone give me a pointer to how to properly change Sweave.sty to allow it to use fancyvrb in this way? I am following the model in SweaveListingUtils for having Sweave use the listings package to do pretty-printing. Thanks very much Frank Swea...
2009 Mar 13
1
How to combine xtable and minipage with Sweave ?
...mentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage[frenchb]{babel} \usepackage{geometry} \usepackage{color, pdfcolmk} \usepackage[mediumqspace]{SIunits} \geometry{a4paper,left=1cm,right=1cm,top=1cm,bottom=1.5cm} \date{} \begin{document} \DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom = {\color[rgb]{0, 0, 0.56}}} \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom = {\color[rgb]{0.56, 0, 0}}} \setkeys{Gin}{width=\textwidth} <<echo=FALSE, results=TEX>>= rg<-read.table(file="d:/RWork/rg.txt", sep=";", dec=".", header=T, as.is=T) @...
2009 Mar 14
1
multiple hypothesis testing
...; \usepackage[frenchb]{babel} > \usepackage{geometry} > \usepackage{color, pdfcolmk} > \usepackage[mediumqspace]{SIunits} > > > \geometry{a4paper,left=1cm,right=1cm,top=1cm,bottom=1.5cm} > \date{} > > \begin{document} > > \DefineVerbatimEnvironment{Sinput}{Verbatim}{formatcom = {\color[rgb]{0, 0, > 0.56}}} > \DefineVerbatimEnvironment{Soutput}{Verbatim}{formatcom = > {\color[rgb]{0.56, > 0, 0}}} > \setkeys{Gin}{width=\textwidth} > > <<echo=FALSE, results=tex>>= > rg<-read.table(file="d:/RWork/rg.txt", sep=";", d...