Re: [R] R (Bold font) and Latex

2012-03-23 Thread Rainer Schuermann
More information (reproducible code) is needed to address your specific situation, but in general, you change the value of a variable in R and take care of the formatting in LaTeX. You may want to look at the Hmisc package's Latex() function. I have not tried it, xtable serves me well, but from

Re: [R] R (Bold font) and Latex

2012-03-22 Thread Manish Gupta
Great it works! But in my case i have to use text bf in loop (R). Since x is variable (row from file) which keeps on changing. How can i implement the above logic in loop. Regards -- View this message in context: http://r.789695.n4.nabble.com/R-Bold-font-and-Latex-tp4487535p4497610.html Sent

Re: [R] R (Bold font) and Latex

2012-03-20 Thread Rainer Schuermann
Or, with a little less typing: <>= x<-c(1,0,2,4) @ x\\ \begin{textbf} \Sexpr{x[1]}\\ \Sexpr{x[2]}\\ \Sexpr{x[3]}\\ \Sexpr{x[4]}\\ \end{textbf} On Tuesday 20 March 2012 10:14:38 Rainer Schuermann wrote: > For a small number of elements you could use \Sexpr{}, > i.e. > > <>= > x<-c(1,0,2,4) > @

Re: [R] R (Bold font) and Latex

2012-03-20 Thread Rainer Schuermann
For a small number of elements you could use \Sexpr{}, i.e. <>= x<-c(1,0,2,4) @ x\\ \textbf{\Sexpr{x[1]}}\\ \textbf{\Sexpr{x[2]}}\\ \textbf{\Sexpr{x[3]}}\\ \textbf{\Sexpr{x[4]}}\\ Rgds, Rainer On Monday 19 March 2012 20:03:47 Manish Gupta wrote: > Hi, > > I am using R and latex for generating

[R] R (Bold font) and Latex

2012-03-19 Thread Manish Gupta
Hi, I am using R and latex for generating report. I need R result to be in bold face. For instance. x<-c(1,0,2,4) I need to print its output in bold face. x *1 2 3 4* I attempted to use textbf{} but can not write R output inside it. How can i implement it. Thanks in advance. Regards -- Vi