Hi, i use Sweave to put plots in my .tex Documents. (pdflatex) Is there a nice solution for this: a) get a real LaTeX formula in the plot area. I have only found very complicate solutions. Is there sth. like \formula{x^2 = \oint f} b) how can i format axis and legend to get exact the same font that is used in the TeX-document? Thank you for any help. -- Jonas Stein <news at jonasstein.de>
Perhaps try the pgfSweave package on r-forge? http://r-forge.r-project.org/projects/pgfsweave/ HTH, baptiste On 19 Apr 2009, at 22:15, Jonas Stein wrote:> Hi, > > i use Sweave to put plots in my .tex Documents. (pdflatex) > Is there a nice solution for this: > > a) get a real LaTeX formula in the plot area. > I have only found very complicate solutions. Is there sth. like > \formula{x^2 = \oint f} > > b) how can i format axis and legend to get exact the same font that is > used in the TeX-document? > > Thank you for any help. > > -- > Jonas Stein <news at jonasstein.de> > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code._____________________________ Baptiste Augui? School of Physics University of Exeter Stocker Road, Exeter, Devon, EX4 4QL, UK Phone: +44 1392 264187 http://newton.ex.ac.uk/research/emag
Bugzilla from news at jonasstein.de wrote:> > Hi, > > i use Sweave to put plots in my .tex Documents. (pdflatex) > Is there a nice solution for this: > > a) get a real LaTeX formula in the plot area. > I have only found very complicate solutions. Is there sth. like > \formula{x^2 = \oint f} > > b) how can i format axis and legend to get exact the same font that is > used in the TeX-document? > > Thank you for any help. > >baptiste auguie-2 wrote:> > Perhaps try the pgfSweave package on r-forge? > > http://r-forge.r-project.org/projects/pgfsweave/ > > HTH, > > baptiste > >Aye- the aim of the pgfSweave package is to make the integration of R and TeX more seamless. Right now it does a great job with respect to fonts by passing the actual typesetting and printing of figures off to LaTeX. This is accomplished using the java utility eps2pgf and requires the PGF/TiKZ package for LaTeX: http://sourceforge.net/projects/pgf/ The default behavior is to pass text directly to LaTeX unfiltered- this means that things like percent signs and dollar signs will need to be escaped by backslashes. -Charlie ----- Charlie Sharpsteen Undergraduate Environmental Resources Engineering Humboldt State University -- View this message in context: http://www.nabble.com/Sweave%3A-Howto-write-real-TeX-formula-in-plot-tp23127536p23130478.html Sent from the R help mailing list archive at Nabble.com.