Re: New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
I forgot to mention the most exciting thing of all I'm intending to add parameterized chunks; so you can define a chunk to illustrate an algorithm which you can then "instantiate" in various places to work on specific data. I've been using this model a lot for one project and had to keep

Re: New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
Gorjanc Gregor wrote: Based upon previous work I used literate classes since this has been proposed earlier. However, Jean-Marc has been working on another approach with modules, which make literate classes for R-LyX obsolete. Right Jean-Marc? Can this approach also be used for noweb and work o

RE: New literate programming with Lyx

2009-08-11 Thread Gorjanc Gregor
>> Based upon previous work I used literate classes since >> this has been proposed earlier. However, Jean-Marc has been working on >> another approach with modules, >> which make literate classes for R-LyX obsolete. Right Jean-Marc? Can this >> approach also be used for noweb >> and work of Sam?

Re: New literate programming with Lyx

2009-08-11 Thread Vincent van Ravesteijn
Sam Liddicott schreef: Vincent van Ravesteijn - TNW wrote: >> Can I use it on Windows ? I haven't got windows to try but AFAIk there is nothign windows-specific or even path-related in it, so I guess you can, as long as you have a decent awk for windows. > > Please let me know ho

Re: New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
Vincent van Ravesteijn - TNW wrote: >> Can I use it on Windows ? I haven't got windows to try but AFAIk there is nothign windows-specific or even path-related in it, so I guess you can, as long as you have a decent awk for windows. > > Please let me know how you get on. Can't i

Re: New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
Vincent van Ravesteijn - TNW wrote: >> Can I use it on Windows ? > > I haven't got windows to try but AFAIk there is nothign > windows-specific or even path-related in it, so I guess you > can, as long as you have a decent awk for windows. > > Please let me know how you get on. Can't

Re: New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
Gorjanc Gregor wrote: Hi Sam! This sounds interesting, though a bit to technical for me. My work regarding the literate programming with LyX was with R - statistical package that provides tangle and weave commands that extract R code and replace code with results, respectively. Aye, I read

RE: New literate programming with Lyx

2009-08-11 Thread Vincent van Ravesteijn - TNW
>> Can I use it on Windows ? > > I haven't got windows to try but AFAIk there is nothign > windows-specific or even path-related in it, so I guess you > can, as long as you have a decent awk for windows. > > Please let me know how you get on. Can't it be done using Python (hoping this i

RE: New literate programming with Lyx

2009-08-11 Thread Gorjanc Gregor
Hi Sam! This sounds interesting, though a bit to technical for me. My work regarding the literate programming with LyX was with R - statistical package that provides tangle and weave commands that extract R code and replace code with results, respectively. Based upon previous work I used

Re: New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
Vincent van Ravesteijn - TNW wrote: notangle (which was buggy) is not used to generate the source, instead an awk script, newfangle, is used, fixing various notangle bugs; such as: Can I use it on Windows ? I haven't got windows to try but AFAIk there is nothign windows-specific or eve

RE: New literate programming with Lyx

2009-08-11 Thread Vincent van Ravesteijn - TNW
> notangle (which was buggy) is not used to generate > the source, instead an awk script, newfangle, is used, > fixing various notangle bugs; such as: Can I use it on Windows ? Vincent

New literate programming with Lyx

2009-08-11 Thread Sam Liddicott
At the suggestion of kayvan, I posted this message that was originally sent to lyx-users. I hope I got the right addresses for Cc: I've posted on http://www.lyx.org/trac/attachment/ticket/6137/ my alternative literate programming style with Lyx. I put this together because literate programming

Re: literate programming with LyX

1998-12-29 Thread Jean-Marc Lasgouttes
> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes: Edmar> I had another idea: Edmar> 1 - We define Scrap as a paragraph. Which implies that will be Edmar> no need to patch anything. Edmar> 2 - The code segments must be typed with c-return at each code Edmar> line. Which implies tha

Re: literate programming with LyX

1998-12-29 Thread Jean-Marc Lasgouttes
> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes: Edmar> Jean-Marc Lasgouttes wrote: >> I'm not sure either we are talking about the same thing :) I tried >> what you describe and came up with the files appended. They seem >> alright to me. Edmar> Probally you highlited the text and

Re: literate programming with LyX

1998-12-23 Thread Edmar Wienskoski Jr.
Edmar Wienskoski Jr. wrote: > I'd rather come up with a solution which works correctly in other > cases. For example, your problem is not different from the problem > encountered for LyX-Code environment. This environment as it stands is > a painful hack and we will have to do some clean up there

Re: literate programming with LyX

1998-12-23 Thread Edmar Wienskoski Jr.
Jean-Marc Lasgouttes wrote: > You mean an Item_Environment, right? A real environment should add the > empty lines too. As far as Item_Environment are concerned, you rely on > the fact that they are output as > > \begin{foo} > \item aaa > \item bb > \end{foo} Yes, that is correct. An Item_Enviro

Re: literate programming with LyX

1998-12-23 Thread Edmar Wienskoski Jr.
Jean-Marc Lasgouttes wrote: > I'm not sure either we are talking about the same thing :) I tried > what you describe and came up with the files appended. They seem > alright to me. Probally you highlited the text and past it into lyx, right ? That is another strange thing Whenever you highlight

Re: literate programming with LyX

1998-12-23 Thread Jean-Marc Lasgouttes
> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes: Edmar> No, that is not entirely true. Actually, the fact that "return" Edmar> ends a layout is not even a concern (I can use alt-return Edmar> instead of plain ret...) The problem, is that if you define Edmar> the Scrap layout to be a

Re: literate programming with LyX

1998-12-23 Thread Jean-Marc Lasgouttes
> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes: Edmar> Wait a minute. I don't think we are talking about the same Edmar> thing. Note that the patch I provided is to change the Edmar> behavior within *latex* paragraphs. Edmar> Try the following in you lyx: Edmar> Open a latex para

Re: literate programming with LyX

1998-12-23 Thread Edmar Wienskoski Jr.
Amir Karger wrote: > On Tue, Dec 22, 1998 at 07:04:33PM -0600, Edmar Wienskoski Jr. wrote: > > > > No, that is not entirely true. Actually, the fact that "return" ends > > a layout is not even a concern (I can use alt-return instead of plain ret...) > > The problem, is that if you define the Scra

Re: literate programming with LyX

1998-12-22 Thread Amir Karger
On Tue, Dec 22, 1998 at 07:04:33PM -0600, Edmar Wienskoski Jr. wrote: > > No, that is not entirely true. Actually, the fact that "return" ends > a layout is not even a concern (I can use alt-return instead of plain ret...) > The problem, is that if you define the Scrap layout to be anything diffe

Re: literate programming with LyX

1998-12-22 Thread Edmar Wienskoski Jr.
> > "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes: > > > Edmar> 3 - Patch to not output the protected space '~' during > Edmar> translation of latex paragraphs. It seems that latex does not > Edmar> complain if you put '~' characters in place of regular ' ', > Edmar> even within latex

Re: literate programming with LyX

1998-12-22 Thread Edmar Wienskoski Jr.
Jean-Marc Lasgouttes wrote: > Edmar> The patch 5 associates latex command "dummy" to "do not > Edmar> generate \begin{} \end{} nor \tem". With that patch applied, > Edmar> and defining the Scrap layout to be: Style Scrap LatexType > Edmar> Item_Environment LatexName dummy > > The right

Re: literate programming with LyX

1998-12-22 Thread Jean-Marc Lasgouttes
> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes: Edmar> 3 - Patch to not output the protected space '~' during Edmar> translation of latex paragraphs. It seems that latex does not Edmar> complain if you put '~' characters in place of regular ' ', Edmar> even within latex commands. B

Re: literate programming with LyX

1998-12-22 Thread Jean-Marc Lasgouttes
> "Edmar" == Edmar Wienskoski <[EMAIL PROTECTED]> writes: >> Patch 5 is perhaps ok, but I am not sure what problem it tries to >> solve. Edmar> Noweb, like other literate packages, expects to read a Edmar> latexfile with some noweb commands intermixed. The noweb Edmar> commands are then tran

Re: literate programming with LyX

1998-12-22 Thread Edmar Wienskoski Jr.
Asger Alstrup Nielsen wrote: > Sometime ago I tried some patches and external scripts to use lyx for > literate programming, and I had used it for some reasonable sized > projects already. Great job!  I have to say that it's very impressive work! > I would like to submit these patches (against l

Re: literate programming with LyX

1998-12-22 Thread Edmar Wienskoski Jr.
Lars Gullik Bjønnes wrote: *Edmar Wienskoski writes:  | Sometime ago I tried some patches and external scripts to use lyx  | for literate programming, and I had used it for some reasonable  | sized projects already. Patch 1 seems ok Patch 2 seems ok Patch 3 seems ok Patch 4 is not something I wan

Re: literate programming with LyX

1998-12-21 Thread Richard E. Hawkins Esq.
> Also, there is no integrated documentation for the feature. > > I suggest that this can live as a contribution patch, just like Rik's > mailmerge patch. one little request: please don't cream my place on the edit menu :) I took the first entry after the stuff that didn't seem to be used; co

Re: literate programming with LyX

1998-12-21 Thread Asger Alstrup Nielsen
> Sometime ago I tried some patches and external scripts to use lyx for > literate programming, and I had used it for some reasonable sized > projects already. Great job! I have to say that it's very impressive work! > I would like to submit these patches (against lyx-1.0.0pre4) for your > appr

Re: literate programming with LyX

1998-12-21 Thread Lars Gullik Bjønnes
*Edmar Wienskoski writes: | Sometime ago I tried some patches and external scripts to use lyx | for literate programming, and I had used it for some reasonable | sized projects already. Patch 1 seems ok Patch 2 seems ok Patch 3 seems ok Patch 4 is not something I want, especially I think the "

literate programming with LyX

1998-12-20 Thread Edmar Wienskoski Jr.
Hi there !! Sometime ago I tried some patches and external scripts to use lyx for literate programming, and I had used it for some reasonable sized projects already. I decided that it was a successful experience, so I re-coded the patches and incorporated the scripts within lyx, trying to prese