[texworks] Sweave with Texworks - Update
Christopher Desjardins
cddesjardins at gmail.com
Thu Aug 5 03:17:25 CEST 2010
On Wed, Aug 4, 2010 at 7:23 PM, Duncan Murdoch <murdoch.duncan at gmail.com>wrote:
> On 04/08/2010 8:00 PM, Reinhard Kotucha wrote:
>
>> On 4 August 2010 Christopher David Desjardins wrote:
>>
>> > Yeah, I checked out latexmk. It appears that latexmk can't run
>> > Sweave without some modifications (if I reading the information
>> > about latexmk correctly). Unfortunately I don't know any perl
>> > either.
>>
>> As far as I understand, Sweave creates LaTeX files from R files. And
>> latexmk creates PDF files from LaTeX files. Isn't it possible to
>> combine these steps by providing a simple shell script (on Unix) or a
>> batch file (on Windows) which just calls Sweave and latexmk?
>>
>
> This is easy to do for simple one-file projects; I can show Christopher the
> details.
>
Thanks. I am on Debian GNU/Linux. I thought that I might be able to write a
bash script that I could give to TeXworks but I am not quite sure of the
proper syntax.
>
> It's harder for multi-file projects, because there are usually at least two
> different filenames involved: the chapter file and the main file. Sweave
> needs to update the LaTex for the chapter, and pdflatex needs to be given
> the main file. TeXworks can currently only pass the name of the main file
> to the script, so it needs some trickery in the script to extract the
> chapter names and process them before calling pdflatex. I haven't worked
> out the details of this trickery yet.
>
> Duncan Murdoch
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texworks/attachments/20100804/5d54c8b4/attachment-0001.html>
More information about the texworks
mailing list