User Tools

Site Tools


latex_and_sweave

**This is an old revision of the document!** ----

A PCRE internal error occured. This might be caused by a faulty plugin

===General Setup=== <code> \documentclass[a4paper,12pt]{article} \usepackage{amsmath,mathrsfs,stmaryrd,graphicx} \usepackage[top=2cm,bottom=2cm,left=2cm,right=1cm]{geometry} \usepackage[utf8]{inputenc}%used with sweave \SweaveOpts{engine=R,eps=FALSE,pdf=TRUE,width=3,height=6.5,strip.white=all}%used with sweave \title{...} \author{Name\footnote{affiliation} and name\footnote{}} } \date{} \begin{document} \maketitle \begin{thebibliography}{99} \bibitem{} Rozowsky, J.. (2009). {\it PeakSeq enables systematic scoring of ChIP-Seq experiments relative to controls}. Nature Biotechnology, \textbf{27}(1), 66–75. \end{thebibliography} \end{document} </code> ==Convert tiff to eps== tiff2ps -e input.tif > output.eps Must output encapsulated eps; otherwise the figure can not be located correctly in the latex. ==Compile .bib== latex file.tex bibtex file latex file.tex latex file.tex dvipdf file.dvi ==Sweave== in .rnw file <code> \SweaveOpts{engine=R,eps=FALSE,pdf=TRUE,width=3,height=6.5,strip.white=all} .. <<eval=T,echo=T,fig=T,results=verbatim,cache=T>>= ... @ </code> Compile: <code> library(cacheSweave) Sweave("foo.Rnw", driver = cacheSweaveDriver) </code>

latex_and_sweave.1353431599.txt.gz · Last modified: 2012/11/20 11:13 by zuo