On 2008-12-17, Matthieu Stigler wrote: > Hello > I use the option Sweave to insert R code into my lyx documents. I like > to modify the default sweave.sty to obtain customised features. When > modified, I then just put the .sty file into the same folder as my .tex > and run latex: so the customised one is used rather than the original > .sty (well this work at least with package Sweave, I don't know if this > is the proper way).
The proper way it to rename the package if you change something. This is mandatory for packages under the LaTeX 3 license. It ensures that no confusion arises from different behaviour of packges with the same name. (It will not be a big problem if you keep the modified package for yourself but still renaming is a good idea.) > I would love to do it with lyx but the problem is it uses the default > package even if I put the .syt package in the same folder as my .lyx > file. The solution I found is to move myself the customised package into > the tmp (on Linux) directory and then it works. But is there a way to do > it automatically? I have lyx 1.5.5 and R 2.7 on Ubuntu 8.04 You could rather store the modified package somewhere in the tex path. On my Debian system, ~/texmf/tex/latex would be the right place, I suppose it is the same in Ubuntu. Günter