Re: String Freeze for 2.0.3

2012-02-01 Thread Jean-Pierre Chrétien
Le 31/01/2012 16:45, Richard Heck a écrit : Translators, please prepare for 2.0.3. I am tentatively planning to prepare the release on 16 February, so if you could have your new po files in by 15 February, I'd appreciate it. For testing against shortcuts conflicts, I compliled 2.0.3svn, I

Re: String Freeze for 2.0.3

2012-02-01 Thread Lars Gullik Bjønnes
Jean-Pierre Chrétien jeanpierre.chret...@free.fr writes: | Le 31/01/2012 16:45, Richard Heck a écrit : Translators, please prepare for 2.0.3. I am tentatively planning to prepare the release on 16 February, so if you could have your new po files in by 15 February, I'd appreciate it. | For

[PATCH] Fixup multi-line comment to use block-comment

2012-02-01 Thread Lars Gullik Bjønnes
From: Lars Gullik Bjønnes lar...@gullik.org The small ascii art in InsetMathCancel::draw has line continuation characters at eol, this make consecutive lines be andled as one. The use of a block comment instead of single line comments makes this less of a problem. Also it removes a warning with

Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Hello, I took a look to the new specific manual describing sweave with the latest 2.0.3svn. The pdf export fails on an Rscript error: cite Running: Rscript --verbose --no-save --no-restore /usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R /tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/sweave.Rnw

Re: String Freeze for 2.0.3

2012-02-01 Thread Xu Wang
On Wed, Feb 1, 2012 at 3:01 AM, Jean-Pierre Chrétien jeanpierre.chret...@free.fr wrote: Le 31/01/2012 16:45, Richard Heck a écrit : Translators, please prepare for 2.0.3. I am tentatively planning to prepare the release on 16 February, so if you could have your new po files in by 15

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
I guess you compiled the document under /usr/local/share/lyx-2.0.3svn/examples/, right? I believe the problem is that R has no write privilege to that directory, so the default pdf() device cannot be started there. You can copy sweave.lyx to a directory where you have write privilege, and see if

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Liviu Andronic
On Wed, Feb 1, 2012 at 5:15 PM, Yihui Xie x...@yihui.name wrote: I guess you compiled the document under /usr/local/share/lyx-2.0.3svn/examples/, right? I believe the problem is that R has no write privilege to that directory, so the default pdf() device cannot be started there. You can copy

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
You are right (ideally), but this is a long-lasting annoying problem with R's default graphical device which is pdf() in the non-interactive session. Unfortunately it has to create a file under the current working directory (usually named Rplots.pdf). I requested a true null device which does not

Re: String Freeze for 2.0.3

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 16:22, Xu Wang a écrit : What compiler are you using Jean-Pierre? Here you are: $ lyx-2.0.3svn -version LyX 2.0.3svn (not released yet) Built on Jan 31 2012, 18:39:32 Configuration Host type:i686-pc-linux-gnu Special build flags:

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 17:15, Yihui Xie a écrit : I guess you compiled the document under /usr/local/share/lyx-2.0.3svn/examples/, right? I believe the problem is that R has no write privilege to that directory, so the default pdf() device cannot be started there. You can copy sweave.lyx to a directory

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
No, I do not think that is your problem :) See my second reply above. Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA 2012/2/1 Jean-Pierre Chrétien

Re: #7868: Unable to change document settings

2012-02-01 Thread Richard Heck
On 01/30/2012 03:54 PM, Jonathan Anderson wrote: Hmmm, it looks like this bug is still present in 2.0.2 (and I don't seem able to update the Trac ticket). If it's still there, you don't need to update it. The version is when it first appeared (so far as we know). rh Jon On 18 November

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 17:15, Yihui Xie a écrit : I guess you compiled the document under /usr/local/share/lyx-2.0.3svn/examples/, right? I believe the problem is that R has no write privilege to that directory, so the default pdf() device cannot be started there. You can copy sweave.lyx to a directory

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
That seems like a bug of Debian; R should be able to find Sweave.sty with file.path(R.home(share), texmf, tex, latex, Sweave.sty) [1] /usr/share/R/share/texmf/tex/latex/Sweave.sty I'm using Ubuntu and R can find Sweave.sty correctly. If possible, I strongly recommend you update R to the latest

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
I think so. If you add a CRAN mirror to your software repository, Debian knows how to solve the dependencies. There is a Debian maintainer who has been working on compiling R and some R packages to Debian packages. The versions of LyX and TeXLive often have a long time lag in Debian/Ubuntu, but R

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 18:20, Yihui Xie a écrit : If possible, I strongly recommend you update R to the latest 2.14.1 (it is pretty easy to update if you set a CRAN mirror; see instructions at http://cran.r-project.org/bin/linux/debian/). There have been many changes in Sweave since 2.11. Sure, I can

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Liviu Andronic
On Wed, Feb 1, 2012 at 5:29 PM, Yihui Xie x...@yihui.name wrote: You are right (ideally), but this is a long-lasting annoying problem with R's default graphical device which is pdf() in the non-interactive session. Unfortunately it has to create a file under the current working directory

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
The patch is pretty simple: http://www.lyx.org/trac/ticket/8019 Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Feb 1, 2012 at 12:53 PM, Liviu Andronic

Import into LyX

2012-02-01 Thread Rob Oakes
Dear Users and Developers, Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then

Re: Import into LyX

2012-02-01 Thread Xu Wang
Hey Rob, that sounds like quite a nice project you have in mind! My two cents: it's not worth carrying it out if you can't get the math to import somewhat well. That seems to be the biggest problem with most ways of converting doc to lyx. I understand it's very difficult, but I think it's also

timeout when using the Sweave module

2012-02-01 Thread Yihui Xie
Hi, I guess LyX should give the literate programming modules (e.g. Sweave/knitr) more time to run their code. Currently I see the time allowed is about 3 minutes, and LyX will raise an error after that. I tested it with the following chunk in Sweave: = for (i in 1:100) { Sys.sleep(10)

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Marc Lasgouttes
Le 01/02/12 20:16, Yihui Xie a écrit : The patch is pretty simple: http://www.lyx.org/trac/ticket/8019 It looks like a reasnable thing to do, if it does what I think it does. How confident are you with this patch? Does it rely only on documented behaviour, assumed to be present in earlier R

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Marc Lasgouttes
Le 01/02/12 18:20, Yihui Xie a écrit : That seems like a bug of Debian; R should be able to find Sweave.sty with file.path(R.home(share), texmf, tex, latex, Sweave.sty) [1] /usr/share/R/share/texmf/tex/latex/Sweave.sty I'm using Ubuntu and R can find Sweave.sty correctly. If possible, I

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
I'm pretty confident with this one. It does not have specific requirements on R versions, and users do not have to upgrade R. Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
Yes, that would be ideal. I will update the patch to reflect this issue. I do not remember in which version R moved Sweave.sty from texmf to texmf/tex/latex, so let's search both places. Regards, Yihui -- Yihui Xie xieyi...@gmail.com Phone: 515-294-2465 Web: http://yihui.name Department of

Re: Import into LyX

2012-02-01 Thread stefano franchi
Hi Rob, first: great project! I constantly struggle with converting file to and from MS Word. I now use the Word--OOffice-- Latex-- Lyx Route, with the needed manual cleanup of Latex code and an additional cleanup of ERT code from LyX after LaTeX import. It is not fun. A project like yours would

Re: String Freeze for 2.0.3

2012-02-01 Thread Jean-Pierre Chrétien
Le 31/01/2012 16:45, Richard Heck a écrit : Translators, please prepare for 2.0.3. I am tentatively planning to prepare the release on 16 February, so if you could have your new po files in by 15 February, I'd appreciate it. For testing against shortcuts conflicts, I compliled 2.0.3svn, I

Re: String Freeze for 2.0.3

2012-02-01 Thread Lars Gullik Bjønnes
Jean-Pierre Chrétien writes: | Le 31/01/2012 16:45, Richard Heck a écrit : > >> Translators, please prepare for 2.0.3. I am tentatively planning to >> prepare the release on 16 February, so if you could have your new po >> files in by 15 February, I'd appreciate it.

[PATCH] Fixup multi-line comment to use block-comment

2012-02-01 Thread Lars Gullik Bjønnes
From: Lars Gullik Bjønnes The small ascii art in InsetMathCancel::draw has line continuation characters at eol, this make consecutive lines be andled as one. The use of a block comment instead of single line comments makes this less of a "problem." Also it removes a warning

Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Hello, I took a look to the new specific manual describing sweave with the latest 2.0.3svn. The pdf export fails on an Rscript error: Running: Rscript --verbose --no-save --no-restore "/usr/local/share/lyx-2.0.3svn/scripts/lyxsweave.R" "/tmp/lyx_tmpdir.T21839/lyx_tmpbuf2/""sweave.Rnw"

Re: String Freeze for 2.0.3

2012-02-01 Thread Xu Wang
On Wed, Feb 1, 2012 at 3:01 AM, Jean-Pierre Chrétien < jeanpierre.chret...@free.fr> wrote: > Le 31/01/2012 16:45, Richard Heck a écrit : > > > Translators, please prepare for 2.0.3. I am tentatively planning to >> prepare the release on 16 February, so if you could have your new po >> files in

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
I guess you compiled the document under /usr/local/share/lyx-2.0.3svn/examples/, right? I believe the problem is that R has no write privilege to that directory, so the default pdf() device cannot be started there. You can copy sweave.lyx to a directory where you have write privilege, and see if

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Liviu Andronic
On Wed, Feb 1, 2012 at 5:15 PM, Yihui Xie wrote: > I guess you compiled the document under > /usr/local/share/lyx-2.0.3svn/examples/, right? > > I believe the problem is that R has no write privilege to that > directory, so the default pdf() device cannot be started there. You >

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
You are right (ideally), but this is a long-lasting annoying problem with R's default graphical device which is pdf() in the non-interactive session. Unfortunately it has to create a file under the current working directory (usually named Rplots.pdf). I requested a true null device which does not

Re: String Freeze for 2.0.3

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 16:22, Xu Wang a écrit : What compiler are you using Jean-Pierre? Here you are: $ lyx-2.0.3svn -version LyX 2.0.3svn (not released yet) Built on Jan 31 2012, 18:39:32 Configuration Host type:i686-pc-linux-gnu Special build flags:

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 17:15, Yihui Xie a écrit : I guess you compiled the document under /usr/local/share/lyx-2.0.3svn/examples/, right? I believe the problem is that R has no write privilege to that directory, so the default pdf() device cannot be started there. You can copy sweave.lyx to a directory

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
No, I do not think that is your problem :) See my second reply above. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA 2012/2/1 Jean-Pierre Chrétien

Re: #7868: Unable to change document settings

2012-02-01 Thread Richard Heck
On 01/30/2012 03:54 PM, Jonathan Anderson wrote: Hmmm, it looks like this bug is still present in 2.0.2 (and I don't seem able to update the Trac ticket). If it's still there, you don't need to update it. The version is when it first appeared (so far as we know). rh Jon On 18 November

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 17:15, Yihui Xie a écrit : I guess you compiled the document under /usr/local/share/lyx-2.0.3svn/examples/, right? I believe the problem is that R has no write privilege to that directory, so the default pdf() device cannot be started there. You can copy sweave.lyx to a directory

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
That seems like a bug of Debian; R should be able to find Sweave.sty with > file.path(R.home("share"), "texmf", "tex", "latex", "Sweave.sty") [1] "/usr/share/R/share/texmf/tex/latex/Sweave.sty" I'm using Ubuntu and R can find Sweave.sty correctly. If possible, I strongly recommend you update R

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
I think so. If you add a CRAN mirror to your software repository, Debian knows how to solve the dependencies. There is a Debian maintainer who has been working on compiling R and some R packages to Debian packages. The versions of LyX and TeXLive often have a long time lag in Debian/Ubuntu, but R

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Pierre Chrétien
Le 01/02/2012 18:20, Yihui Xie a écrit : If possible, I strongly recommend you update R to the latest 2.14.1 (it is pretty easy to update if you set a CRAN mirror; see instructions at http://cran.r-project.org/bin/linux/debian/). There have been many changes in Sweave since 2.11. Sure, I can

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Liviu Andronic
On Wed, Feb 1, 2012 at 5:29 PM, Yihui Xie wrote: > You are right (ideally), but this is a long-lasting annoying problem > with R's default graphical device which is pdf() in the > non-interactive session. Unfortunately it has to create a file under > the current working directory

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
The patch is pretty simple: http://www.lyx.org/trac/ticket/8019 Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA On Wed, Feb 1, 2012 at 12:53 PM, Liviu Andronic

Import into LyX

2012-02-01 Thread Rob Oakes
Dear Users and Developers, Some time ago, I was experimenting with importing documents into LyX (specifically about how to crack the import MS Word to LyX nut). In the process, I got really excited about using OpenOffice to convert the word document to HTML, running tidy on the HTML and then

Re: Import into LyX

2012-02-01 Thread Xu Wang
Hey Rob, that sounds like quite a nice project you have in mind! My two cents: it's not worth carrying it out if you can't get the math to import somewhat well. That seems to be the biggest problem with most ways of converting doc to lyx. I understand it's very difficult, but I think it's also

timeout when using the Sweave module

2012-02-01 Thread Yihui Xie
Hi, I guess LyX should give the literate programming modules (e.g. Sweave/knitr) more time to run their code. Currently I see the time allowed is about 3 minutes, and LyX will raise an error after that. I tested it with the following chunk in Sweave: <<>>= for (i in 1:100) { Sys.sleep(10)

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Marc Lasgouttes
Le 01/02/12 20:16, Yihui Xie a écrit : The patch is pretty simple: http://www.lyx.org/trac/ticket/8019 It looks like a reasnable thing to do, if it does what I think it does. How confident are you with this patch? Does it rely only on documented behaviour, assumed to be present in earlier R

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Jean-Marc Lasgouttes
Le 01/02/12 18:20, Yihui Xie a écrit : That seems like a bug of Debian; R should be able to find Sweave.sty with file.path(R.home("share"), "texmf", "tex", "latex", "Sweave.sty") [1] "/usr/share/R/share/texmf/tex/latex/Sweave.sty" I'm using Ubuntu and R can find Sweave.sty correctly. If

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
I'm pretty confident with this one. It does not have specific requirements on R versions, and users do not have to upgrade R. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of Statistics, Iowa State University 2215 Snedecor Hall, Ames, IA

Re: Sweave manual pdf compilation fails

2012-02-01 Thread Yihui Xie
Yes, that would be ideal. I will update the patch to reflect this issue. I do not remember in which version R moved Sweave.sty from texmf to texmf/tex/latex, so let's search both places. Regards, Yihui -- Yihui Xie Phone: 515-294-2465 Web: http://yihui.name Department of

Re: Import into LyX

2012-02-01 Thread stefano franchi
Hi Rob, first: great project! I constantly struggle with converting file to and from MS Word. I now use the Word-->OOffice--> Latex--> Lyx Route, with the needed manual cleanup of Latex code and an additional cleanup of ERT code from LyX after LaTeX import. It is not fun. A project like yours