How embarassing. Yes, this works. Many thanks. Shane
On Thu, Oct 13, 2011 at 3:02 PM, Liviu Andronic <landronim...@gmail.com>wrote: > On Thu, Oct 13, 2011 at 11:00 PM, Shane Siers <shanesi...@gmail.com> > wrote: > > Sorry, I'll be sure to include examples in the future. Here is my > current > > example, trying your suggestion: > > > > <<missingdata, results=tex>>= > > misssvl<-length(data.ind$svl[svl=="NA"]) > > if(misssvl>0){ > > cat("\\texbf{SVL}",": Of ",length(data.ind$svl), > > > I guess this should read: 'textbf' (note the additional 't'). > > Liviu > > > > " snakes tested, snout-vent length data are missing on ", ... > > > > Returns an error "Undefined control sequence": > > \texbf > > > > {SVL} : Of 50 snakes tested, snout-vent length data are missin... > > > > The control sequence at the end of the top line > > > > of your error message was never \def'ed. If you have > > > > misspelled it (e.g., `\hobx'), type `I' and the correct > > > > spelling (e.g., `I\hbox'). Otherwise just continue, > > > > and I'll forget about whatever was undefined. > > > > > > > > Everything else works, just can't get the "SVL" title in bold. > > > > > > On Thu, Oct 13, 2011 at 2:32 PM, Yihui Xie <x...@yihui.name> wrote: > >> > >> 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: > >> > >> <<results=tex>>= > >> cat('\\textbf{abc}') > >> @ > >> > >> Regards, > >> Yihui > >> -- > >> Yihui Xie <xieyi...@gmail.com> > >> Phone: 515-294-2465 Web: http://yihui.name > >> Department of Statistics, Iowa State University > >> 2215 Snedecor Hall, Ames, IA > >> > >> > >> > >> On Thu, Oct 13, 2011 at 11:15 AM, Shane Siers <shanesi...@gmail.com> > >> wrote: > >> > 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 > >> > > >> > > > > > > > > > -- > > Shane > > > > > > > > -- > Do you know how to read? > http://www.alienetworks.com/srtest.cfm > http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader > Do you know how to write? > http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail > -- Shane