Re: [PATCH] Fix importation of noweb files with tex2lyx

2012-10-25 Thread Gregor Gorjanc
Hi, On 25 October 2012 06:33, Yihui Xie wrote: > Gregor may know the history of "Scrap"; that term has been there ever > since I started using LyX/Sweave, and I never know how it came in. > > Noweb is only one of the implementations of literate programming (to > beat Knuth's WEB), so I guess "li

Re: A solution to the problem of Sweave.sty in the sweave module

2011-05-11 Thread Gregor GORJANC
I wote for copying file to temporary folder where LyX copies files for LaTeX compilation. Gregor Gorjanc

Re: #6623: Sweave cannot read local files

2010-12-13 Thread Gregor GORJANC
On 12 December 2010 22:28, LyX Ticket Tracker wrote: > #6623: Sweave cannot read local files > > +--- > Reporter: lasgouttes | Owner: kay...@… > Type: defect | Status: new > Priority: normal |

Re: [PATCH] Sweave support (was: Re: Beta plans (again, again))

2010-10-20 Thread Gregor GORJANC
> I finally found some time for making an infrastructure for running sweave > with our own customizations. As you can see the patch is trivial, but > I would like to be sure that it works on windows. Can I download somewhere a binary to test this? > Currently, the only bug that this fixes is that

Re: Beta plans (again, again)

2010-09-17 Thread Gregor GORJANC
Hi LyX-developers, On 17 September 2010 15:58, Jean-Marc LASGOUTTES wrote: > Pavel Sanda writes: ... >> which reminds me... people on users list ask on sweave status. i tried to >> find something in our manuals without success - is there something to bet put >> into them? maybe people like Gorja

Re: Enhancement bugs for 2.0

2010-03-30 Thread Gregor GORJANC
Hi, Please read bellow. On 30 March 2010 14:01, Jean-Marc Lasgouttes wrote: ... > - find a way to read local files. If I have a >   read.table("foo.txt") >  in the file, it will fail because R is ran from the tmp dir. Since >   there is no PATH-like support in R, I do not know how to solve the >

SageTeX with LyX (was: On the interface between Lyx and CAS: some ideas for a better desing)

2008-09-27 Thread Gregor Gorjanc
Hi LyX developers! Enthused with use of R (via Sweave) in LyX I started to also look for integration of SAGE (see http://www.sagemath.org). Since Python is used the integration should be doable. However, luckily much has already been done with the SageTeX (see last example at http://www.sagemat

Add "Using Sweave with Lyx" to webpage "Press about LyX"

2008-05-28 Thread Gregor Gorjanc
Hi! I hope this is the right plase for this. I would like to suggest to add the following article to LyX webpage - Press about LyX at http://www.lyx.org/PressAboutLyX Using Sweave with LyX: How to lower the LaTeX/Sweave learning curve R News, Volume 8(1):2-9 May 2008: http://cran.r-project.org/

Re: Export - what the heck happened?

2008-01-11 Thread Gregor Gorjanc
Hi! does anyone have 1.4 to test if format for 1.5 works? \format "latex""tex" "LaTeX (plain)""" "editor" "editor" "document" Regards, Gregor

Re: Export - what the heck happened?

2008-01-09 Thread Gregor Gorjanc
Gorjanc Gregor <[EMAIL PROTECTED]> writes: > >> \format "literate" "Rnw" "Sweave" "" "editor" "editor" > >> \format "r""R" "R/S code" "" "editor" "editor" > >> \format "latex""tex" "LaTeX (plain)""" "editor" "editor" > >> \format "pdflatex" "tex" "LaTeX (pdflate

Re: Use Computer Algebra System with LyX

2007-08-02 Thread Gregor Gorjanc
Andreas Karlsson <[EMAIL PROTECTED]> writes: > Dear LyX developers, > > Under the Edit > Math menu in LyX there is an entry Use Computer > Algebra System. ... There is a way to use yacas from R via R package Ryacas [1] so it could be possible to use this in LyX via Sweave (noweb like system u

Re: Policy of adding new commands to syntax.default

2007-01-09 Thread Gregor Gorjanc
José Matos <[EMAIL PROTECTED]> writes: > > On Tuesday 09 January 2007 3:17 pm, Gregor Gorjanc wrote: > > Thank you for this! I did thought nobody is interested in Sweave support. I > > agree that it need some more thinking. I am looking forward if anyone would > >

Re: Policy of adding new commands to syntax.default

2007-01-09 Thread Gregor Gorjanc
Georg Baum <[EMAIL PROTECTED]> writes: > > Gregor Gorjanc wrote: > > > I have another set of Sweave specific commands. I believe this is the last > > one. Here is the patch. Trunk and 1_4_X branch please. Thank you very > > much! > > I put it in trunk. Je

Re: Policy of adding new commands to syntax.default

2007-01-08 Thread Gregor Gorjanc
Gregor Gorjanc <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes ...> writes: > > Gregor> Any chance to port this also to 1_4_X branch? > > > > I just did it.to say > > I have another set of Sweave specific commands. I believe this is the last >

Re: Policy of adding new commands to syntax.default

2007-01-07 Thread Gregor Gorjanc
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Gregor> Any chance to port this also to 1_4_X branch? > > I just did it. I have another set of Sweave specific commands. I believe this is the last one. Here is the patch. Trunk and 1_4_X branch please. Thank you very much! Index: syntax.default

Re: Literate: noweb & Sweave

2007-01-02 Thread Gregor Gorjanc
uot; "editor" "editor" # # CONVERTERS SECTION ## # \converter "literate" "r""R CMD Stangle $$i" "" \converter "literate" "latex""R CMD Sweave $$i" "" \converter "

Re: tex2lyx and character sytles

2007-01-02 Thread Gregor Gorjanc
Georg Baum <[EMAIL PROTECTED]> writes: > Am Dienstag, 2. Januar 2007 18:15 schrieb Gregor Gorjanc: > > Hi! > > > > Is tex2lyx supposed to recognize character styles? > > No. OK. Any (long-term) plans for this? Gregor

tex2lyx and character sytles

2007-01-02 Thread Gregor Gorjanc
Hi! Is tex2lyx supposed to recognize character styles? Say I have a file file.tex with \Rcode{1+1} LaTeX markup. Tex2lyx will use layout file with the following CharStyle definition CharStyle Rcode LaTeXName Rcode LaTeXType Command Font Family typew

Re: #3052 tex2lyx skips lines for some noweb files

2007-01-02 Thread Gregor Gorjanc
Georg Baum <[EMAIL PROTECTED]> writes: ... > I saw the report in bugzilla, but have had no time to investigate. I had a > look now and the fix was really easy, see attached. Great. Thank you. I hope this will get also in BRANCH_1_4_X as asked for in bugzilla. I agree that empty paragraph is bette

Simplified literate layouts

2007-01-01 Thread Gregor Gorjanc
Hi! All literate layouts (literate-{article, report, book}.layout) define preamble, but this could be done only once in literate.scrap.inc file that all mentioned files include. Here is the patch: Index: literate-report.layout === -

#3052 tex2lyx skips lines for some noweb files

2007-01-01 Thread Gregor Gorjanc
Hi, tex2lyx skips lines of text after the code chunk if documentation/text is not separated from top of the chunk. I.e. the following: -- some text directly above code chunk <>= someCode @ some text bellow code chunk -- res

Re: Compile latest SVN checkout

2006-12-31 Thread Gregor Gorjanc
Peter Kümmel <[EMAIL PROTECTED]> writes: > Please update your checkout, it is out of date!! Sorry, that seems to be the case. I apologize.

Re: Compile latest SVN checkout

2006-12-30 Thread Gregor Gorjanc
Georg Baum <[EMAIL PROTECTED]> writes: > > On Saturday 30 December 2006 19:24, Bo Peng wrote: > > This is not odd. For good or bad, we have three build systems. Abdel > > just introduced some new files so all three build systems need to be > > updated. Since he is not an expert on all of them and

Re: Compile latest SVN checkout

2006-12-30 Thread Gregor Gorjanc
fferent build system. Or should I? -- Lep pozdrav / With regards, Gregor Gorjanc -- University of Ljubljana PhD student Biotechnical Faculty Zootechnical Department URI: http://www.bfro.uni-lj.si/MR/ggorjan Groblje

Compile latest SVN checkout

2006-12-30 Thread Gregor Gorjanc
Hi, Is anyone able to compile latest SVN checkout? I get this error during make on Debian GNU/Linux: ... a -Wall -g -O -MT docstring.lo -MD -MP -MF .deps/docstring.Tpo -c docstring.C -o docstring.o In file included from docstring.C:14: qstring_helpers.h:17:17: error: QChar: No such file or direc

configure script for BRANCH_1_4_x?

2006-12-30 Thread Gregor Gorjanc
Hi, I just wanted to check something in yet to be 1.4.4 release and can not figure out, how to get setup for compilation of BRANCH_1_4_X. I did: $ svn co svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X lyx-1.4.X $ cd lyx-1.4.X $ ./configure --with-frontend=qt4 --with-qt-dir=/usr/share/qt4

Re: Policy of adding new commands to syntax.default

2006-12-30 Thread Gregor Gorjanc
Andr� Poenitz wrote: > On Thu, Dec 21, 2006 at 09:49:21PM +0100, Gregor Gorjanc wrote: >> Andre Poenitz wrote: >>> On Thu, Dec 21, 2006 at 04:56:32PM +0000, Gregor Gorjanc wrote: >>>>> Index: lib/syntax.default >>>> ... >>>>> +% Sweave

When will 1.4.4 be released

2006-12-27 Thread Gregor Gorjanc
Hi! What are the plans for releasing 1.4.4 version? Thanks! Gregor

Re: Policy of adding new commands to syntax.default

2006-12-26 Thread Gregor Gorjanc
Enrico Forestieri <[EMAIL PROTECTED]> writes: ... > Merry Christmas > > http://www.lyx.org/trac/changeset/16394 Any chance to port this also to 1_4_X branch? Thanks again! Gregor

Re: Policy of adding new commands to syntax.default

2006-12-24 Thread Gregor Gorjanc
Enrico Forestieri <[EMAIL PROTECTED]> writes: > > should have had put this on the list of wishes for Santa ;) > > Merry Christmas Thank you Santa! Gregor

Re: Policy of adding new commands to syntax.default

2006-12-23 Thread Gregor Gorjanc
Hi again. Sorry for bothering the list, did anyone attempt to add Sweave syntax? Perhaps I should have had put this on the list of wishes for Santa ;) Thanks, Gregor

Re: Policy of adding new commands to syntax.default

2006-12-21 Thread Gregor Gorjanc
Andre Poenitz wrote: > On Thu, Dec 21, 2006 at 04:56:32PM +0000, Gregor Gorjanc wrote: >>> Index: lib/syntax.default >> ... >>> +% Sweave stuff >>> +\Sexpr{} >>> +\SweaveOpts{} >> >> Any comments on this? > > It's uncritica

Re: Policy of adding new commands to syntax.default

2006-12-21 Thread Gregor Gorjanc
> Index: lib/syntax.default ... > +% Sweave stuff > +\Sexpr{} > +\SweaveOpts{} Any comments on this? Thank! Gregor

Policy of adding new commands to syntax.default

2006-12-20 Thread Gregor Gorjanc
Hello! What is the policy of adding new/additional latex commands to snytax.default file. I have two additions from Sweave. It is not a problem to put these into a local file, but it would be nice to have them directly in LyX by default. Thanks! Gregor And a patch against current lyx-devel Ind

Re: "More involved" converters: literate (Sweave) to HTML

2006-12-08 Thread Gregor Gorjanc
Georg Baum <[EMAIL PROTECTED]> writes: > Am Donnerstag, 7. Dezember 2006 23:10 schrieb Gregor Gorjanc: > > Hi, > > > > I am also interested in setting up converter for literate (Sweave) to > HTML. I > > find it hard to do that, because I need to first weave t

"More involved" converters: literate (Sweave) to HTML

2006-12-07 Thread Gregor Gorjanc
Hi, I am also interested in setting up converter for literate (Sweave) to HTML. I find it hard to do that, because I need to first weave the file and I do not know how to tell LyX to HTML-ize produced LaTeX file. I have the following in my prefs file \converter "literate" "latex" "R CMD Sweave --

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-12-04 Thread Gregor Gorjanc
Juergen Spitzmueller <[EMAIL PROTECTED]> writes: > Gregor Gorjanc wrote: > > Gosh. I am surprised on license need for something so small. > > This is just our way to get you into the boat ;) > > Which 1.4.X will have this feature? > > The next one (1.4.4). Thank you again! Gregor

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-12-03 Thread Gregor Gorjanc
Gregor Gorjanc <[EMAIL PROTECTED]> writes: > Juergen Spitzmueller wrote: > > Juergen Spitzmueller wrote: > >>> Yes (in 1.4.X too) Which 1.4.X will have this feature? Thanks. Gregor

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-12-03 Thread Gregor Gorjanc
ce, version 2 or later" (for the list > archieve)? This is needed to incorporate your patch into LyX. Gosh. I am surprised on license need for something so small. OK. Here is goes ;) "I (Gregor Gorjanc) hereby grant permission to licence my contributions to LyX under the Gnu General Public Licence, version 2 or later" Gregor

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-12-01 Thread Gregor Gorjanc
Jean-Marc Lasgouttes wrote: >>>>>> "Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> writes: > > Gregor> Gregor Gorjanc <[EMAIL PROTECTED]> writes: >>> Jean-Marc Lasgouttes ...> writes: ... > >> stupid >>> code ... >

Re: Optional LatexParam in layouts

2006-12-01 Thread Gregor Gorjanc
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > Well, the basic feature itself would be reasonably easy: add a new LatexType > EnvironmentWithArg, and when such an environment is used, output the > first paragraph as argument and the next ones inside the environment. > The patch for that would b

Re: Optional LatexParam in layouts

2006-12-01 Thread Gregor Gorjanc
Georg Baum <[EMAIL PROTECTED]> writes: > Yes. The user can set them. Plase have a look at the term "optional > argument" in any LaTeX book. What you want is not a standard optional > argument as used by many LaTeX commands. What you want is not possible, > standard optional arguments are. Thank yo

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-12-01 Thread Gregor Gorjanc
Gregor Gorjanc <[EMAIL PROTECTED]> writes: > Jean-Marc Lasgouttes ...> writes: > ... > > >> stupid code ... > > >> I suppose you do not know the difference between centering and > > >> center > > > > First, I want to point out that t

Re: Optional LatexParam in layouts

2006-12-01 Thread Gregor Gorjanc
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: ... > Gregor> \begin{Scode}{echo=true, eval=false, ...} \end{Scode} > > Gregor> where ... means other options. How can I define this with > Gregor> LatexParam directive? Is it possible to modfy this values > Gregor> later when a user is writting a f

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-12-01 Thread Gregor Gorjanc
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: ... > >> stupid code ... > >> I suppose you do not know the difference between centering and > >> center > > First, I want to point out that this is the code output by LyX, not > Gregor's doing. And I do not think that his particular problem is > ab

Optional LatexParam in layouts

2006-11-30 Thread Gregor Gorjanc
Hello! When writing layout files we can use LatexParam directive to provide additional options that might be used in environments. My env with options looks like \begin{Scode}{echo=true, eval=false, ...} \end{Scode} where ... means other options. How can I define this with LatexParam directive?

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-11-30 Thread Gregor Gorjanc
Herbert Voss <[EMAIL PROTECTED]> writes: > > That is the output if I center scrap (modified to allow that) environment: > > > > \begin{figure} > > \begin{centering}<>= > > boxplot(Sepal.Length~Species,data=iris) > > \par\end{centering} > > > > > > \caption{bla bla} > > \end{figure} > > stupid

Re: Literate: noweb & Sweave

2006-11-30 Thread Gregor Gorjanc
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: ... > Gregor> Thinking a bit further, this could be solved by another option > Gregor> for tex2lyx to specify which literate programing file format > Gregor> would be chosen. I suggest noweb for default name instead of > Gregor> literate as literate

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-11-30 Thread Gregor Gorjanc
Gregor Gorjanc <[EMAIL PROTECTED]> writes: > > Herbert Voss ...> writes: > > you mean center, not centering ... > > \centering is a macro and center an environment. > > > > Whatever. LyX sometimes outputs centering otherwise center. That is the outp

Re: Literate: noweb & Sweave

2006-11-30 Thread Gregor Gorjanc
Georg Baum <[EMAIL PROTECTED]> writes: ... > > Gregor> Thinking a bit further, this could be solved by another option > > Gregor> for tex2lyx to specify which literate programing file format > > Gregor> would be chosen. I suggest noweb for default name instead of > > Gregor> literate as literate is

Re: Wish: add newline after \begin{centering} and before \end{centering}

2006-11-30 Thread Gregor Gorjanc
Herbert Voss <[EMAIL PROTECTED]> writes: > you mean center, not centering ... > \centering is a macro and center an environment. > Whatever. LyX sometimes outputs centering otherwise center. Gregor

Re: Literate: noweb & Sweave

2006-11-30 Thread Gregor Gorjanc
Jean-Marc Lasgouttes wrote: >>>>>> "Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> writes: > > Gregor> Gregor Gorjanc <[EMAIL PROTECTED]> writes: ... >>> to noweb only. Sweave is based on noweb, but has a bit different >>> philosop

Re: Literate: noweb & Sweave

2006-11-30 Thread Gregor Gorjanc
Hello! Thank you for you answer. Comments bellow. Jean-Marc Lasgouttes wrote: >>>>>> "Gregor" == Gregor Gorjanc <[EMAIL PROTECTED]> writes: > > Gregor> Gregor Gorjanc <[EMAIL PROTECTED]> writes: ... >>> to noweb only. Sweave is based on

Re: Literate: noweb & Sweave

2006-11-30 Thread Gregor Gorjanc
Gregor Gorjanc <[EMAIL PROTECTED]> writes: ... > to noweb only. Sweave is based on noweb, but has a bit different philosophy > uses code to do the "computing in the document" and the code is then replaced > with the results. Does anyone see any other route to provide Swe

Wish: add newline after \begin{centering} and before \end{centering}

2006-11-30 Thread Gregor Gorjanc
Dear LyX team! I am trying to provide support for Sweave[1] (another literate programming idea based on noweb) in LyX. I have already contacted this list about Sweave [2] and got some respone from Andre. I have just responded in that thread. To have a bit better support for Sweave I would like to

Re: Literate: noweb & Sweave

2006-11-30 Thread Gregor Gorjanc
Andre Poenitz <[EMAIL PROTECTED]> writes: ... > > I also tweaked system configure.py (preferable if this should be in > > future LyX) getting the same effect. However, I am not satisfied with > > this since with above changes user has to tweak the files/menus and I do > > not have the support to im

Literate: noweb & Sweave

2006-11-22 Thread Gregor Gorjanc
literate programming wants that. I am really confused now. Can you please provide me any pointers so I can try to work on this a bit further. [1]http://www.ci.tuwien.ac.at/%7Eleisch/Sweave/ [2]http://www.r-project.org [3]http://wiki.lyx.org/LyX/LyxWithRThroughSweave [4]http://www.