Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
How embarassing. Yes, this works. Many thanks. Shane On Thu, Oct 13, 2011 at 3:02 PM, Liviu Andronic wrote: > On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers > wrote: > > Sorry, I'll be sure to include examples in the future. Here is my > current > > example, trying your suggestion: > > > > <>

Re: Bold text from Sweave chunk

2011-10-13 Thread Liviu Andronic
On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers wrote: > Sorry, I'll be sure to include examples in the future.  Here is my current > example, trying your suggestion: > > <>= > misssvl<-length(data.ind$svl[svl=="NA"]) > if(misssvl>0){ >   cat("\\texbf{SVL}",": Of ",length(data.ind$svl), > I guess th

Re: Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
Sorry, I'll be sure to include examples in the future. Here is my current example, trying your suggestion: <>= misssvl<-length(data.ind$svl[svl=="NA"]) if(misssvl>0){ cat("\\texbf{SVL }",": Of ",length(data.ind$svl), " snakes tested, snout-vent length data are missing on ", ... Returns an

Re: Bold text from Sweave chunk

2011-10-13 Thread Yihui Xie
You have to tell us how or what on earth you cat()ed. I do not think you need R tricks (are you talking about the tricks in demo(plotmath)?). I believe something like this should work: <>= cat('\\textbf{abc}') @ Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of

Bold text from Sweave chunk

2011-10-13 Thread Shane Siers
I'm trying to get bold text from a cat() statement within a Sweave chunk (results=tex). None of the tricks I know to get boldface text from R or LaTeX are not working. Ideas? -- Shane