On 07/16/2013 07:11 AM, Ou, Jianhong wrote:
Hi Martin,
This is a great package. When I insert the figure to the vignettes, the
codes will not run two times. Great!
One question is that how could I show "@" in the vignettes?
And is there any methods to draw multiple figures in one chunk and then
insert them separately?
Thanks for the comments, hopefully we can make the package a bit better.
I think \Rcode{x@y} does the right thing?
The package doesn't provide any special facilities for drawing multiple figures
in one chunk then inserting them separately; One approach is
<<fig>>=
pdf("fig-1.pdf"); plot(1:10); invisible(dev.off())
pdf("fig-2.pdf"); plot(10:1); invisible(dev.off())
@
\begin{figure}
\centering
\includegraphics[width=.45\textwidth]{fig-1}
\includegraphics[width=.45\textwidth]{fig-2}
\caption{Some figures}
\label{fig:figs}
\end{figure}
Martin
Yours sincerely,
Jianhong Ou
LRB 670A
Program in Gene Function and Expression
364 Plantation Street Worcester,
MA 01605
On 7/14/13 11:23 AM, "Martin Morgan" <mtmor...@fhcrc.org> wrote:
Developers --
Sweave-style vignettes often include copy-pasted versions of basic LaTeX
macros
and other commands. We've created the BiocStyle package to make it easy
to add
these macros, and a consistent style, to Bioconductor vignettes -- just
add
Suggests: BiocStyle to your package DESCRIPTION, and the following lines
inside
the preamble (between \documentclass{article} and \begin{document}) of
your vignette
<<style, eval=TRUE, echo=FALSE, results=tex>>=
BiocStyle::latex()
@
Details, including illustration of macros and styles, are in the package
vignette
http://bioconductor.org/packages/devel/bioc/vignettes/BiocStyle/inst/doc/L
atexStyle.pdf
and on the ?latex help page. Suggestions welcome. Perhaps this can be
extended
for non-Sweave vignettes.
Martin
--
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel
--
Computational Biology / Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N.
PO Box 19024 Seattle, WA 98109
Location: Arnold Building M1 B861
Phone: (206) 667-2793
_______________________________________________
Bioc-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/bioc-devel