Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-18 Thread Duncan Murdoch
On 13-01-17 6:33 PM, michele caseposta wrote: Hi, I just updated R and patchDVI (from CRAN). Now I can reverse search from the pdf to the included.Rnw. However, I cannot forward search from the included to the pdf. Is this how it is expected to work? I think it works if you use first line % !

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-17 Thread Yihui Xie
Sweave produces foo-concordance.tex from foo.Rnw, and writes \input{foo-concordance.tex} in the LaTeX output. You can turn on the concordance option in knitr as well. Since you do not use RStudio, you have a couple of more steps to go: 1. borrow \Sconcordance from Sweave.sty; 2. manually \input{fo

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-17 Thread huang min
Anybody know if it is possible to use texshop and knitr with the sync working? I add a knitr engine but cannot sync. PS, I am comfortable with texshop but not RStudio. Huang On Fri, Jan 18, 2013 at 7:33 AM, michele caseposta wrote: > Hi, > I just updated R and patchDVI (from CRAN). > Now I can

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-17 Thread michele caseposta
Hi, I just updated R and patchDVI (from CRAN). Now I can reverse search from the pdf to the included.Rnw. However, I cannot forward search from the included to the pdf. Is this how it is expected to work? Forward and inverse search work between main Rnw and pdf. I am pasting below the code in the

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-11 Thread Duncan Murdoch
On 13-01-10 4:54 PM, michele caseposta wrote: Hi everybody, thanks for the replies. I might have not explained the problem completely. Duncan Mackay: Yes, I am already having a master file and separate Rnw files. Duncan Murdock: I am using patchDVI in the TexShop Sweave engine. Sync works flawles

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-10 Thread Duncan Murdoch
On 13-01-10 4:54 PM, michele caseposta wrote: Hi everybody, thanks for the replies. I might have not explained the problem completely. Duncan Mackay: Yes, I am already having a master file and separate Rnw files. Duncan Murdock: I am using patchDVI in the TexShop Sweave engine. Sync works flawles

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-10 Thread michele caseposta
Hi everybody, thanks for the replies. I might have not explained the problem completely. Duncan Mackay: Yes, I am already having a master file and separate Rnw files. Duncan Murdock: I am using patchDVI in the TexShop Sweave engine. Sync works flawlessly between the master file and the pdf produce

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-10 Thread Duncan Murdoch
On 13-01-09 9:09 PM, Duncan Murdoch wrote: On 13-01-09 3:25 PM, michele caseposta wrote: Hello everyone. I am in the process of writing a book in Latex with Texshop, on Mac. This book contains a lot of R code, hence the need to use Sweave. I was able to compile Rnw files, and to sync back and fo

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-09 Thread Duncan Murdoch
On 13-01-09 3:25 PM, michele caseposta wrote: Hello everyone. I am in the process of writing a book in Latex with Texshop, on Mac. This book contains a lot of R code, hence the need to use Sweave. I was able to compile Rnw files, and to sync back and forth from the pdf to the source Rnw. My prob

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-09 Thread Duncan Mackay
Hi Perhaps you need to make a master file and call the chapter files from it eg (just copying the relevant section from my master GClimate12.Rnw file) latex preliminaries + R options + begin % plots \SweaveInput{GClimate12RX.Rnw} % Soil 300 % 15 \SweaveInput{GClimate12SP.R

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-09 Thread michele caseposta
Hi Yihui, yes, RStudio works flawlessly with synchronization, but working with it I will lose all the features of a full-fledged tex editor, first of all BibDesk integration. Texworks can also do two-way sync in Rnw, and I tried to switch configurations but with no luck. In texworks I am using R

Re: [R] Sweave, Texshop, and sync with included Rnw file

2013-01-09 Thread Yihui Xie
I believe RStudio has done a fairly good job in terms of the synchronization. If you have to stick to TeXShop, I do not have any ideas on how to make it work with Sweave child documents. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State Un

[R] Sweave, Texshop, and sync with included Rnw file

2013-01-09 Thread michele caseposta
Hello everyone. I am in the process of writing a book in Latex with Texshop, on Mac. This book contains a lot of R code, hence the need to use Sweave. I was able to compile Rnw files, and to sync back and forth from the pdf to the source Rnw. My problem now is that the book is divided in Chapters,