Displaying 2 results from an estimated 2 matches for "declaregraphicsextensions".
2012 Aug 21
2
Sweave: R chunk inside caption?
...extra }.
<inserted text>
\par
l.21 }
Any thoughts? Perhaps I'll have to write the "\caption{}" text with R?
thanks!
Sweave document:
\documentclass{article}
\title {test}
\author {me}
\usepackage{Sweave}
\begin {document}
\maketitle
\DeclareGraphicsExtensions{.pdf,.png}
\begin {figure}
<<label=fig1, echo=FALSE, fig=TRUE, pdf=false, png=true>>=
plot(runif(100), runif(100))
@
\caption {
This is the caption with some r-code
<<>>=
2*2
@
}
\label {fig:1}
\end {figure}
\end{...
2002 Feb 07
12
R graphs in LaTeX documents?
I have tried to find a neat way to include graphs from R in LaTeX documents,
but have not succeeded (I work with a WinEdt/MikTeX combination). The two
roads I have stumbled along so far are the following:
*Generate postscript files and convert them into EPS files by means of
GhostScript or other not so straightforward tools.
*Generate pictex files and include these.
None of these solutions have