Skip to content

Sweave: Howto write real TeX formula in plot

3 messages · Jonas Stein, Baptiste Auguie, cls59

#
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.
#
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:

            
_____________________________

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:

        
baptiste auguie-2 wrote:
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