Dear all,
many thanks for your help. I totally missed that texi2dvi is also a system
command (I don't use that explicitly to compile my .tex docs). So I checked my
"system-texi2dvi". It's quite interesting, if I use the option
"--mostly-clean", everthing is removed. However, if I use just "--cl
Dear Marius,
I see. I suppose it's a matter of your version of texi2dvi then - when I do the
same in a freshly created directory (including the "test" directory), cutting
and pasting your very code into R leaves me only with "myLaTeXFile2.pdf" and
"test/myLaTeXFile2.tex"
This is texi2dvi --versio
On 19/08/2010 7:55 AM, Marius Hofert wrote:
Dear Tim,
if I run ...
## Example 2: texi2dvi also deletes the generated .pdf
require(tools)
filepath <- paste(getwd(),"/test/myLaTeXFile2.tex",sep="")
sink(file=filepath)
cat("\\documentclass{article}\n")
cat("\\usepackage[T1]{fon
Dear Tim,
if I run ...
## Example 2: texi2dvi also deletes the generated .pdf
require(tools)
filepath <- paste(getwd(),"/test/myLaTeXFile2.tex",sep="")
sink(file=filepath)
cat("\\documentclass{article}\n")
cat("\\usepackage[T1]{fontenc}\n")
cat("\\usepackage[english]
Dear Marius,
yes, that's what I had meant.
I am sorry I had not actually tested my suggestion nor your problem (bad
practice). Now I have and actually in case 2 you describe I only end up
with test/myLaTeXFile2.tex and myLaTeXFile2.pdf.
If, however, I run texi2dvi at least once with option 'clea
Dear Tim,
you mean
require(tools)
filepath <- paste(getwd(),"/test/myLaTeXFile2.tex",sep="")
sink(file=filepath)
cat("\\documentclass{article}\n")
cat("\\usepackage[T1]{fontenc}\n")
cat("\\usepackage[english]{babel}\n")
cat("\\usepackage{blindtext}\n")
Dear Marius,
from reading the texi2dvi man-page and R-help on texi2dvi I suggest to set
'clean=F' and use 'texi2dvi = getOption("texi2dvi --mostly-clean")' instead.
Tim
On Thu, Aug 19, 2010 at 10:36:30AM +0200, Marius Hofert wrote:
> Dear expeRts,
>
> below are two examples of using texi2dvi. T
Dear expeRts,
below are two examples of using texi2dvi. The problem becomes clear from the
second example: on cleaning, texi2dvi also deletes the generated .pdf file.
Is there a solution?
Cheers,
Marius
## Example 1: texi2dvi cleans fine, without deleting the generated .pdf
require(tools)
sink
8 matches
Mail list logo